amsip event interface
[General purpose API.]


Functions

void am_log (int level, char *chfr,...)
int am_event_get (eXosip_event_t *evt)
int am_message_get_header (osip_message_t *msg, char *header, am_header_t *value)
int am_message_get_bodyinfo (osip_message_t *msg, int attachemnt_index, am_bodyinfo_t *bodyinfo)
int am_message_release_bodyinfo (am_bodyinfo_t *bodyinfo)
int am_message_get_messageinfo (osip_message_t *msg, am_messageinfo_t *value)
int am_message_get_audio_rtpdirection (osip_message_t *msg)
void am_event_release (eXosip_event_t *evt)

Function Documentation

void am_log ( int  level,
char *  chfr,
  ... 
)

Log facility for amsip.

Parameters:
level Level for debug data.
chfr Format for data.

int am_event_get ( eXosip_event_t *  evt  ) 

Get Event.

Parameters:
evt Pointer to fill event.

int am_message_get_header ( osip_message_t *  msg,
char *  header,
am_header_t *  value 
)

Get header from message.

Parameters:
msg SIP message where to find header.
header Header name to search.
value value of header.

int am_message_get_bodyinfo ( osip_message_t *  msg,
int  attachemnt_index,
am_bodyinfo_t *  bodyinfo 
)

Get body from message.

Parameters:
msg SIP message where to find header.
attachemnt_index index of attachement.
bodyinfo Elements for bodyinfo.

int am_message_release_bodyinfo ( am_bodyinfo_t *  bodyinfo  ) 

Get body from message.

Parameters:
bodyinfo Elements to release.

int am_message_get_messageinfo ( osip_message_t *  msg,
am_messageinfo_t *  value 
)

Get message information (method, target//code, reason + From/To) from message.

Parameters:
msg SIP message where to extract message info.
value Elements from message info.

int am_message_get_audio_rtpdirection ( osip_message_t *  msg  ) 

Get audio RTP direction from SDP attribute. return 0 for _SENDRECV return 1 for _SENDONLY return 2 for _RECVONLY

Parameters:
msg SIP message where to extract message info.

void am_event_release ( eXosip_event_t *  evt  ) 

Release event.

Parameters:
evt Event structure to release.


Generated on Sun Dec 10 18:54:29 2006 for libamsip by  doxygen 1.4.7