24#ifndef _MEDIA_SESSION_HH
27#ifndef _NET_ADDRESS_HH
30#ifndef _DIGEST_AUTHENTICATION_HH
40 unsigned char desiredAudioRTPPayloadFormat,
41 char const* mimeSubtype =
NULL,
42 int verbosityLevel = 0,
43 char const* applicationName =
NULL);
56 char const* username,
char const* password);
80 unsigned char desiredAudioRTPPayloadFormat,
81 char const* mimeSubtype,
83 char const* applicationName);
105 char const* cmd,
char const* url);
108 unsigned getResponse(
char*& responseBuffer,
unsigned responseBufferSize);
portNumBits portNum(struct sockaddr_storage const &address)
unsigned fUserAgentHeaderStrLen
char const * fOurAddressStr
Boolean parseResponseCode(char const *line, unsigned &responseCode)
unsigned char fDesiredAudioRTPPayloadFormat
inviteClientState fInviteClientState
static void timerDHandler(void *clientData)
void doInviteStateTerminated(unsigned responseCode)
unsigned fOurAddressStrSize
void doInviteStateMachine(unsigned responseCode)
static SIPClient * createNew(UsageEnvironment &env, unsigned char desiredAudioRTPPayloadFormat, char const *mimeSubtype=NULL, int verbosityLevel=0, char const *applicationName=NULL)
char * fInviteSDPDescriptionReturned
Boolean fServerAddressIsSet
unsigned fMIMESubtypeSize
char * fUserAgentHeaderStr
char * inviteWithPassword(char const *url, char const *username, char const *password)
char const * getInviteSdpReply() const
char const * fApplicationName
portNumBits fServerPortNum
SIPClient(UsageEnvironment &env, unsigned char desiredAudioRTPPayloadFormat, char const *mimeSubtype, int verbosityLevel, char const *applicationName)
void setUserAgentString(char const *userAgentName)
char * invite1(Authenticator *authenticator)
void setClientStartPortNum(portNumBits clientStartPortNum)
unsigned fApplicationNameSize
Authenticator fValidAuthenticator
char * createAuthenticatorString(Authenticator const *authenticator, char const *cmd, char const *url)
static Boolean parseSIPURLUsernamePassword(char const *url, char *&username, char *&password)
char * fInviteSDPDescription
void setProxyServer(struct sockaddr_storage const &proxyServerAddress, portNumBits proxyServerPortNum)
static void inviteResponseHandler(void *clientData, int mask)
Boolean sendRequest(char const *requestString, unsigned requestLength)
portNumBits fClientStartPortNum
unsigned getResponse(char *&responseBuffer, unsigned responseBufferSize)
char * invite(char const *url, Authenticator *authenticator=NULL)
static void timerBHandler(void *clientData)
static void timerAHandler(void *clientData)
struct sockaddr_storage fServerAddress
Boolean processURL(char const *url)
Authenticator * fWorkingAuthenticator
unsigned getResponseCode()
static Boolean parseSIPURL(UsageEnvironment &env, char const *url, NetAddress &address, portNumBits &portNum)