libeXosip2 3.6.0
Functions

eXosip2 OPTIONS and UA capabilities Management

SIP messages and call control API

Functions

int eXosip_options_build_request (osip_message_t **options, const char *to, const char *from, const char *route)
int eXosip_options_send_request (osip_message_t *options)
int eXosip_options_build_answer (int tid, int status, osip_message_t **answer)
int eXosip_options_send_answer (int tid, int status, osip_message_t *answer)

Function Documentation

int eXosip_options_build_request ( osip_message_t **  options,
const char *  to,
const char *  from,
const char *  route 
)

Build a default OPTIONS message.

Parameters:
optionsPointer for the SIP request to build.
toSIP url for callee.
fromSIP url for caller.
routeRoute header for INVITE. (optional)
int eXosip_options_send_request ( osip_message_t *  options)

Send an OPTIONS request.

Parameters:
optionsSIP OPTIONS message to send.
int eXosip_options_build_answer ( int  tid,
int  status,
osip_message_t **  answer 
)

Build answer for an OPTIONS request.

Parameters:
tidid of OPTIONS transaction.
statusstatus for SIP answer to build.
answerThe SIP answer to build.
int eXosip_options_send_answer ( int  tid,
int  status,
osip_message_t *  answer 
)

Send answer for an OPTIONS request.

Parameters:
tidid of OPTIONS transaction.
statusstatus for SIP answer to send.
answerThe SIP answer to send. (default will be sent if NULL)