libeXosip2  4.0.0
Functions
eXosip2 REGISTER and Registration Management
SIP messages and call control API

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)
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)
int eXosip_register_build_register (struct eXosip_t *excontext, int rid, int expires, osip_message_t **reg)
int eXosip_register_send_register (struct eXosip_t *excontext, int rid, osip_message_t *reg)
int eXosip_register_remove (struct eXosip_t *excontext, int rid)

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 
)

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 
)

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 
)

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_send_register ( struct eXosip_t *  excontext,
int  rid,
osip_message_t *  reg 
)

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)
int eXosip_register_remove ( struct eXosip_t *  excontext,
int  rid 
)

Remove existing registration without sending REGISTER.

Parameters
excontexteXosip_t instance.
ridA unique identifier for the registration context