libamsip  5.1.0
Functions
amsip register interface
Registration API.

Functions

int am_register_start (const char *identity, const char *proxy, const char *route, int expires_header)
int am_register_start_with_parameter (const char *identity, const char *proxy, const char *route, int expires_header, char *contact_param_name, char *contact_param_value)
int am_register_refresh (int rid, int expires)
int am_register_stop (int rid)
int am_register_remove (int rid)
int am_register_send_star (const char *identity, const char *proxy, const char *route)

Detailed Description

Function Documentation

int am_register_start ( const char *  identity,
const char *  proxy,
const char *  route,
int  expires_header 
)

Configure amsip to register to a SIP server.

Parameters
identityProvide your SIP identity
proxySet the proxy server
routeSet the outbound route
expires_headerProvide the Expires header
int am_register_start_with_parameter ( const char *  identity,
const char *  proxy,
const char *  route,
int  expires_header,
char *  contact_param_name,
char *  contact_param_value 
)

Configure amsip to register to a SIP server.

Parameters
identityProvide your SIP identity
proxySet the proxy server
routeSet the outbound route
expires_headerProvide the Expires header
contact_param_nameName of an additionnal contact parameter
contact_param_valuevalue of an additionnal contact parameter
int am_register_refresh ( int  rid,
int  expires 
)

Configure amsip to refresh register on a SIP server.

Parameters
ridPrevious registration id.
expiresNew expiration value for contact.
int am_register_stop ( int  rid)

Configure amsip to unregister to a SIP server.

Parameters
rididentifier for registration
int am_register_remove ( int  rid)

Ask amsip to delete current registration context.

Parameters
rididentifier for registration
int am_register_send_star ( const char *  identity,
const char *  proxy,
const char *  route 
)

Configure amsip to unregister all previous IP from server.

Parameters
identityProvide your SIP identity
proxySet the proxy server
routeSet the outbound route