SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
eXosip2 SUBSCRIBE and incoming subscriptions

Functions

int eXosip_insubscription_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
 Build answer for an SUBSCRIBE request. More...
 
int eXosip_insubscription_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
 Send answer for an SUBSCRIBE request. More...
 
int eXosip_insubscription_build_request (struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
 Build a request within subscription. More...
 
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. More...
 
int eXosip_insubscription_send_request (struct eXosip_t *excontext, int did, osip_message_t *request)
 Send a request within subscription. More...
 
int eXosip_insubscription_remove (struct eXosip_t *excontext, int did)
 Remove incoming subscription context. More...
 

Detailed Description

Function Documentation

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

#include <eX_subscribe.h>

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.
int eXosip_insubscription_build_notify ( struct eXosip_t *  excontext,
int  did,
int  subscription_status,
int  subscription_reason,
osip_message_t **  request 
)

#include <eX_subscribe.h>

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.
int eXosip_insubscription_build_request ( struct eXosip_t *  excontext,
int  did,
const char *  method,
osip_message_t **  request 
)

#include <eX_subscribe.h>

Build a request within subscription.

Parameters
excontexteXosip_t instance.
didid of incoming subscription.
methodrequest method to build.
requestThe SIP request to build.
int eXosip_insubscription_remove ( struct eXosip_t *  excontext,
int  did 
)

#include <eX_subscribe.h>

Remove incoming subscription context.

Parameters
excontexteXosip_t instance.
dididentifier of the subscription.
int eXosip_insubscription_send_answer ( struct eXosip_t *  excontext,
int  tid,
int  status,
osip_message_t answer 
)

#include <eX_subscribe.h>

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)
int eXosip_insubscription_send_request ( struct eXosip_t *  excontext,
int  did,
osip_message_t request 
)

#include <eX_subscribe.h>

Send a request within subscription.

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