sipXcallLib home page


sipXtapiEvents.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2021 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2007 Robert J. Andreasen, Jr.
5 // Licensed to SIPfoundry under a Contributor Agreement.
6 //
7 // Copyright (C) 2004-2006 SIPfoundry Inc.
8 // Licensed by SIPfoundry under the LGPL license.
9 //
10 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
11 // Licensed to SIPfoundry under a Contributor Agreement.
12 //
13 // $$
15 
16 
37 #ifndef _SIPXTAPIEVENT_H
38 #define _SIPXTAPIEVENT_H
39 
40 // SYSTEM INCLUDES
41 // APPLICATION INCLUDES
42 #include "sipXtapi.h"
43 
44 // DEFINES
45 // MACROS
46 // EXTERNAL FUNCTIONS
47 // EXTERNAL VARIABLES
48 // CONSTANTS
49 // FORWARD DECLARATIONS
50 
54 typedef enum SIPX_EVENT_CATEGORY
55 {
103 
108 #define VALID_SIPX_EVENT_CATEGORY(x) (((x) >= EVENT_CATEGORY_CALLSTATE) && ((x) <= EVENT_CATEGORY_KEEPALIVE))
109 
146  void* pInfo,
147  void* pUserData);
164 {
206  CALLSTATE_HELD = 6000,
238 
239 
245 {
324 
330  typedef enum SIPX_LINESTATE_EVENT
331 {
364 
365 
370 {
397 
398 
399 
400 
405 {
411 };
412 
413 
418 {
425 } ;
426 
427 
432 {
442  SECURITY_TLS = 4000,
444 
449 {
485 
486 
490 typedef enum SIPX_MEDIA_EVENT
491 {
577 
578 
583 {
601 
606 {
609 
610 
620 typedef struct SIPX_KEEPALIVE_INFO
621 {
622  size_t nSize ;
626  const char* szRemoteAddress ;
627  int remotePort ;
629  const char* szFeedbackAddress;
634 
638 typedef enum SIPX_MEDIA_CAUSE
639 {
655 
660 typedef enum SIPX_MEDIA_TYPE
661 {
665 } SIPX_MEDIA_TYPE ;
666 
667 
677 typedef struct SIPX_MEDIA_INFO
678 {
679  size_t nSize ;
691  int idleTime;
702  const char* deviceName;
705 } SIPX_MEDIA_INFO ;
706 
707 
717 typedef struct SIPX_CALLSTATE_INFO
718 {
719  // TODO: Add a bitmask that identified which structure items are valid. For
720  // example, codec and hAssociatedCall are only valid for certain event
721  // sequences.
722 
723  size_t nSize;
735 
736 
746 typedef struct
747 {
748  size_t nSize ;
755 
756 
761 {
769 
780 typedef struct SIPX_INFOSTATUS_INFO
781 {
782  size_t nSize ;
788  const char* szResponseText ;
791 
792 
805 typedef struct SIPX_INFO_INFO
806 {
807  size_t nSize ;
810  const char* szFromURL ;
812  const char* szUserAgent;
813  const char* szContentType ;
814  const char* pContent ;
815  size_t nContentLength ;
817 } SIPX_INFO_INFO ;
818 
823 {
828  // TBD
830 
835 {
839 
851 typedef struct SIPX_SUBSTATUS_INFO
852 {
853  size_t nSize ;
860  const char* szSubServerUserAgent;
864 
865 
877 typedef struct SIPX_NOTIFY_INFO
878 {
879  size_t nSize ;
882  const char* szNotiferUserAgent;
884  const char* szContentType ;
885  const void* pContent ;
886  size_t nContentLength ;
888 
889 
903 typedef struct SIPX_CONFIG_INFO
904 {
905  size_t nSize ;
908  void* pData;
911 
912 
924 typedef struct SIPX_SECURITY_INFO
925 {
926  size_t nSize ;
927  char* szSRTPkey;
928  void* pCertificate;
934  char* callId;
940 
941 
942 /* ============================ FUNCTIONS ================================= */
943 
957  const void* pEventSource,
958  void** pEventCopy) ;
959 
960 
969  void* pEventCopy) ;
970 
979  SIPX_EVENT_CALLBACK_PROC pCallbackProc,
980  void *pUserData);
981 
991  SIPX_EVENT_CALLBACK_PROC pCallbackProc,
992  void* pUserData) ;
993 
994 /* ============================ FUNCTIONS ================================= */
995 
1007  char* szBuffer,
1008  size_t nBuffer) ;
1009 
1010 
1021  const void* pEvent,
1022  char* szBuffer,
1023  size_t nBuffer);
1024 
1037  char* szBuffer,
1038  size_t nBuffer);
1039 
1040 
1050  char* szBuffer,
1051  size_t nBuffer) ;
1052 
1062  char* szBuffer,
1063  size_t nBuffer) ;
1064 
1074  char* szBuffer,
1075  size_t nBuffer) ;
1076 
1086  char* szBuffer,
1087  size_t nBuffer);
1088 
1098  char* szBuffer,
1099  size_t nBuffer);
1100 
1110  char* szBuffer,
1111  size_t nBuffer);
1112 
1122  char* szBuffer,
1123  size_t nBuffer);
1124 
1134  char* szBuffer,
1135  size_t nBuffer);
1136 
1146  char* szBuffer,
1147  size_t nBuffer);
1148 
1149 #endif /* ifndef _sipXtapiEvents_h_ */
NOTIFY evens are send to the application layer after a remote publisher has sent data to the applicat...
Definition: sipXtapiEvents.h:82
A failure occured during the TLS handshake.
Definition: sipXtapiEvents.h:475
SIPX_KEEPALIVE_CAUSE
Enumeration of possible KEEPALIVE cause codes (EVENT_CATEGORY_KEEPALIVE)
Definition: sipXtapiEvents.h:605
An S/MIME decryption operation aborted due to a bad signature.
Definition: sipXtapiEvents.h:464
An attempt to send INVITE with no codecs in SDP.
Definition: sipXtapiEvents.h:321
unsigned int SIPX_LINE
The SIPX_LINE handle represents an inbound or outbound identity.
Definition: sipXtapi.h:820
SIPX_CALLSTATE_CAUSE
Callstate cause events identify the reason for a Callstate event or provide more detail.
Definition: sipXtapiEvents.h:244
const char * szFeedbackAddress
This UA&#39;s IP address as seen by the remote side (only valid in FEEDBACK events)
Definition: sipXtapiEvents.h:629
Fired when an output media device is now present/available.
Definition: sipXtapiEvents.h:573
An INFO event signals the application layer that an INFO message was sent to this user agent...
Definition: sipXtapiEvents.h:805
The transfer was completed successfully.
Definition: sipXtapiEvents.h:292
The UNREGISTER_FAILED event is fired to indicate a failure of un-REGISTRATION.
Definition: sipXtapiEvents.h:354
INFO_STATUS events are sent when the application requests sipXtapi to send an INFO message to another...
Definition: sipXtapiEvents.h:68
size_t nSize
Size of the structure.
Definition: sipXtapiEvents.h:622
See LINESTATE_REGISTERING event.
Definition: sipXtapiEvents.h:372
SIPX_SUB hSub
A handle to the subscrption which caused this NOTIFY event to be received.
Definition: sipXtapiEvents.h:880
Fired if the remote party&#39;s user-agent does not support S/MIME.
Definition: sipXtapiEvents.h:301
The DESTORYED event indicates the underlying resources have been removed for a call.
Definition: sipXtapiEvents.h:230
SIPX_MEDIA_TYPE mediaType
Media type: Either MEDIA_TYPE_AUDIO or MEDIA_TYPE_VIDEO.
Definition: sipXtapiEvents.h:684
SIPX_MEDIA_CAUSE cause
Media cause identifier.
Definition: sipXtapiEvents.h:682
Fired when an input media device is now present/available.
Definition: sipXtapiEvents.h:570
An S/MIME encryption failed because the security library could not start.
Definition: sipXtapiEvents.h:456
A TLS operation failed due to a bad password.
Definition: sipXtapiEvents.h:471
Recording to file or buffer paused after being in the MEDIA_RECORDFILE_START or MEDIA_RECORDBUFFER_ST...
Definition: sipXtapiEvents.h:539
Media state changed due to an error condition.
Definition: sipXtapiEvents.h:645
Unable to obtain a STUN binding for signaling purposes.
Definition: sipXtapiEvents.h:424
size_t nSize
The size of this structure in bytes.
Definition: sipXtapiEvents.h:879
The BRIDGED state indicates that a call is active, however, the local microphone/speaker are not enga...
Definition: sipXtapiEvents.h:206
A dtmf tone was started/stopped, see the cause codes for exact status.
Definition: sipXtapiEvents.h:554
SIPX_LINESTATE_EVENT event
Callstate event enum code.
Definition: sipXtapiEvents.h:750
Media has been received.
Definition: sipXtapiEvents.h:558
Unable to authenticate due to either bad or missing credentials.
Definition: sipXtapiEvents.h:270
This event is fired if a response is received after an INFO message has been sent.
Definition: sipXtapiEvents.h:407
An S/MIME decryption failed due to an invalid parameter.
Definition: sipXtapiEvents.h:463
int remotePort
Target port where you are sending the keepalives.
Definition: sipXtapiEvents.h:627
SIPX_LINE hLine
Line handle associated with the linestate event.
Definition: sipXtapiEvents.h:749
Incoming RTP stream energy level - value in idelTime.
Definition: sipXtapiEvents.h:561
Failed to unregister because of a connectivity problem.
Definition: sipXtapiEvents.h:387
A file is being played to local and/or remote parties.
Definition: sipXtapiEvents.h:516
The UNREGISTERED event is fired after sipXtapi has received a response from the registrar server...
Definition: sipXtapiEvents.h:344
The server encountered an error while trying to process the message.
Definition: sipXtapiEvents.h:765
SIPXTAPI_API char * sipxKeepaliveCauseToString(SIPX_KEEPALIVE_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated keepalive cause.
Definition: sipXtapiEvents.cpp:2220
char * remoteAddress
A remote address associated with the event.
Definition: sipXtapiEvents.h:938
See LINESTATE_PROVISIONED event.
Definition: sipXtapiEvents.h:394
Unknown cause.
Definition: sipXtapiEvents.h:246
An INFOSTATUS event informs that application layer of the status of an outbound INFO requests...
Definition: sipXtapiEvents.h:780
An OFFERING state indicates that a new call invitation has been extended this user agent...
Definition: sipXtapiEvents.h:218
H.264 SPS parameter set recieved.
Definition: sipXtapiEvents.h:562
An ALERTING state indicates that an inbound call has been accepted and the application layer should a...
Definition: sipXtapiEvents.h:224
Event was fired as part of the normal encryption / decryption process.
Definition: sipXtapiEvents.h:454
This is the initial value for an INFOSTATUS event.
Definition: sipXtapiEvents.h:406
size_t nContentLength
length of the INFO message content
Definition: sipXtapiEvents.h:815
SIPX_CODEC_INFO codec
Negotiated codec; only supplied on MEDIA_LOCAL_START and MEDIA_REMOTE_START events.
Definition: sipXtapiEvents.h:688
An S/MIME encryption succeeded.
Definition: sipXtapiEvents.h:455
SIPX_CALLSTATE_CAUSE cause
Callstate cause enum code.
Definition: sipXtapiEvents.h:728
const char * szResponseText
The text of the request acknowledgement.
Definition: sipXtapiEvents.h:788
const char * szRemoteAddress
Target IP/host where you are sending the keepalives.
Definition: sipXtapiEvents.h:626
SIPX_SUBSCRIPTION_CAUSE
Enumeration of cause codes for state subscription state changes.
Definition: sipXtapiEvents.h:834
CONFIG events signify changes in configuration.
Definition: sipXtapiEvents.h:86
The stage changed due to a redirection of a call.
Definition: sipXtapiEvents.h:267
Media state changed due to a local or remote unhold operation.
Definition: sipXtapiEvents.h:643
The REGISTER_FAILED event is fired to indicate a failure of REGISTRATION.
Definition: sipXtapiEvents.h:347
See LINESTATE_UNREGISTERED event.
Definition: sipXtapiEvents.h:378
A file playback has been stopped.
Definition: sipXtapiEvents.h:525
A buffer is being played to local and/or remote parties.
Definition: sipXtapiEvents.h:526
A call on this user agent is being transferred to another user agent.
Definition: sipXtapiEvents.h:250
SIPX_MESSAGE_STATUS status
Emumerated status for this request acknowledgement.
Definition: sipXtapiEvents.h:784
A BYE message was received, however, the call is in in an idle state.
Definition: sipXtapiEvents.h:313
struct SIPX_CALLSTATE_INFO SIPX_CALLSTATE_INFO
Callstate event information structure.
Recording to a file has started.
Definition: sipXtapiEvents.h:535
SIPX_CONFIG_EVENT event
Event code – see SIPX_CONFIG_EVENT for details.
Definition: sipXtapiEvents.h:906
struct SIPX_NOTIFY_INFO SIPX_NOTIFY_INFO
A NOTIFY_INFO event signifies that a NOTIFY message was received for an active subscription.
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
unsigned int SIPX_CALL
The SIPX_CALL handle represents a call or connection between the user agent and another party...
Definition: sipXtapi.h:828
LINESTATE events indicate changes in the status of a line appearance.
Definition: sipXtapiEvents.h:61
Callstate event information structure.
Definition: sipXtapiEvents.h:717
KEEPALIVE events signal when a keepalive is started/stopped/fails.
Definition: sipXtapiEvents.h:95
The PROVISIONED event is fired when a sipXtapi Line is added, and Registration is not requested (i...
Definition: sipXtapiEvents.h:361
SIPXTAPI_API char * sipxMediaEventToString(SIPX_MEDIA_EVENT event, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated media event.
Definition: sipXtapiEvents.cpp:2031
char * szSubjAltName
Populated for SECURITY_CAUSE_SIGNATURE_NOTIFY.
Definition: sipXtapiEvents.h:933
Fired if the media device is not present or already in use.
Definition: sipXtapiEvents.h:556
The keepalive process has obtained information regarding your NAT mapped address (or local address)...
Definition: sipXtapiEvents.h:589
The REMOTE_OFFERING event indicates that a call setup invitation has been sent to the remote party...
Definition: sipXtapiEvents.h:176
The even was fired as part of sipXtapi shutdown.
Definition: sipXtapiEvents.h:308
SIPX_SUBSCRIPTION_STATE
Enumeration of the possible subscription states visible to the client.
Definition: sipXtapiEvents.h:822
The transfer target is ringing.
Definition: sipXtapiEvents.h:287
Media state changed due to a local or remote hold operation.
Definition: sipXtapiEvents.h:641
size_t nSize
the size of this structure in bytes
Definition: sipXtapiEvents.h:926
Not enough resources are available to complete the desired operation.
Definition: sipXtapiEvents.h:263
SIPX_CALLSTATE_EVENT
Major call state events identify significant changes in the state of a call.
Definition: sipXtapiEvents.h:163
SECURITY events signify occurences in call security processing.
Definition: sipXtapiEvents.h:90
SIPX_INFO hInfo
the handle used to make the outbound info request.
Definition: sipXtapiEvents.h:783
Mic energy level - value in idleTime.
Definition: sipXtapiEvents.h:559
SIPX_INFOSTATUS_EVENT event
Event code for this INFO STATUS message.
Definition: sipXtapiEvents.h:789
int responseCode
Numerical status code for this request acknowledgement.
Definition: sipXtapiEvents.h:786
size_t nSize
The size of this structure.
Definition: sipXtapiEvents.h:723
SIPXTAPI_API char * sipxCallEventToString(SIPX_CALLSTATE_EVENT event, SIPX_CALLSTATE_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated call state event ids.
Definition: sipXtapiEvents.cpp:1019
Media state changed due to an error condition, (device was removed, already in use, etc).
Definition: sipXtapiEvents.h:646
struct SIPX_INFO_INFO SIPX_INFO_INFO
An INFO event signals the application layer that an INFO message was sent to this user agent...
SIPX_EVENT_CATEGORY
Enum with all of the possible event types.
Definition: sipXtapiEvents.h:54
SIPXTAPI_API SIPX_RESULT sipxDuplicateEvent(SIPX_EVENT_CATEGORY category, const void *pEventSource, void **pEventCopy)
Duplicate the event information for a sipXtapi event.
Definition: sipXtapiEvents.cpp:592
INFO events are sent to the application whenever an INFO message is received by the sipXtapi user age...
Definition: sipXtapiEvents.h:74
An SUBSTATUS event informs that application layer of the status of an outbound SUBSCRIPTION requests;...
Definition: sipXtapiEvents.h:851
The remote host is not reachable.
Definition: sipXtapiEvents.h:473
Remote media has not been received for some configured period.
Definition: sipXtapiEvents.h:510
A response was received with an unknown status code.
Definition: sipXtapiEvents.h:315
const char * szUserAgent
the User Agent string of the source agent
Definition: sipXtapiEvents.h:812
SIPXTAPI_API char * sipxSubStatusCauseToString(SIPX_SUBSCRIPTION_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated subscription status cause.
Definition: sipXtapiEvents.cpp:2360
SIPXTAPI_API char * sipxSubStatusStateToString(SIPX_SUBSCRIPTION_STATE state, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated subscription status state.
Definition: sipXtapiEvents.cpp:2332
The DIALTONE event indicates that a new call has been created for the purpose of placing an outbound ...
Definition: sipXtapiEvents.h:172
An S/MIME decryption succeeded.
Definition: sipXtapiEvents.h:460
An S/MIME encryption failed because of a bad certificate / public key.
Definition: sipXtapiEvents.h:458
char * szSRTPkey
the negotiated SRTP key, if any.
Definition: sipXtapiEvents.h:927
SIPX_SECURITY_EVENT event
Event code for this SECURITY_INFO message.
Definition: sipXtapiEvents.h:931
Incompatible destination – We were unable to negotiate a codec.
Definition: sipXtapiEvents.h:648
A transfer attempt has been initiated.
Definition: sipXtapiEvents.h:272
struct SIPX_KEEPALIVE_INFO SIPX_KEEPALIVE_INFO
Keepalive event information structure.
A call is being transferred to this user agent from another user agent.
Definition: sipXtapiEvents.h:248
An UNKNOWN cause code is generated when the state for the security operation is no longer known...
Definition: sipXtapiEvents.h:450
A TLS operation failed.
Definition: sipXtapiEvents.h:472
Unknown configuration event.
Definition: sipXtapiEvents.h:419
int feedbackPort
This UA&#39;s port as seen by the remote side (only valid in FEEDBACK events)
Definition: sipXtapiEvents.h:631
Local media (audio or video) is being sent to the remote party.
Definition: sipXtapiEvents.h:495
A DTMF tone has started.
Definition: sipXtapiEvents.h:650
int nCertificateSize
size of the certificate blob
Definition: sipXtapiEvents.h:930
Receive a redirect with NO contact or a RANDOM redirect.
Definition: sipXtapiEvents.h:316
void * pCertificate
pointer to the certificate blob that was used to encrypt and/or sign.
Definition: sipXtapiEvents.h:928
SIPX_TONE_ID toneId
DTMF tone received from remote party; only supplied on MEDIA_REMOTE_DTMF event).
Definition: sipXtapiEvents.h:697
Remote media (audio or video) is ready to be received.
Definition: sipXtapiEvents.h:503
#define SIPX_CALLING_CONVENTION
The SIPX_CALLING_CONVENTION define controls the default calling convention.
Definition: sipXtapi.h:57
char * callId
Points to a call-id string associated with the event.
Definition: sipXtapiEvents.h:934
struct SIPX_SUBSTATUS_INFO SIPX_SUBSTATUS_INFO
An SUBSTATUS event informs that application layer of the status of an outbound SUBSCRIPTION requests;...
No response was received from the remote party or network node.
Definition: sipXtapiEvents.h:268
SIPXTAPI_API char * sipxMediaCauseToString(SIPX_MEDIA_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated media cause.
Definition: sipXtapiEvents.cpp:2160
Failed to register because of a timeout.
Definition: sipXtapiEvents.h:392
size_t nSize
The size of this structure in bytes.
Definition: sipXtapiEvents.h:905
An S/MIME encryption failed because of an invalid parameter.
Definition: sipXtapiEvents.h:459
size_t nSize
The size of this structure in bytes.
Definition: sipXtapiEvents.h:853
The REMOTE_ALERTING event indicates that a call setup invitation has been accepted and the end user i...
Definition: sipXtapiEvents.h:183
SIPX_SECURITY_CAUSE
Enumeration of possible security causes.
Definition: sipXtapiEvents.h:448
Keepalive event information structure.
Definition: sipXtapiEvents.h:620
A keepalive attempt has been started.
Definition: sipXtapiEvents.h:584
Fatal error encountered.
Definition: sipXtapiEvents.h:767
struct SIPX_MEDIA_INFO SIPX_MEDIA_INFO
Media event information structure.
An UNKNOWN event is generated when the state for a call is no longer known.
Definition: sipXtapiEvents.h:165
Media state notification of presence of new device.
Definition: sipXtapiEvents.h:652
The server received the message, but could or would not process it.
Definition: sipXtapiEvents.h:763
The NEWCALL event indicates that a new call has been created automatically by the sipXtapi...
Definition: sipXtapiEvents.h:168
A NOTIFY_INFO event signifies that a NOTIFY message was received for an active subscription.
Definition: sipXtapiEvents.h:877
SIPXTAPI_API SIPX_RESULT sipxFreeDuplicatedEvent(SIPX_EVENT_CATEGORY category, void *pEventCopy)
Frees up memory allocated as part of sipxDuplicateEvent.
Definition: sipXtapiEvents.cpp:848
A recording has been manually stopped, automatically finished or aborted because of an error...
Definition: sipXtapiEvents.h:544
The subscription&#39;s lifetime has expired.
Definition: sipXtapiEvents.h:827
The DECRYPT event indicates that an SMIME decryption has been attempted.
Definition: sipXtapiEvents.h:439
Remote media (audio or video) has been stopped due to a hold or call tear down.
Definition: sipXtapiEvents.h:508
SIPX_CONFIG_EVENT
Enumeration of possible configuration events.
Definition: sipXtapiEvents.h:417
No such transaction; Accepting or Rejecting a call that is part of a transfer.
Definition: sipXtapiEvents.h:317
Fired if a local S/MIME operation failed.
Definition: sipXtapiEvents.h:304
SIPX_MEDIA_EVENT
Enumeration of possible media events.
Definition: sipXtapiEvents.h:490
size_t nSize
the size of this structure in bytes
Definition: sipXtapiEvents.h:782
Recording to file or buffer resumed after being in the MEDIA_RECORD_PAUSE state.
Definition: sipXtapiEvents.h:542
Unknown or undefined media event, this is generally the sign of an internal error in sipXtapi...
Definition: sipXtapiEvents.h:492
An SIPX_SECURITY_INFO event informs that application layer of the status of a security operation...
Definition: sipXtapiEvents.h:924
Normal cause; the call was likely torn down.
Definition: sipXtapiEvents.h:640
SIPX_SUB hSub
A handle to the subscription to which this state change occurred.
Definition: sipXtapiEvents.h:854
SIPX_KEEPALIVE_CAUSE cause
Keepalive cause.
Definition: sipXtapiEvents.h:624
TLS related security event.
Definition: sipXtapiEvents.h:442
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
#define SIPXTAPI_API
Assume extern "C" for non-win32 platforms.
Definition: sipXtapi.h:138
An UNKNOWN event is generated when the state for a call is no longer known.
Definition: sipXtapiEvents.h:433
The event was fired in response to a cancel attempt from the remote party.
Definition: sipXtapiEvents.h:319
A recording has been manually stopped, automatically finished or aborted because of an error...
Definition: sipXtapiEvents.h:551
const char * szContentType
String indicating the info content type.
Definition: sipXtapiEvents.h:884
A DTMF tone has stopped.
Definition: sipXtapiEvents.h:651
SIPX_RESULT
SIPX_RESULT is an enumeration with all the possible result/return codes.
Definition: sipXtapi.h:282
A STUN binding has been obtained for signaling purposes.
Definition: sipXtapiEvents.h:420
A transfer attempt has been accepted by the remote transferee.
Definition: sipXtapiEvents.h:276
int keepAliveSecs
How often keepalives are being sent.
Definition: sipXtapiEvents.h:628
The transfer state indicates a state change in a transfer attempt.
Definition: sipXtapiEvents.h:234
The REGISTERING event is fired when sipXtapi has successfully sent a REGISTER message, but has not yet received a success response from the registrar server.
Definition: sipXtapiEvents.h:333
An S/MIME decryption operation aborted due to a missing signature.
Definition: sipXtapiEvents.h:465
unsigned long SIPX_SUB
A SIPX_SUB handle represent a subscription to a remote publisher.
Definition: sipXtapi.h:872
The UNREGISTERING event is fired when sipXtapi has successfully sent a REGISTER message with an expir...
Definition: sipXtapiEvents.h:340
This is the initial Line event state.
Definition: sipXtapiEvents.h:332
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
SIPX_LINESTATE_CAUSE cause
Callstate cause enum code.
Definition: sipXtapiEvents.h:752
No cause specified.
Definition: sipXtapiEvents.h:371
H.264 PPS parameter set recieved.
Definition: sipXtapiEvents.h:563
See LINESTATE_UNREGISTERING event.
Definition: sipXtapiEvents.h:376
size_t nContentLength
Length of the NOTIFY message content in bytes.
Definition: sipXtapiEvents.h:886
Local media (audio or video) is no longer being sent to the remote party.
Definition: sipXtapiEvents.h:497
SIPXTAPI_API char * sipxLineEventToString(SIPX_LINESTATE_EVENT event, SIPX_LINESTATE_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated line event ids.
Definition: sipXtapiEvents.cpp:1034
Failed to unregister because of of an authorization / authentication failure.
Definition: sipXtapiEvents.h:389
In the MEDIA_LOCAL_START and MEDIA_REMOTE_START events the SIPX_CODEC_INFO structure is being passed ...
Definition: sipXtapi.h:760
const char * szContentType
string indicating the info content type
Definition: sipXtapiEvents.h:813
An unusable refer was sent to this user-agent.
Definition: sipXtapiEvents.h:310
void * pData
Pointer to event data – SEE SIPX_CONFIG_EVENT for details.
Definition: sipXtapiEvents.h:908
The state changed because the remote party is busy.
Definition: sipXtapiEvents.h:261
SIPXTAPI_API char * sipxConfigEventToString(SIPX_CONFIG_EVENT event, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated config event.
Definition: sipXtapiEvents.cpp:2006
The HELD state indicates that a call is both locally and remotely held.
Definition: sipXtapiEvents.h:209
This event is fired in case a network error was encountered while trying to send an INFO event...
Definition: sipXtapiEvents.h:409
size_t nSize
The size of this structure.
Definition: sipXtapiEvents.h:748
SIPX_SUBSCRIPTION_STATE state
Enum state value indicating the current state of the subscription.
Definition: sipXtapiEvents.h:856
Speaker energy level - value in idleTime.
Definition: sipXtapiEvents.h:560
SIPX_CALL hAssociatedCall
Call associated with this event.
Definition: sipXtapiEvents.h:730
const char * pContent
pointer to the INFO message content
Definition: sipXtapiEvents.h:814
The subscription is currently active.
Definition: sipXtapiEvents.h:825
SIPXTAPI_API char * sipxEventToString(const SIPX_EVENT_CATEGORY category, const void *pEvent, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated event.
Definition: sipXtapiEvents.cpp:1050
Definition: sipXtapiEvents.h:201
A file has completed playing.
Definition: sipXtapiEvents.h:521
SIPX_LINE hLine
Line handle if available.
Definition: sipXtapiEvents.h:809
SIPXTAPI_API char * sipxSecurityEventToString(SIPX_SECURITY_EVENT event, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated security event.
Definition: sipXtapiEvents.cpp:2233
size_t nSize
Size of the structure.
Definition: sipXtapiEvents.h:679
SUB_STATUS events are sent to the application layer for information on the subscription state (e...
Definition: sipXtapiEvents.h:79
SIPX_LINESTATE_EVENT
Enumeration of possible linestate Events.
Definition: sipXtapiEvents.h:330
SIPXTAPI_API char * sipxSecurityCauseToString(SIPX_SECURITY_CAUSE cause, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated security cause.
Definition: sipXtapiEvents.cpp:2257
The subscription is not active due to a failure.
Definition: sipXtapiEvents.h:826
A buffer has completed playing.
Definition: sipXtapiEvents.h:531
struct SIPX_CONFIG_INFO SIPX_CONFIG_INFO
SIPX_CONFIG_INFO events signifies that a change in configuration was observed.
const char * szFromURL
the URL of the host that originated the INFO message
Definition: sipXtapiEvents.h:810
SIPX_MESSAGE_STATUS
Major classifications of response statuses for a SIP message.
Definition: sipXtapiEvents.h:760
Recording to a buffer has started.
Definition: sipXtapiEvents.h:547
Definition: sipXtapiEvents.h:607
MEDIA events signify changes in the audio state for sipXtapi or a particular call.
Definition: sipXtapiEvents.h:93
size_t nSize
Size of structure.
Definition: sipXtapiEvents.h:807
SIPXTAPI_API char * sipxKeepaliveEventToString(SIPX_KEEPALIVE_EVENT event, char *szBuffer, size_t nBuffer)
Create a printable string version of the designated keepalive event.
Definition: sipXtapiEvents.cpp:2198
SIPX_CONFIG_INFO events signifies that a change in configuration was observed.
Definition: sipXtapiEvents.h:903
SIPXTAPI_API SIPX_RESULT sipxEventListenerRemove(const SIPX_INST hInst, SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Remove a sipXtapi event callback/observer.
Definition: sipXtapiEvents.cpp:1809
Failed to register because of an authorization / authentication failure.
Definition: sipXtapiEvents.h:382
The REMOTE_HELD state indicates that the remote party is on hold.
Definition: sipXtapiEvents.h:213
The transfer target is attempting the transfer.
Definition: sipXtapiEvents.h:282
A conference operation caused a stage change.
Definition: sipXtapiEvents.h:252
This user-agent received a request or response, but there is no known matching invite.
Definition: sipXtapiEvents.h:311
A keepalive process has been stopped.
Definition: sipXtapiEvents.h:599
SIPX_SECURITY_CAUSE cause
Cause code for this SECURITY_INFO message.
Definition: sipXtapiEvents.h:932
SIPXTAPI_API SIPX_RESULT sipxEventListenerAdd(const SIPX_INST hInst, SIPX_EVENT_CALLBACK_PROC pCallbackProc, void *pUserData)
Add a callback/observer for the purpose of receiving sipXtapi events.
Definition: sipXtapiEvents.cpp:1784
unsigned long SIPX_INFO
The SIPX_INFO handle represents a handle to an INFO message sent by a sipXtapi instance.
Definition: sipXtapi.h:849
SIPX_CALL hCall
Associate call (or SIPX_CALL_NULL if not associated with a call).
Definition: sipXtapiEvents.h:686
The remote party is alerting and providing ringback audio (early media)
Definition: sipXtapiEvents.h:253
CALLSTATE events signify a change in state of a call.
Definition: sipXtapiEvents.h:56
The message was successfully processed (200)
Definition: sipXtapiEvents.h:762
SIPX_SUBSCRIPTION_CAUSE cause
Enum cause for the state change in this event.
Definition: sipXtapiEvents.h:858
SIPX_KEEPALIVE_EVENT
Enumeration of possible KEEPALIVE events (EVENT_CATEGORY_KEEPALIVE)
Definition: sipXtapiEvents.h:582
< The application has rejected the server&#39;s TLS certificate.
Definition: sipXtapiEvents.h:483
The callee rejected a request (e.g.
Definition: sipXtapiEvents.h:256
A network error caused the desired operation to fail.
Definition: sipXtapiEvents.h:265
const char * deviceName
name of media device for MEDIA_INPUT_DEVICE_NOT_PRESENT MEDIA_OUTPUT_DEVICE_NOT_PRESENT, MEDIA_INPUT_DEVICE_NOW_PRESENT and MEDIA_OUTPUT_DEVICE_NOW_PRESENT events.
Definition: sipXtapiEvents.h:702
The SIGNATURE_NOTIFY event is fired when the user-agent receives a SIP message with signed SMIME as i...
Definition: sipXtapiEvents.h:476
SIPX_SECURITY_EVENT
Enumeration of possible security events.
Definition: sipXtapiEvents.h:431
SIPX_CALL hCall
Call handle associated with the callstate event.
Definition: sipXtapiEvents.h:724
SIPX_KEEPALIVE_EVENT event
Keepalive event identifier.
Definition: sipXtapiEvents.h:623
int idleTime
For MEDIA_REMOTE_SILENT events contains idle time (ms).
Definition: sipXtapiEvents.h:691
See LINESTATE_REGISTERED event.
Definition: sipXtapiEvents.h:374
The ENCRYPT event indicates that an SMIME encryption has been attempted.
Definition: sipXtapiEvents.h:436
Failed to register because of a timeout.
Definition: sipXtapiEvents.h:385
THe subscription is being set up, but not yet active.
Definition: sipXtapiEvents.h:824
Audio media event type.
Definition: sipXtapiEvents.h:662
const void * pContent
Pointer to the NOTIFY message content.
Definition: sipXtapiEvents.h:885
SIPX_CALL hCall
A call handle associated with the event.
Definition: sipXtapiEvents.h:936
A buffer playback has been stopped.
Definition: sipXtapiEvents.h:534
SIPX_INFOSTATUS_EVENT
Enumeration of possible INFO status events.
Definition: sipXtapiEvents.h:404
SIPX_CALL hCall
Call handle if available.
Definition: sipXtapiEvents.h:808
SIPX_LINE hLine
Line handle associated with the callstate event.
Definition: sipXtapiEvents.h:725
struct SIPX_SECURITY_INFO SIPX_SECURITY_INFO
An SIPX_SECURITY_INFO event informs that application layer of the status of a security operation...
The CONNECTED state indicates that call has been setup between the local and remote party...
Definition: sipXtapiEvents.h:197
No cause specified.
Definition: sipXtapiEvents.h:836
const char * szNotiferUserAgent
The User-Agent header field value from the SIP NOTIFY response (may be NULL)
Definition: sipXtapiEvents.h:882
void * SIPX_INST
The SIPX_INST handle represents an instance of a user agent.
Definition: sipXtapi.h:811
Normal cause for state change.
Definition: sipXtapiEvents.h:837
FAILURE events are only fired when the physical send fails.
Definition: sipXtapiEvents.h:594
SIPX_CALLSTATE_EVENT event
Callstate event enum code.
Definition: sipXtapiEvents.h:726
Video media event type.
Definition: sipXtapiEvents.h:663
struct SIPX_INFOSTATUS_INFO SIPX_INFOSTATUS_INFO
An INFOSTATUS event informs that application layer of the status of an outbound INFO requests...
The transfer failed.
Definition: sipXtapiEvents.h:296
Failed to register because of a connectivity problem.
Definition: sipXtapiEvents.h:380
SIPX_KEEPALIVE_TYPE type
Keepalive type.
Definition: sipXtapiEvents.h:625
Server or client at far end had major (500 class) error.
Definition: sipXtapiEvents.h:322
A TLS connection to the remote party failed.
Definition: sipXtapiEvents.h:474
The state changed due to a bad address.
Definition: sipXtapiEvents.h:258
sipXtapi main API declarations
The stage changed due to normal operation.
Definition: sipXtapiEvents.h:247
Fired when an output media device used is no longer present.
Definition: sipXtapiEvents.h:567
An S/MIME decryption failed due to an invalid certificate database password.
Definition: sipXtapiEvents.h:462
A TLS server certificate is being presented to the application for possible rejection.
Definition: sipXtapiEvents.h:467
Linestate event information structure.
Definition: sipXtapiEvents.h:746
An S/MIME decryption failed due to a failure to initialize the certificate database.
Definition: sipXtapiEvents.h:461
An S/MIME decryption operation aborted because the signature was rejected.
Definition: sipXtapiEvents.h:466
SIPX_MEDIA_EVENT event
Media event identifier.
Definition: sipXtapiEvents.h:680
The REGISTERED event is fired after sipXtapi has received a response from the registrar server...
Definition: sipXtapiEvents.h:337
const char * szSubServerUserAgent
The User Agent header field value from the SIP SUBSCRIBE response (may be NULL)
Definition: sipXtapiEvents.h:860
Fired when an input media device used is no longer present.
Definition: sipXtapiEvents.h:564
Media event information structure.
Definition: sipXtapiEvents.h:677
SIPX_MEDIA_CAUSE
Enumeration of possible media event causes.
Definition: sipXtapiEvents.h:638