libeXosip2 3.6.0
Functions

eXosip2 REGISTER and Registration Management

SIP messages and call control API

Functions

int eXosip_register_build_initial_register (const char *from, const char *proxy, const char *contact, int expires, osip_message_t **reg)
int eXosip_register_build_initial_register_withqvalue (const char *from, const char *proxy, const char *contact, int expires, const char *qvalue, osip_message_t **reg)
int eXosip_register_build_register (int rid, int expires, osip_message_t **reg)
int eXosip_register_send_register (int rid, osip_message_t *reg)
int eXosip_register_remove (int rid)

Function Documentation

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

Build initial REGISTER request.

Parameters:
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 ( 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:
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 ( int  rid,
int  expires,
osip_message_t **  reg 
)

Build a new REGISTER request for an existing registration.

Parameters:
ridA unique identifier for the registration context
expiresThe expires value for registration.
regThe SIP request to build.
int eXosip_register_send_register ( int  rid,
osip_message_t *  reg 
)

Send a REGISTER request for an existing registration.

Parameters:
ridA unique identifier for the registration context
regThe SIP request to build. (NULL for default REGISTER)
int eXosip_register_remove ( int  rid)

Remove existing registration without sending REGISTER.

Parameters:
ridA unique identifier for the registration context