Representation of events as they are distributed among modules.
Init timer event.
PJSIP_EVENT_INIT_TSX_STATE(event, ptsx, ptype, pdata, prev)¶
Init tsx state event.
Init tx msg event.
Init rx msg event.
PJSIP_EVENT_INIT_TRANSPORT_ERROR(event, ptsx, ptdata)¶
Init transport error event.
PJSIP_EVENT_INIT_USER(event, u1, u2, u3, u4)¶
Init user event.
Timer event, normally only used internally in transaction.
Message transmission event.
Message received event.
Transport error event.
Transaction state changed event.
Indicates that the event was triggered by user action.
const char *
Get the event string from the event ID.
defined in sip_util.c
e: the event ID.
- #include <sip_event.h>
This structure describe event descriptor to fully identify a SIP event.
Events are the only way for a lower layer object to inform something to higher layer objects. Normally this is achieved by means of callback, i.e. the higher layer objects register a callback to handle the event on the lower layer objects.
This event descriptor is used for example by transactions, to inform endpoint about events, and by transports, to inform endpoint about unexpected transport error.
Forward declaration for events (sip_event.h).