libeXosip2 3.6.0
Functions

eXosip2 SUBSCRIBE and incoming subscriptions

SIP messages and call control API

Functions

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

Function Documentation

int eXosip_insubscription_build_answer ( int  tid,
int  status,
osip_message_t **  answer 
)

Build answer for an SUBSCRIBE request.

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

Send answer for an SUBSCRIBE request.

Parameters:
tidid of SUBSCRIBE transaction.
statusstatus for SIP answer to send.
answerThe SIP answer to send. (default will be sent if NULL)
int eXosip_insubscription_build_request ( int  did,
const char *  method,
osip_message_t **  request 
)

Build a request within subscription.

Parameters:
didid of incoming subscription.
methodrequest method to build.
requestThe SIP request to build.
int eXosip_insubscription_build_notify ( int  did,
int  subscription_status,
int  subscription_reason,
osip_message_t **  request 
)

Build a NOTIFY request within subscription.

Parameters:
didid of incoming subscription.
subscription_statussubscription status (pending, active, terminated)
subscription_reasonsubscription reason
requestThe SIP request to build.
int eXosip_insubscription_send_request ( int  did,
osip_message_t *  request 
)

Send a request within subscription.

Parameters:
didid of incoming subscription.
requestThe SIP request to send.
int eXosip_insubscription_remove ( int  did)

Remove incoming subscription context.

Parameters:
dididentifier of the subscription.