libamsip
5.2.1
|
Functions | |
int | am_subscription_start (const char *identity, const char *url, const char *proxy, const char *route, const char *event, const char *accept, int expires) |
int | am_subscription_build_initial_subscribe (const char *identity, const char *url, const char *proxy, const char *route, const char *_event, const char *accept, int expires, osip_message_t **asubscribe) |
int | am_subscription_build_initial_refer (const char *identity, const char *url, const char *proxy, const char *route, const char *accept, const char *refer_to, const char *referred_by, osip_message_t **arefer) |
int | am_subscription_start_with_initial_request (osip_message_t *request) |
int | am_subscription_refresh (int did, const char *event, const char *accept, int expires) |
int | am_subscription_build_refresh (int did, const char *event, const char *accept, int expires, osip_message_t **subscribe) |
int | am_subscription_send_refresh (int did, osip_message_t *subscribe) |
int | am_subscription_remove (int did) |
int am_subscription_start | ( | const char * | identity, |
const char * | url, | ||
const char * | proxy, | ||
const char * | route, | ||
const char * | event, | ||
const char * | accept, | ||
int | expires | ||
) |
Configure amsip to start a SIP subscription.
identity | SIP url for caller. |
url | SIP url for callee. |
proxy | proxy header for SUBSCRIBE. |
route | Set the outbound proxy server |
event | Event header for SUBSCRIBE. |
accept | Accept header. |
expires | Expires header for SUBSCRIBE. |
int am_subscription_build_initial_subscribe | ( | const char * | identity, |
const char * | url, | ||
const char * | proxy, | ||
const char * | route, | ||
const char * | _event, | ||
const char * | accept, | ||
int | expires, | ||
osip_message_t ** | asubscribe | ||
) |
Configure amsip to start a SIP subscription.
identity | SIP url for caller. |
url | SIP url for callee. |
proxy | proxy header for SUBSCRIBE. |
route | Set the outbound proxy server |
_event | Event header for SUBSCRIBE. |
accept | Accept header. |
expires | Expires header for SUBSCRIBE. |
asubscribe | pointer will contains a prepared SUBSCRIBE request. |
int am_subscription_build_initial_refer | ( | const char * | identity, |
const char * | url, | ||
const char * | proxy, | ||
const char * | route, | ||
const char * | accept, | ||
const char * | refer_to, | ||
const char * | referred_by, | ||
osip_message_t ** | arefer | ||
) |
Configure amsip to start a SIP subscription.
identity | SIP url for caller. |
url | SIP url for callee. |
proxy | proxy header for SUBSCRIBE. |
route | Set the outbound proxy server |
accept | Accept header. |
refer_to | Refer-To header. |
referred_by | Refer-To header. |
arefer | pointer will contains a prepared REFER request. |
int am_subscription_start_with_initial_request | ( | osip_message_t * | request | ) |
Configure amsip to start a SIP subscription from a built SUBSCRIBE/REFER message.
request | pointer containing prepared SUBSCRIBE or REFER request. |
int am_subscription_refresh | ( | int | did, |
const char * | event, | ||
const char * | accept, | ||
int | expires | ||
) |
Build and send a SUBSCRIBE to refresh a subscription.
did | Session identifier. |
event | Event header for SUBSCRIBE. |
accept | Accept header. |
expires | expires time (0 to stop subscription). |
int am_subscription_build_refresh | ( | int | did, |
const char * | event, | ||
const char * | accept, | ||
int | expires, | ||
osip_message_t ** | subscribe | ||
) |
Build a SUBSCRIBE to refresh a subscription.
did | Session identifier. |
event | Event header for SUBSCRIBE. |
accept | Accept header. |
expires | expires time (0 to stop subscription). |
subscribe | pointer will contains a prepared SUBSCRIBE request. |
int am_subscription_send_refresh | ( | int | did, |
osip_message_t * | subscribe | ||
) |
Send a SUBSCRIBE to refresh a subscription.
did | identifier of the subscription. |
subscribe | SUBSCRIBE request to be sent. |
int am_subscription_remove | ( | int | did | ) |
Remove outgoing subscription context.
did | identifier of the subscription. |