Home --> Documentations --> PJSIP Reference
Representation of events as they are distributed among modules.
More...
|
#define | PJSIP_EVENT_INIT_TIMER(event, pentry) |
|
#define | PJSIP_EVENT_INIT_TSX_STATE(event, ptsx, ptype, pdata, prev) |
|
#define | PJSIP_EVENT_INIT_TX_MSG(event, ptdata) |
|
#define | PJSIP_EVENT_INIT_RX_MSG(event, prdata) |
|
#define | PJSIP_EVENT_INIT_TRANSPORT_ERROR(event, ptsx, ptdata) |
|
#define | PJSIP_EVENT_INIT_USER(event, u1, u2, u3, u4) |
|
◆ PJSIP_EVENT_INIT_TIMER
#define PJSIP_EVENT_INIT_TIMER |
( |
|
event, |
|
|
|
pentry |
|
) |
| |
Value: do { \
(event).body.timer.entry = pentry; \
} while (0)
@ PJSIP_EVENT_TIMER Definition: sip_event.h:48
Init timer event.
◆ PJSIP_EVENT_INIT_TSX_STATE
#define PJSIP_EVENT_INIT_TSX_STATE |
( |
|
event, |
|
|
|
ptsx, |
|
|
|
ptype, |
|
|
|
pdata, |
|
|
|
prev |
|
) |
| |
Value: do { \
(event).body.tsx_state.tsx = ptsx; \
(event).body.tsx_state.type = ptype; \
(event).body.tsx_state.src.data = pdata; \
(event).body.tsx_state.prev_state = prev; \
} while (0)
@ PJSIP_EVENT_TSX_STATE Definition: sip_event.h:60
Init tsx state event.
◆ PJSIP_EVENT_INIT_TX_MSG
#define PJSIP_EVENT_INIT_TX_MSG |
( |
|
event, |
|
|
|
ptdata |
|
) |
| |
Value: do { \
(event).body.tx_msg.tdata = ptdata; \
} while (0)
@ PJSIP_EVENT_TX_MSG Definition: sip_event.h:51
Init tx msg event.
◆ PJSIP_EVENT_INIT_RX_MSG
#define PJSIP_EVENT_INIT_RX_MSG |
( |
|
event, |
|
|
|
prdata |
|
) |
| |
Value: do { \
(event).body.rx_msg.rdata = prdata; \
} while (0)
@ PJSIP_EVENT_RX_MSG Definition: sip_event.h:54
Init rx msg event.
◆ PJSIP_EVENT_INIT_TRANSPORT_ERROR
#define PJSIP_EVENT_INIT_TRANSPORT_ERROR |
( |
|
event, |
|
|
|
ptsx, |
|
|
|
ptdata |
|
) |
| |
Value: do { \
(event).body.tx_error.tsx = ptsx; \
(event).body.tx_error.tdata = ptdata; \
} while (0)
@ PJSIP_EVENT_TRANSPORT_ERROR Definition: sip_event.h:57
Init transport error event.
◆ PJSIP_EVENT_INIT_USER
#define PJSIP_EVENT_INIT_USER |
( |
|
event, |
|
|
|
u1, |
|
|
|
u2, |
|
|
|
u3, |
|
|
|
u4 |
|
) |
| |
Value: do { \
(event).body.user.user1 = (void*)u1; \
(event).body.user.user2 = (void*)u2; \
(event).body.user.user3 = (void*)u3; \
(event).body.user.user4 = (void*)u4; \
} while (0)
@ PJSIP_EVENT_USER Definition: sip_event.h:63
Init user event.
◆ pjsip_event_id_e
Event IDs.
Enumerator |
---|
PJSIP_EVENT_UNKNOWN | Unidentified event.
|
PJSIP_EVENT_TIMER | Timer event, normally only used internally in transaction.
|
PJSIP_EVENT_TX_MSG | Message transmission event.
|
PJSIP_EVENT_RX_MSG | Message received event.
|
PJSIP_EVENT_TRANSPORT_ERROR | Transport error event.
|
PJSIP_EVENT_TSX_STATE | Transaction state changed event.
|
PJSIP_EVENT_USER | Indicates that the event was triggered by user action.
|
◆ pjsip_event_str()
Get the event string from the event ID. - Parameters
-
- Note
- defined in sip_util.c
References PJ_END_DECL.
PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.
|