WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

Representation of events as they are distributed among modules. More...

Data Structures

struct  pjsip_event
 

Macros

#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)
 

Enumerations

enum  pjsip_event_id_e {
  PJSIP_EVENT_UNKNOWN , PJSIP_EVENT_TIMER , PJSIP_EVENT_TX_MSG , PJSIP_EVENT_RX_MSG ,
  PJSIP_EVENT_TRANSPORT_ERROR , PJSIP_EVENT_TSX_STATE , PJSIP_EVENT_USER
}
 

Functions

const char * pjsip_event_str (pjsip_event_id_e e)
 

Detailed Description

Macro Definition Documentation

◆ PJSIP_EVENT_INIT_TIMER

#define PJSIP_EVENT_INIT_TIMER (   event,
  pentry 
)
Value:
do { \
(event).type = PJSIP_EVENT_TIMER; \
(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).type = PJSIP_EVENT_TSX_STATE; \
(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).type = PJSIP_EVENT_TX_MSG; \
(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).type = PJSIP_EVENT_RX_MSG; \
(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).type = PJSIP_EVENT_TRANSPORT_ERROR; \
(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).type = PJSIP_EVENT_USER; \
(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.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ pjsip_event_str()

const char * pjsip_event_str ( pjsip_event_id_e  e)

Get the event string from the event ID.

Parameters
ethe event ID.
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.