libeXosip2
5.3.0
|
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) |
int | eXosip_message_send_request (struct eXosip_t *excontext, osip_message_t *message) |
int | eXosip_message_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer) |
int | eXosip_message_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer) |
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.
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.
excontext | eXosip_t instance. |
message | Pointer for the SIP request to build. |
method | request method. (like "MESSAGE" or "PING"...) |
to | SIP url for callee. |
from | SIP url for caller. |
route | Route header for request. (optional) |
int eXosip_message_send_request | ( | struct eXosip_t * | excontext, |
osip_message_t * | message | ||
) |
Send an request.
excontext | eXosip_t instance. |
message | SIP request to send. |
int eXosip_message_build_answer | ( | struct eXosip_t * | excontext, |
int | tid, | ||
int | status, | ||
osip_message_t ** | answer | ||
) |
Build answer for a request.
excontext | eXosip_t instance. |
tid | id of transaction. |
status | status for SIP answer to build. |
answer | The SIP answer to build. |
int eXosip_message_send_answer | ( | struct eXosip_t * | excontext, |
int | tid, | ||
int | status, | ||
osip_message_t * | answer | ||
) |
Send answer for a request.
excontext | eXosip_t instance. |
tid | id of transaction. |
status | status for SIP answer to send. |
answer | The SIP answer to send. (default will be sent if NULL) |