15 #ifndef _SIPXTAPIINTERNAL_H 16 #define _SIPXTAPIINTERNAL_H 25 #include "net/SipSession.h" 26 #include "net/SipUserAgent.h" 27 #include "net/SipSubscribeClient.h" 28 #include "utl/UtlDefs.h" 29 #include "utl/UtlContainable.h" 30 #include "os/OsRWMutex.h" 31 #include "os/OsReadLock.h" 32 #include "os/OsWriteLock.h" 33 #include "os/OsSysLog.h" 34 #include "os/OsMutex.h" 35 #include "os/OsMsgQ.h" 36 #include "os/OsNatKeepaliveListener.h" 42 #ifdef SIPXTAPI_EVAL_EXPIRATION 43 # define EVAL_EXPIRE_MONTH 0 // zero based 44 # define EVAL_EXPIRE_DAY 31 45 # define EVAL_EXPIRE_YEAR 2006 53 class SipSubscribeServer;
54 class SipSubscribeClient;
60 class CpMediaInterface;
164 char dbLocation[256];
165 char myCertNickname[32];
170 char szAcceptLanguage[16];
171 char szLocationHeader[256];
287 #define MAX_TRANSPORT_NAME 32 301 memset(szLocalIp, 0,
sizeof(szLocalIp));
302 memset(szTransport, 0,
sizeof(szTransport));
303 memset(cRoutingId, 0,
sizeof(cRoutingId)) ;
314 if (
this == &ref)
return *
this;
324 memset(szTransport, 0,
sizeof(szTransport)) ;
326 memset(szLocalIp, 0,
sizeof(szLocalIp)) ;
327 strncpy(szLocalIp, ref.
szLocalIp,
sizeof(szLocalIp)-1);
328 memset(cRoutingId, 0,
sizeof(cRoutingId)) ;
329 strncpy(cRoutingId, ref.
cRoutingId,
sizeof(cRoutingId)-1);
359 char cRoutingId[64] ;
386 const char* szCallId,
387 SipSession* pSession,
388 const char* szRemoteAddress,
392 const char* assertedIdentity);
395 const char* szCallId,
396 const char* szRemoteAddress,
403 const char* szLineIdentifier,
406 const char *bodyBytes);
457 const char* szCallId,
458 SipSession* pSession,
459 const char* szRemoteAddress,
462 void* pEventData=NULL,
463 const char* szRemoteAssertedIdentity = NULL) ;
469 const char* szCallId,
470 const char* szRemoteAddress,
474 void* pEventData = NULL) ;
483 const char* szRemoteAddress,
486 const char* szMappedAddress,
493 const char* szLineIdentifier,
496 const char *bodyBytes = NULL);
515 UtlString* pStrCallId,
516 UtlString* pStrRemoteAddress,
518 UtlString* pGhostCallId = NULL,
519 UtlString* pContactAddress = NULL) ;
676 const char* earlyDialogHandle,
677 const char* dialogHandle,
678 void* applicationData,
680 const char* responseText,
682 const SipMessage* subscribeResponse);
688 const char* dialogHandle,
689 void* applicationData,
690 const SipMessage* notifyRequest);
765 SIPXTAPI_API GIPSAECTuningWizard* sipxConfigGetVoiceEngineAudioWizard();
871 : OsNatKeepaliveListener()
882 event.remoteAddress, event.remotePort,
884 event.mappedAddress, event.mappedPort) ;
891 event.remoteAddress, event.remotePort,
893 event.mappedAddress, event.mappedPort) ;
900 event.remoteAddress, event.remotePort,
902 event.mappedAddress, event.mappedPort) ;
909 event.remoteAddress, event.remotePort,
911 event.mappedAddress, event.mappedPort) ;
SIPX_INTERNAL_CALLSTATE state
Definition: sipXtapiInternal.h:219
UtlString * pPreferences
List of preferred codecs.
Definition: sipXtapiInternal.h:106
void(* sipxMediaCallbackFn)(const void *pSrc, const char *szCallId, const char *szRemoteAddress, SIPX_MEDIA_EVENT event, SIPX_MEDIA_CAUSE cause, SIPX_MEDIA_TYPE type, void *pEventData)
Definition: sipXtapiInternal.h:394
Definition: sipXtapiInternal.h:192
struct NOISE_REDUCTION_SETTING NOISE_REDUCTION_SETTING
UtlString * pResourceId
Definition: sipXtapiInternal.h:274
bool bShortNames
short names in sip messages >
Definition: sipXtapiInternal.h:167
CONF_HOLD_STATE confHoldState
Definition: sipXtapiInternal.h:247
SIPX_KEEPALIVE_CAUSE
Enumeration of possible KEEPALIVE cause codes (EVENT_CATEGORY_KEEPALIVE)
Definition: sipXtapiEvents.h:605
SIPX_AEC_MODE
SIPX_AEC_MODE defines different AEC modes.
Definition: sipXtapi.h:961
SIPX_CALLSTATE_CAUSE lastCallstateCause
Definition: sipXtapiInternal.h:212
SIPX_AUDIO_BANDWIDTH_ID fallBack
Fallback id if codec setting fails.
Definition: sipXtapiInternal.h:105
char device[MAX_VIDEO_DEVICE_LENGTH]
Desired auto device.
Definition: sipXtapiInternal.h:70
void sipxConfReleaseLock(SIPX_CONF_DATA *pData, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:1580
UtlString * contactAddress
Definition: sipXtapiInternal.h:199
void sipxFireLineEvent(const void *pSrc, const char *szLineIdentifier, SIPX_LINESTATE_EVENT event, SIPX_LINESTATE_CAUSE cause, const char *bodyBytes=NULL)
Fires a Line Event to the listeners.
Definition: sipXtapiEvents.cpp:2382
SipUserAgent * pSipUserAgent
Definition: sipXtapiInternal.h:128
void sipxLineObjectFree(const SIPX_LINE hLine)
Definition: sipXtapiInternal.cpp:1042
SIPX_RESULT __sipxEventListenerRemove(const SIPX_INST hInst, SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Definition: sipXtapiEvents.cpp:1861
void sipxTransportDestroyAll(const SIPX_INST hInst)
Destroy all external transports for a given instance.
Definition: sipXtapiInternal.cpp:1184
SIPX_TRANSPORT hTransport
Definition: sipXtapiInternal.h:248
bool bEnabled
Is AGC enabled?
Definition: sipXtapiInternal.h:89
#define CONF_MAX_CONNECTIONS
Max number of conference participants.
Definition: sipXtapi.h:92
unsigned int SIPX_LINE
The SIPX_LINE handle represents an inbound or outbound identity.
Definition: sipXtapi.h:820
bool bHoldAfterConnect
Definition: sipXtapiInternal.h:223
Definition: sipXtapiInternal.h:253
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:112
HttpBody * pContent
Definition: sipXtapiInternal.h:276
SipXMessageObserver * pMessageObserver
Definition: sipXtapiInternal.h:156
SIPX_CALLSTATE_CAUSE
Callstate cause events identify the reason for a Callstate event or provide more detail.
Definition: sipXtapiEvents.h:244
An INFO event signals the application layer that an INFO message was sent to this user agent...
Definition: sipXtapiEvents.h:805
SIPX_MEDIA_EVENT lastLocalMediaAudioEvent
Definition: sipXtapiInternal.h:214
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:284
SIPX_NOISE_REDUCTION_MODE mode
Is NR enabled?
Definition: sipXtapiInternal.h:96
UtlString * pDialogHandle
Definition: sipXtapiInternal.h:283
SdpCodec ** sdpCodecArray
Pointer to an array of codecs.
Definition: sipXtapiInternal.h:107
SIPXTAPI_API SIPX_RESULT sipxGetActiveCallIds(SIPX_INST hInst, int maxCalls, int &actualCalls, UtlString callIds[])
Get the list of active calls for the specified call manager instance.
Definition: sipXtapiInternal.cpp:1832
UtlBoolean sipxCallSetState(SIPX_CALL hCall, SIPX_CALLSTATE_EVENT event, SIPX_CALLSTATE_CAUSE cause)
Definition: sipXtapiInternal.cpp:592
SIPXTAPI_API SIPX_RESULT sipxCallGetConnectionMediaInterface(const SIPX_CALL hCall, void **ppInstData)
Gets an CpMediaInterface pointer, associated with the call connection.
Definition: sipXtapiInternal.cpp:1936
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:201
UtlBoolean sipxRemoveCallHandleFromConf(const SIPX_CONF hConf, const SIPX_CALL hCall)
Definition: sipXtapiInternal.cpp:1425
SIPX_EVENT_CALLBACK_PROC pCallbackProc
Definition: sipXtapiInternal.h:370
SIPX_INTERNAL_CALLSTATE
Definition: sipXtapiInternal.h:178
void sipxLineReleaseLock(SIPX_LINE_DATA *pData, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:983
void sipxEnableListeners()
Enable all listener callbacks (default setting)
Definition: sipXtapiInternal.cpp:99
SIPXTAPI_API SIPX_RESULT sipxFlushHandles()
Flush handles to remove peaks between test cases – this WILL leak memory.
Definition: sipXtapiInternal.cpp:1853
SIPXTAPI_API SIPX_RESULT sipxTranslateToneId(const SIPX_TONE_ID toneId, SIPX_TONE_ID &xlateId)
Translate tone ids to implementation specific codes.
Definition: sipXtapiInternal.cpp:2243
bool bTonePlaying
Set to true if sipxCallHold has been invoked.
Definition: sipXtapiInternal.h:230
void sipxDisableListeners()
Disable all listener callbacks – events will be dropped.
Definition: sipXtapiInternal.cpp:92
virtual void OnKeepaliveFeedback(const OsNatKeepaliveEvent &event)
Definition: sipXtapiInternal.h:896
int iVol
Gain setting (VOLUME_MIN-VOLUME_MAX)
Definition: sipXtapiInternal.h:76
virtual void OnKeepaliveStart(const OsNatKeepaliveEvent &event)
Definition: sipXtapiInternal.h:878
SipRefreshManager * pSipRefreshManager
Definition: sipXtapiInternal.h:135
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:372
The SipXEventDispatcher adds a listener to sipXtapi and then redispatches all of the sipXtapi events ...
Definition: SipXEventDispatcher.h:62
int nEnergyLevelNotificationPeriodMs
period of time between each stream energy level notification>
Definition: sipXtapiInternal.h:173
char cRoutingId[64]
Definition: sipXtapiInternal.h:359
char szTransport[MAX_TRANSPORT_NAME]
Definition: sipXtapiInternal.h:353
const void * pUserData
Definition: sipXtapiInternal.h:358
Disconnected or failed.
Definition: sipXtapiInternal.h:188
Definition: sipXtapiInternal.h:263
SIPX_TRANSPORT_DATA & operator=(const SIPX_TRANSPORT_DATA &ref)
Assignment operator.
Definition: sipXtapiInternal.h:311
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:82
int nFilesPlaying
Definition: sipXtapiInternal.h:231
void sipxSubscribeClientNotifyCallback(const char *earlyDialogHandle, const char *dialogHandle, void *applicationData, const SipMessage *notifyRequest)
Callback for subscription client NOTIFY content.
Definition: sipXtapiInternal.cpp:920
void sipxTransportFree(SIPX_TRANSPORT_DATA *pData)
Frees the TRANSPORT structure allocated by a call to sipxConfigExternalTransportAdd.
Definition: sipXtapiInternal.cpp:1221
SIPX_CALL sipxCallLookupHandle(const UtlString &callID, const void *pSrc)
Definition: sipXtapiInternal.cpp:247
struct SIPX_CALL_DATA SIPX_CALL_DATA
UtlBoolean sipxCallSetRemoveInsteadofDrop(SIPX_CALL hCall)
Definition: sipXtapiInternal.cpp:2284
void sipxCallObjectFree(const SIPX_CALL hCall, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:293
void sipxTransportObjectFree(SIPX_TRANSPORT hTransport)
Releases the TRANSPORT handle created sipxConfigExternalTransportAdd Also cals sipxTransportFree.
Definition: sipXtapiInternal.cpp:1164
SIPX_AUDIO_BANDWIDTH_ID codecPref
Numeric Id of codec preference.
Definition: sipXtapiInternal.h:104
SIPX_CALL_DATA * sipxCallLookup(const SIPX_CALL hCall, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:314
SIPXTAPI_API SIPX_RESULT sipxStructureIntegrityCheck()
Definition: sipXtapiInternal.cpp:2181
UtlString * pEventType
Definition: sipXtapiInternal.h:275
Early dialog: inbound.
Definition: sipXtapiInternal.h:183
Definition: sipXtapiInternal.h:180
SIPX_VIDEO_BANDWIDTH_ID
Video Codec bandwidth ids are used to select a group of codecs with equal or lower bandwidth requirem...
Definition: sipXtapi.h:224
void sipxInfoFree(SIPX_INFO_DATA *pData)
Frees the INFO structure allocated by a call to sipxCallSendInfo.
Definition: sipXtapiInternal.cpp:1123
Early dialog: outbound.
Definition: sipXtapiInternal.h:182
KeepaliveEventDispatcher(void *pSrc)
Definition: sipXtapiInternal.h:870
SIPX_TRANSPORT_DATA & copy(const SIPX_TRANSPORT_DATA &ref)
Definition: sipXtapiInternal.h:319
const char * sipxTransportTypeToString(SIPX_TRANSPORT_TYPE type)
Definition: sipXtapiInternal.cpp:2221
static const bool isCustomTransport(const SIPX_TRANSPORT_DATA *const pTransport)
Definition: sipXtapiInternal.h:337
Definition: sipXtapiInternal.h:238
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:256
UtlBoolean bInFocus
Definition: sipXtapiInternal.h:220
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:67
void sipxPublisherDestroyAll(const SIPX_INST hInst)
Remove/Destroy all Publishers.
Definition: sipXtapiInternal.cpp:200
Definition: sipXtapiInternal.h:80
SIPXTAPI_API SIPX_RESULT sipxConfigGetLocalAudioConnectionId(const SIPX_INST hInst, int &connectionId)
Returns the 'local' connection id.
void sipxSubscribeReleaseLock(SIPX_SUBSCRIPTION_DATA *pData, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:2488
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:277
int numCodecs
Number of codecs.
Definition: sipXtapiInternal.h:113
int nLines
Counter for inprocess lines.
Definition: sipXtapiInternal.h:162
struct AGC_SETTING AGC_SETTING
SipSession * pSession
Definition: sipXtapiInternal.h:267
Definition: sipXtapiInternal.h:379
SIPX_NOISE_REDUCTION_MODE
SIPX_NOISE_REDUCTION_MODE defines the various noise reduction options.
Definition: sipXtapi.h:1001
void sipxGetContactHostPort(SIPX_INSTANCE_DATA *pData, SIPX_CONTACT_TYPE contactType, Url &uri, SIPX_TRANSPORT_TYPE protocol)
Definition: sipXtapiInternal.cpp:1675
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:268
SIPXTAPI_API UtlBoolean sipxCallGetState(SIPX_CALL hCall, SIPX_CALLSTATE_EVENT &lastEvent, SIPX_CALLSTATE_CAUSE &lastCause, SIPX_INTERNAL_CALLSTATE &state)
Definition: sipXtapiInternal.cpp:570
virtual void OnKeepaliveFailure(const OsNatKeepaliveEvent &event)
Definition: sipXtapiInternal.h:905
bool(SIPX_CALLING_CONVENTION * SIPX_EVENT_CALLBACK_PROC)(SIPX_EVENT_CATEGORY category, void *pInfo, void *pUserData)
Signature for event callback/observer.
Definition: sipXtapiEvents.h:145
void sipxCreateExternalTransportContacts(const SIPX_TRANSPORT_DATA *pData)
Called from sipxConfigExternalTransportAdd, this function creates LOCAL, STUN, and RELAY contact reco...
unsigned int SIPX_CALL
The SIPX_CALL handle represents a call or connection between the user agent and another party...
Definition: sipXtapi.h:828
bool bIsReliable
Definition: sipXtapiInternal.h:352
SPEAKER_TYPE
Speaker output types are used to differentiate between the logical ringer (used to alert user of in i...
Definition: sipXtapi.h:165
Definition: CallManager.h:69
The keepalive process has obtained information regarding your NAT mapped address (or local address)...
Definition: sipXtapiEvents.h:589
UtlBoolean sipxCallGetCommonData(SIPX_CALL hCall, SIPX_INSTANCE_DATA **pInst, UtlString *pStrCallId, UtlString *pStrRemoteAddress, UtlString *pLineId, UtlString *pGhostCallId=NULL, UtlString *pContactAddress=NULL)
Definition: sipXtapiInternal.cpp:402
SipSubscribeServer * pSubscribeServer
Definition: sipXtapiInternal.h:133
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:244
SIPX_CONF hConf
Definition: sipXtapiInternal.h:203
SIPX_TRANSPORT_DATA()
Definition: sipXtapiInternal.h:291
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:75
void sipxCallReleaseLock(SIPX_CALL_DATA *, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:369
CONF_HOLD_STATE
Definition: sipXtapiInternal.h:234
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:273
virtual ~KeepaliveEventDispatcher()
Definition: sipXtapiInternal.h:876
int SIPX_CONTACT_ID
Type for storing Contact Record identifiers.
Definition: sipXtapi.h:632
VIDEO_CODEC_PREFERENCES videoCodecSetting
Definition: sipXtapiInternal.h:147
SIPX_CALLSTATE_EVENT
Major call state events identify significant changes in the state of a call.
Definition: sipXtapiEvents.h:163
UtlBoolean sipxCallIsRemoveInsteadOfDropSet(SIPX_CALL hCall)
Definition: sipXtapiInternal.cpp:2302
void * pUserData
Definition: sipXtapiInternal.h:371
SIPX_EVENT_CATEGORY
Enum with all of the possible event types.
Definition: sipXtapiEvents.h:54
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:282
int connectionId
Definition: sipXtapiInternal.h:221
Definition: sipXtapiInternal.h:65
Definition: sipXtapiInternal.h:280
UtlBoolean validLineData(const SIPX_LINE_DATA *)
Definition: sipXtapiInternal.cpp:1028
SIPX_VIDEO_DISPLAY display
Definition: sipXtapiInternal.h:205
SipDialogMgr * pDialogManager
Definition: sipXtapiInternal.h:136
struct SIPX_INSTANCE_DATA SIPX_INSTANCE_DATA
int iLocalPort
Definition: sipXtapiInternal.h:355
UtlBoolean validConfData(const SIPX_CONF_DATA *pData)
Definition: sipXtapiInternal.cpp:1467
size_t nCalls
Definition: sipXtapiInternal.h:245
Definition: sipXtapiInternal.h:86
char szLocalIp[32]
Definition: sipXtapiInternal.h:354
unsigned long SIPX_CONF
The SIPX_CONF handle represents a collection of CALLs that have bridge (mixed) audio.
Definition: sipXtapi.h:836
void sipxInfoReleaseLock(SIPX_INFO_DATA *pData, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Unlocks the mutex associated with the INFO DATA.
Definition: sipXtapiInternal.cpp:1006
SIPX_MEDIA_EVENT lastRemoteMediaAudioEvent
Definition: sipXtapiInternal.h:216
Definition: sipXtapiInternal.h:857
internal sipXtapi structure that binds a an event callback proc with an instance pointer and user dat...
Definition: sipXtapiInternal.h:368
SipRefreshMgr * pRefreshManager
Definition: sipXtapiInternal.h:132
bool bInitialized
Definition: sipXtapiInternal.h:122
SIPX_TRANSPORT_DATA(const SIPX_TRANSPORT_DATA &ref)
Copy constructor.
Definition: sipXtapiInternal.h:306
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:357
void sipxUpdateListeners(SIPX_INST hOldInst, SIPX_INST hNewInst)
Definition: sipXtapiEvents.cpp:1898
void(* sipxCallEventCallbackFn)(const void *pSrc, const char *szCallId, SipSession *pSession, const char *szRemoteAddress, SIPX_CALLSTATE_EVENT event, SIPX_CALLSTATE_CAUSE cause, void *pEventData, const char *assertedIdentity)
Definition: sipXtapiInternal.h:385
Definition: sipXtapiInternal.h:236
SIPX_CONTACT_TYPE
SIPX_CONTACT_TYPE is an enumeration of possible address types for use with SIP contacts and SDP conne...
Definition: sipXtapi.h:524
Remotely held call.
Definition: sipXtapiInternal.h:186
bool bRouteByUser
Definition: sipXtapiInternal.h:360
struct TONE_STATES TONE_STATES
SIPX_LINE sipxLineLookupHandle(const char *szLineURI, const char *requestUri)
Definition: sipXtapiInternal.cpp:1235
UtlString * ghostCallId
Definition: sipXtapiInternal.h:196
void * GipsVideoEnginePlatform
Definition: GipsDefs.h:52
int sipxGetSessionCount()
Definition: sipXtapiInternal.cpp:1793
void sipxConfFree(const SIPX_CONF hConf)
Definition: sipXtapiInternal.cpp:1602
bool bCallHoldInvoked
Used if we are the transfer target, and the replaced call is HELD or REMOTE_HELD, then this flag is s...
Definition: sipXtapiInternal.h:228
SIPX_TRANSPORT_WRITE_PROC pFnWriteProc
Definition: sipXtapiInternal.h:356
UtlString * callId
Definition: sipXtapiInternal.h:194
A keepalive attempt has been started.
Definition: sipXtapiEvents.h:584
Definition: sipXtapiInternal.h:378
SdpCodec ** sdpCodecArray
Pointer to an array of codecs.
Definition: sipXtapiInternal.h:117
SPEAKER_TYPE enabledSpeaker
Definition: sipXtapiInternal.h:143
void sipxCallDestroyAll(const SIPX_INST hInst)
Destroy all calls and send simulated DESTROY events.
Definition: sipXtapiInternal.cpp:106
SIPX_CONTACT_ID contactId
Definition: sipXtapiInternal.h:260
SIPX_INFO_INFO infoData
Definition: sipXtapiInternal.h:265
SipLineMgr * pLineManager
Definition: sipXtapiInternal.h:131
int numCodecs
Number of codecs.
Definition: sipXtapiInternal.h:103
SIPX_MEDIA_EVENT
Enumeration of possible media events.
Definition: sipXtapiEvents.h:490
bool bDateHeader
use Date header in sip messages>
Definition: sipXtapiInternal.h:169
SipSubscribeClient * pSubscribeClient
Definition: sipXtapiInternal.h:134
Definition: sipXtapiInternal.h:241
SIPX_CONTACT_TYPE sipxCallGetLineContactType(SIPX_CALL hCall)
Definition: sipXtapiInternal.cpp:666
void sipxFireCallEvent(const void *pSrc, const char *szCallId, SipSession *pSession, const char *szRemoteAddress, SIPX_CALLSTATE_EVENT event, SIPX_CALLSTATE_CAUSE cause, void *pEventData=NULL, const char *szRemoteAssertedIdentity=NULL)
Fire events to interested listeners (call events only).
Definition: sipXtapiEvents.cpp:1179
Definition: sipXtapiInternal.h:126
void sipxInfoObjectFree(SIPX_INFO hInfo)
Releases the INFO handle created by a call to sipxCallSendInfo.
Definition: sipXtapiInternal.cpp:1099
UtlBoolean sipxCallGetMediaState(SIPX_CALL hCall, SIPX_MEDIA_EVENT &lastLocalMediaAudioEvent, SIPX_MEDIA_EVENT &lastLocalMediaVideoEvent, SIPX_MEDIA_EVENT &lastRemoteMediaAudioEvent, SIPX_MEDIA_EVENT &lastRemoteMediaVideoEvent)
Definition: sipXtapiInternal.cpp:489
UtlString strCallId
Definition: sipXtapiInternal.h:243
struct MIC_SETTING MIC_SETTING
SIPX_TONE_ID
DTMF/other tone ids used with sipxCallStartTone/sipxCallStopTone.
Definition: sipXtapi.h:314
SIPX_KEEPALIVE_TYPE
SIPX_KEEPALIVE_TYPEs define different methods of keeping NAT/firewall port open.
Definition: sipXtapi.h:944
void sipxFireKeepaliveEvent(const void *pSrc, SIPX_KEEPALIVE_EVENT event, SIPX_KEEPALIVE_CAUSE cause, SIPX_KEEPALIVE_TYPE type, const char *szRemoteAddress, int remotePort, int keepAliveSecs, const char *szMappedAddress, int mappedPort)
Fires events to interested listener (keepalive events only)
Definition: sipXtapiEvents.cpp:1730
void * m_pSrc
Definition: sipXtapiInternal.h:915
Definition: sipXtapiInternal.h:271
Definition: sipXtapiInternal.h:120
#define SIPXTAPI_API
Assume extern "C" for non-win32 platforms.
Definition: sipXtapi.h:138
bool bMuted
Muted state (regain gain)
Definition: sipXtapiInternal.h:68
UtlBoolean validCallData(SIPX_CALL_DATA *pData)
Definition: sipXtapiInternal.cpp:356
#define MAX_TRANSPORT_NAME
Definition: sipXtapiInternal.h:287
SipXEventDispatcher * pEventDispatcher
Definition: sipXtapiInternal.h:150
SIPX_RESULT
SIPX_RESULT is an enumeration with all the possible result/return codes.
Definition: sipXtapi.h:282
UtlString * remoteAddress
Definition: sipXtapiInternal.h:197
UtlBoolean sipxIsCallInFocus()
Definition: sipXtapiInternal.cpp:1799
unsigned long SIPX_SUB
A SIPX_SUB handle represent a subscription to a remote publisher.
Definition: sipXtapi.h:872
Definition: sipXtapiInternal.h:93
SIPX_MEDIA_EVENT lastLocalMediaVideoEvent
Definition: sipXtapiInternal.h:215
SIPX_LINESTATE_CAUSE
Enumeration of possible linestate Event causes.
Definition: sipXtapiEvents.h:369
SIPX_MEDIA_TYPE
Enumeration of possible media event types.
Definition: sipXtapiEvents.h:660
struct VIDEO_CODEC_PREFERENCES VIDEO_CODEC_PREFERENCES
SIPX_TRANSPORT hTransport
Cache the connection id.
Definition: sipXtapiInternal.h:222
struct AEC_SETTING AEC_SETTING
int nCalls
Counter for inprocess calls.
Definition: sipXtapiInternal.h:160
SIPXTAPI_API SIPX_RESULT sipxConfigLoadSecurityRuntime()
Dynamically loads the following NSS runtime libraries, if they can be found: smime3.dll;nss3.dll;nspr4.dll;plc4.dll.
Definition: sipXtapiInternal.cpp:2367
UtlBoolean sipxAddCallHandleToConf(const SIPX_CALL hCall, const SIPX_CONF hConf)
Definition: sipXtapiInternal.cpp:1400
SIPX_CONTACT_TYPE contactType
Definition: sipXtapiInternal.h:258
SIPX_LINE_DATA * sipxLineLookup(const SIPX_LINE hLine, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:688
SIPX_VIDEO_BANDWIDTH_ID codecPref
Numeric Id of codec preference.
Definition: sipXtapiInternal.h:114
SIPX_VIDEO_BANDWIDTH_ID fallBack
Fallback id if codec setting fails.
Definition: sipXtapiInternal.h:115
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:202
AUDIO_CODEC_PREFERENCES audioCodecSetting
Definition: sipXtapiInternal.h:145
SIPX_TRANSPORT_DATA * sipxTransportLookup(const SIPX_TRANSPORT hTransport, SIPX_LOCK_TYPE type)
Looks up the SIPX_TRANSPORT_DATA structure pointer, given the SIPX_TRANSPORT handle.
Definition: sipXtapiInternal.cpp:780
void(* sipxLineEventCallbackFn)(const void *pSrc, const char *szLineIdentifier, SIPX_LINESTATE_EVENT event, SIPX_LINESTATE_CAUSE cause, const char *bodyBytes)
Definition: sipXtapiInternal.h:402
UtlString * sessionCallId
Definition: sipXtapiInternal.h:195
void sipxPublishReleaseLock(SIPX_PUBLISH_DATA *pData, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:2426
int nConferences
Counter for inprocess conferences.
Definition: sipXtapiInternal.h:161
UtlBoolean sipxCallSetMediaState(SIPX_CALL hCall, SIPX_MEDIA_EVENT event, SIPX_MEDIA_TYPE type)
Definition: sipXtapiInternal.cpp:514
bool sipxFireEvent(const void *pSrc, SIPX_EVENT_CATEGORY category, void *pInfo)
Bubbles up all non-line and non-call events to the application layer.
Definition: sipXtapiEvents.cpp:2426
SIPX_CONF_DATA * sipxConfLookup(const SIPX_CONF hConf, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:1480
bool bRtpOverTcp
allow RTP over TCP
Definition: sipXtapiInternal.h:172
SIPX_LOCK_TYPE
Definition: sipXtapiInternal.h:375
virtual void OnKeepaliveStop(const OsNatKeepaliveEvent &event)
Definition: sipXtapiInternal.h:887
void sipxLineRemoveAll(const SIPX_INST hInst)
Remove/Destroy all Lines.
Definition: sipXtapiInternal.cpp:185
UtlString * pPreferences
List of preferred codecs.
Definition: sipXtapiInternal.h:116
UtlSList * pLineAliases
Definition: sipXtapiInternal.h:259
SIPX_CALLSTATE_EVENT lastCallstateEvent
Remove the call instead of dropping it – this is used as part of consultative transfer when we are t...
Definition: sipXtapiInternal.h:211
void sipxSubscribeDestroyAll(const SIPX_INST hInst)
Remove/Destroy all subscriptions.
Definition: sipXtapiInternal.cpp:224
void sipxSubscribeClientSubCallback(enum SipSubscribeClient::SubscriptionState newState, const char *earlyDialogHandle, const char *dialogHandle, void *applicationData, int responseCode, const char *responseText, long expiration, const SipMessage *subscribeResponse)
Callback for subscription client state.
Definition: sipXtapiInternal.cpp:820
SIPX_MEDIA_EVENT lastRemoteMediaVideoEvent
Definition: sipXtapiInternal.h:217
void sipxTransportReleaseLock(SIPX_TRANSPORT_DATA *pData, SIPX_LOCK_TYPE type)
Unlocks the mutex associated with the TRANSPORT DATA.
Definition: sipXtapiInternal.cpp:1143
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:351
SIPXTAPI_API CpMediaInterface * sipxCallGetCpMediaInterface(const SIPX_CALL hCall)
Get pointer to Sipx media interface for call.
Definition: sipXtapiInternal.cpp:2156
unsigned long SIPX_PUB
The SIPX_PUB handle represent a publisher context.
Definition: sipXtapi.h:860
SIPX_TRANSPORT_TYPE
SIPX_TRANSPORT_TYPE defines various protocols use for signaling transport.
Definition: sipXtapi.h:541
int iGain
Gain setting (GAIN_MIN-GAIN_MAX)
Definition: sipXtapiInternal.h:69
OsMutex * pLock
Definition: sipXtapiInternal.h:159
Definition: sipXtapiInternal.h:288
SIPX_LINESTATE_EVENT
Enumeration of possible linestate Events.
Definition: sipXtapiEvents.h:330
SIPXTAPI_API SIPX_RESULT sipxConfigAllowMethod(const SIPX_INST hInst, const char *method, const bool bAllow=true)
Utility function for setting allowed methods on a instance's user-agent.
Definition: sipXtapiInternal.cpp:1769
Definition: sipXtapiInternal.h:110
Locally held call, bridging.
Definition: sipXtapiInternal.h:187
#define MAX_VIDEO_DEVICE_LENGTH
Max length of video capture device string.
Definition: sipXtapi.h:90
Definition: sipXtapiEvents.h:607
bool(* sipxEventCallbackFn)(const void *pSrc, SIPX_EVENT_CATEGORY category, void *pInfo)
Definition: sipXtapiInternal.h:409
void sipxIncSessionCount()
Definition: sipXtapiInternal.cpp:1780
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:257
Unknown call state.
Definition: sipXtapiInternal.h:181
Url * lineURI
Definition: sipXtapiInternal.h:255
Active call - remote audio.
Definition: sipXtapiInternal.h:184
void sipxDecSessionCount()
Definition: sipXtapiInternal.cpp:1787
void destroyCallData(SIPX_CALL_DATA *pData)
Definition: sipXtapi.cpp:132
A keepalive process has been stopped.
Definition: sipXtapiEvents.h:599
Definition: sipXtapiInternal.h:237
SIPX_INSTANCE_DATA * pInst
Definition: sipXtapiInternal.h:266
const char * sipxContactTypeToString(SIPX_CONTACT_TYPE type)
Definition: sipXtapiInternal.cpp:2195
unsigned long SIPX_TRANSPORT
The SIPX_TRANSPORT handle represents a user-implementation of a network transport mechanism to be use...
Definition: sipXtapi.h:879
struct AUDIO_CODEC_PREFERENCES AUDIO_CODEC_PREFERENCES
both on hold due to a local hold
Definition: sipXtapiInternal.h:185
unsigned long SIPX_INFO
The SIPX_INFO handle represents a handle to an INFO message sent by a sipXtapi instance.
Definition: sipXtapi.h:849
int nNumFilesPlaying
Definition: sipXtapiInternal.h:249
void * pVoiceEngine
Cache VoiceEngine pointer.
Definition: sipXtapiInternal.h:163
SIPX_TRANSPORT hTransport
Definition: sipXtapiInternal.h:350
Definition: sipXtapiInternal.h:867
SIPX_SECURITY_ATTRIBUTES security
Definition: sipXtapiInternal.h:204
SIPX_KEEPALIVE_EVENT
Enumeration of possible KEEPALIVE events (EVENT_CATEGORY_KEEPALIVE)
Definition: sipXtapiEvents.h:582
SIPX_LINE sipxLineLookupHandleByURI(const char *szURI)
Definition: sipXtapiInternal.cpp:1248
TONE_STATES toneStates
Definition: sipXtapiInternal.h:148
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:95
struct SPEAKER_SETTING SPEAKER_SETTING
Class that is an OsServerTask, and has a message queue that observes SIP messages.
Definition: SipXMessageObserver.h:40
SIPX_RESULT __sipxEventListenerAdd(const SIPX_INST hInst, SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Definition: sipXtapiEvents.cpp:1835
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:102
SIPX_LINE hLine
Definition: sipXtapiInternal.h:200
SIPX_CONF sipxCallGetConf(SIPX_CALL hCall)
Definition: sipXtapiInternal.cpp:474
OsNotification * pStunNotification
Signals the initial stun success/failure when calling sipXconfigEnableStun.
Definition: sipXtapiInternal.h:157
void sipxFireMediaEvent(const void *pSrc, const char *szCallId, const char *szRemoteAddress, SIPX_MEDIA_EVENT event, SIPX_MEDIA_CAUSE cause, SIPX_MEDIA_TYPE type, void *pEventData=NULL)
Fires events to interested listener (media events only)
Definition: sipXtapiEvents.cpp:1526
Structure used to pass window handle/filter interface for video calls.
Definition: sipXtapi.h:570
bool bAllowHeader
use allow header in sip messages>
Definition: sipXtapiInternal.h:168
Container class for security attributes.
Definition: sipXtapi.h:409
CallManager * pCallManager
Definition: sipXtapiInternal.h:130
AGC_SETTING agcSetting
Definition: sipXtapiInternal.h:141
Definition: sipXtapiInternal.h:100
AEC_SETTING aecSetting
Definition: sipXtapiInternal.h:140
SIPX_AUDIO_BANDWIDTH_ID
Codec bandwidth ids are used to select a group of codecs with equal or lower bandwidth requirements...
Definition: sipXtapi.h:192
SIPXTAPI_API void sipxLogEntryAdd(OsSysLogPriority logLevel, const char *format,...)
Adds a log entry to the system log - made necessary to add logging capability on the API level...
Definition: sipXtapiInternal.cpp:1755
SIPX_AEC_MODE mode
Is AEC enabled?
Definition: sipXtapiInternal.h:83
SIPX_INSTANCE_DATA * findSessionByCallManager(const void *pCallManager)
Definition: sipXtapiInternal.cpp:1652
SIPXTAPI_API OsMsgQ * sipxCallGetMediaConrolQueue(const SIPX_CALL hCall)
Get pointer to Sipx media control message queue for call.
Definition: sipXtapiInternal.cpp:2167
void * SIPX_INST
The SIPX_INST handle represents an instance of a user agent.
Definition: sipXtapi.h:811
FAILURE events are only fired when the physical send fails.
Definition: sipXtapiEvents.h:594
void sipxConferenceDestroyAll(const SIPX_INST hInst)
Remove/Destroy all Conferences.
Definition: sipXtapiInternal.cpp:158
SIPX_SUBSCRIPTION_DATA * sipxSubscribeLookup(const SIPX_SUB hSub, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:2449
SIPXTAPI_API SIPX_RESULT sipxCheckForHandleLeaks()
Look for leaks in internal handles.
Definition: sipXtapiInternal.cpp:1887
SIPX_PUBLISH_DATA * sipxPublishLookup(const SIPX_PUB hPub, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Definition: sipXtapiInternal.cpp:2387
OsRWMutex * pMutex
Definition: sipXtapiInternal.h:250
Definition: sipXtapiInternal.h:377
UtlString * lineURI
Definition: sipXtapiInternal.h:198
bool(SIPX_CALLING_CONVENTION * SIPX_TRANSPORT_WRITE_PROC)(SIPX_TRANSPORT hTransport, const char *szDestinationIp, const int iDestPort, const char *szLocalIp, const int iLocalPort, const void *pData, const size_t nData, const void *pUserData)
External Transport callback definition.
Definition: sipXtapi.h:897
bool bInitialized
Is the data valid.
Definition: sipXtapiInternal.h:88
SdpCodecList * pCodecFactory
Definition: sipXtapiInternal.h:129
UtlBoolean bRemoveInsteadOfDrop
Definition: sipXtapiInternal.h:206
sipXtapi main API declarations
Definition: sipXtapiInternal.h:73
NOISE_REDUCTION_SETTING nrSetting
Definition: sipXtapiInternal.h:142
MIC_SETTING micSetting
Definition: sipXtapiInternal.h:138
SIPX_INFO_DATA * sipxInfoLookup(const SIPX_INFO hInfo, SIPX_LOCK_TYPE type, const OsStackTraceLogger &oneBackInStack)
Looks up the SIPX_INFO_DATA structure pointer, given the SIPX_INFO handle.
Definition: sipXtapiInternal.cpp:733
#define MAX_AUDIO_DEVICES
Max number of input/output audio devices.
Definition: sipXtapi.h:88
SIPX_MEDIA_CAUSE
Enumeration of possible media event causes.
Definition: sipXtapiEvents.h:638
KeepaliveEventDispatcher * pKeepaliveDispatcher
Definition: sipXtapiInternal.h:175