SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
eXosip2 REGISTER and Registration Management

Functions

int eXosip_register_build_initial_register (struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, osip_message_t **reg)
 Build initial REGISTER request. More...
 
int eXosip_register_build_initial_register_withqvalue (struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, const char *qvalue, osip_message_t **reg)
 Build initial REGISTER request with qvalue for contact. More...
 
int eXosip_register_build_register (struct eXosip_t *excontext, int rid, int expires, osip_message_t **reg)
 Build a new REGISTER request for an existing registration. More...
 
int eXosip_register_send_register (struct eXosip_t *excontext, int rid, osip_message_t *reg)
 Send a REGISTER request for an existing registration. More...
 
int eXosip_register_remove (struct eXosip_t *excontext, int rid)
 Remove existing registration without sending REGISTER. More...
 

Detailed Description

Function Documentation

int eXosip_register_build_initial_register ( struct eXosip_t *  excontext,
const char *  from,
const char *  proxy,
const char *  contact,
int  expires,
osip_message_t **  reg 
)

#include <eX_register.h>

Build initial REGISTER request.

Parameters
excontexteXosip_t instance.
fromSIP url for caller.
proxyProxy used for registration.
contactContact address. (optional)
expiresThe expires value for registration.
regThe SIP request to build.
int eXosip_register_build_initial_register_withqvalue ( struct eXosip_t *  excontext,
const char *  from,
const char *  proxy,
const char *  contact,
int  expires,
const char *  qvalue,
osip_message_t **  reg 
)

#include <eX_register.h>

Build initial REGISTER request with qvalue for contact.

Parameters
excontexteXosip_t instance.
fromSIP url for caller.
proxyProxy used for registration.
contactContact address. (optional)
expiresThe expires value for registration.
qvalueThe qvalue value for contact header.
regThe SIP request to build.
int eXosip_register_build_register ( struct eXosip_t *  excontext,
int  rid,
int  expires,
osip_message_t **  reg 
)

#include <eX_register.h>

Build a new REGISTER request for an existing registration.

Parameters
excontexteXosip_t instance.
ridA unique identifier for the registration context
expiresThe expires value for registration.
regThe SIP request to build.
int eXosip_register_remove ( struct eXosip_t *  excontext,
int  rid 
)

#include <eX_register.h>

Remove existing registration without sending REGISTER.

Parameters
excontexteXosip_t instance.
ridA unique identifier for the registration context
int eXosip_register_send_register ( struct eXosip_t *  excontext,
int  rid,
osip_message_t reg 
)

#include <eX_register.h>

Send a REGISTER request for an existing registration.

Parameters
excontexteXosip_t instance.
ridA unique identifier for the registration context
regThe SIP request to build. (NULL for default REGISTER)