|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Detailed DescriptionThis structure describes callback that is registered by application or package to receive notifications about subscription events.
Field Documentation
This callback is called when subscription state has changed. Application MUST be prepared to receive NULL event and events with type other than PJSIP_EVENT_TSX_STATE This callback is OPTIONAL.
This callback is called when transaction state has changed.
This callback is called when incoming SUBSCRIBE (or any method that establishes the subscription in the first place) is received. It allows application to specify what response should be sent to remote, along with additional headers and message body to be put in the response. This callback is OPTIONAL. However, implementation MUST send NOTIFY request upon receiving this callback. The suggested behavior is to call pjsip_evsub_current_notify(), since this function takes care about unsubscription request and calculates the appropriate expiration interval.
This callback is called when client/subscriber received incoming NOTIFY request. It allows the application to specify what response should be sent to remote, along with additional headers and message body to be put in the response. This callback is OPTIONAL. When it is not implemented, the default behavior is to respond incoming NOTIFY request with 200 (OK).
This callback is called when it is time for the client to refresh the subscription. This callback is OPTIONAL when PJSIP package such as presence or refer is used; the event package will refresh subscription by sending SUBSCRIBE with the interval set to current/last interval.
This callback is called when server doesn't receive subscription refresh after the specified subscription interval. This callback is OPTIONAL when PJSIP package such as presence or refer is used; the event package send NOTIFY to terminate the subscription. The documentation for this struct was generated from the following file:
Copyright (C) 2006-2008 Teluu Inc.
| |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||