libeXosip2  5.3.0
Functions
eXosip2 SUBSCRIBE and incoming subscriptions

Functions

int eXosip_insubscription_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
 
int eXosip_insubscription_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
 
int eXosip_insubscription_build_request (struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
 
int eXosip_insubscription_build_notify (struct eXosip_t *excontext, int did, int subscription_status, int subscription_reason, osip_message_t **request)
 
int eXosip_insubscription_send_request (struct eXosip_t *excontext, int did, osip_message_t *request)
 
int eXosip_insubscription_remove (struct eXosip_t *excontext, int did)
 

Detailed Description

Function Documentation

◆ eXosip_insubscription_build_answer()

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

Build answer for an SUBSCRIBE request.

Parameters
excontexteXosip_t instance.
tidid of SUBSCRIBE transaction.
statusstatus for SIP answer to build.
answerThe SIP answer to build.

◆ eXosip_insubscription_send_answer()

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

Send answer for an SUBSCRIBE request.

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

◆ eXosip_insubscription_build_request()

int eXosip_insubscription_build_request ( struct eXosip_t *  excontext,
int  did,
const char *  method,
osip_message_t **  request 
)

Build a request within subscription.

Parameters
excontexteXosip_t instance.
didid of incoming subscription.
methodrequest method to build.
requestThe SIP request to build.

◆ eXosip_insubscription_build_notify()

int eXosip_insubscription_build_notify ( struct eXosip_t *  excontext,
int  did,
int  subscription_status,
int  subscription_reason,
osip_message_t **  request 
)

Build a NOTIFY request within subscription.

Parameters
excontexteXosip_t instance.
didid of incoming subscription.
subscription_statussubscription status (pending, active, terminated)
subscription_reasonsubscription reason
requestThe SIP request to build.

◆ eXosip_insubscription_send_request()

int eXosip_insubscription_send_request ( struct eXosip_t *  excontext,
int  did,
osip_message_t *  request 
)

Send a request within subscription.

Parameters
excontexteXosip_t instance.
didid of incoming subscription.
requestThe SIP request to send.

◆ eXosip_insubscription_remove()

int eXosip_insubscription_remove ( struct eXosip_t *  excontext,
int  did 
)

Remove incoming subscription context.

Parameters
excontexteXosip_t instance.
dididentifier of the subscription.