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_add_header_to_uri (char *uri, const char *header_name, const char *header_value, char *dest_uri, int dest_size)
int am_message_get_audio_rtpdirection (osip_message_t *msg)
int am_message_set_body (osip_message_t *msg, const char *ctt, const char *body, int body_size)
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_add_header_to_uri ( char *  uri,
const char *  header_name,
const char *  header_value,
char *  dest_uri,
int  dest_size 
)

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

Parameters:
uri Original uri.
header_name Header name to add
header_value Header value to add
dest_uri target string for new uri
dest_size size of target string for new uri

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.

int am_message_set_body ( osip_message_t *  msg,
const char *  ctt,
const char *  body,
int  body_size 
)

Set body in SIP message

Parameters:
msg SIP message where to add info.
ctt Content-Type.
body Body To add.

void am_event_release ( eXosip_event_t *  evt  ) 

Release event.

Parameters:
evt Event structure to release.


Generated on Thu Feb 14 17:12:33 2008 for libamsip by  doxygen 1.5.4