libeXosip2  5.3.0
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)
 
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

◆ eXosip_register_build_initial_register()

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.

◆ eXosip_register_build_initial_register_withqvalue()

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.

◆ eXosip_register_build_register()

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.

◆ eXosip_register_send_register()

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)

◆ eXosip_register_remove()

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