eXosip2 authentication API
[SIP messages and call control API]


Functions

int eXosip_add_authentication_info (const char *username, const char *userid, const char *passwd, const char *ha1, const char *realm)
int eXosip_clear_authentication_info (void)
int eXosip_default_action (eXosip_event_t *je)
void eXosip_automatic_refresh (void)
void eXosip_automatic_action (void)
int eXosip_insubscription_automatic (eXosip_event_t *evt)
int eXosip_generate_random (char *buf, int buf_size)

Function Documentation

int eXosip_add_authentication_info ( const char *  username,
const char *  userid,
const char *  passwd,
const char *  ha1,
const char *  realm 
)

Add authentication credentials. These are used when an outgoing request comes back with an authorization required response.

Parameters:
username username
userid login (usually equals the username)
passwd password
ha1 currently ignored
realm realm within which credentials apply, or NULL to apply credentials to unrecognized realms

int eXosip_clear_authentication_info ( void   ) 

Clear all authentication credentials stored in eXosip.

int eXosip_default_action ( eXosip_event_t je  ) 

Initiate some default actions:

Retry with credentials upon reception of 401/407. Retry with Contact header upon reception of 3xx request.

void eXosip_automatic_refresh ( void   ) 

Refresh REGISTER and SUBSCRIBE before the expiration delay.

void eXosip_automatic_action ( void   ) 

Initiate some automatic actions:

Retry with credentials upon reception of 401/407. Refresh REGISTER and SUBSCRIBE before the expiration delay. Retry with Contact header upon reception of 3xx request.

int eXosip_insubscription_automatic ( eXosip_event_t evt  ) 

Automatic internal handling of known package.

Parameters:
evt event related to an incoming subscription.

int eXosip_generate_random ( char *  buf,
int  buf_size 
)

Generate random string:

Parameters:
buf destination buffer for random string.
buf_size size of destination buffer


Generated on Wed Feb 13 01:25:39 2008 for libeXosip2 by  doxygen 1.5.4