SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
eXosip2 request outside of dialog

Functions

int eXosip_message_build_request (struct eXosip_t *excontext, osip_message_t **message, const char *method, const char *to, const char *from, const char *route)
 Build a default request message. More...
 
int eXosip_message_send_request (struct eXosip_t *excontext, osip_message_t *message)
 Send an request. More...
 
int eXosip_message_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
 Build answer for a request. More...
 
int eXosip_message_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
 Send answer for a request. More...
 

Detailed Description

Function Documentation

int eXosip_message_build_answer ( struct eXosip_t *  excontext,
int  tid,
int  status,
osip_message_t **  answer 
)

#include <eX_message.h>

Build answer for a request.

Parameters
excontexteXosip_t instance.
tidid of transaction.
statusstatus for SIP answer to build.
answerThe SIP answer to build.
int eXosip_message_build_request ( struct eXosip_t *  excontext,
osip_message_t **  message,
const char *  method,
const char *  to,
const char *  from,
const char *  route 
)

#include <eX_message.h>

Build a default request message.

This method will be updated to send any message outside of dialog In this later case, you'll specify the method to use in the second argument.

Parameters
excontexteXosip_t instance.
messagePointer for the SIP request to build.
methodrequest method. (like "MESSAGE" or "PING"...)
toSIP url for callee.
fromSIP url for caller.
routeRoute header for request. (optional)
int eXosip_message_send_answer ( struct eXosip_t *  excontext,
int  tid,
int  status,
osip_message_t answer 
)

#include <eX_message.h>

Send answer for a request.

Parameters
excontexteXosip_t instance.
tidid of transaction.
statusstatus for SIP answer to send.
answerThe SIP answer to send. (default will be sent if NULL)
int eXosip_message_send_request ( struct eXosip_t *  excontext,
osip_message_t message 
)

#include <eX_message.h>

Send an request.

Parameters
excontexteXosip_t instance.
messageSIP request to send.