libamsip  5.2.1
Functions
amsip incoming subscription interface

Functions

int am_insubscription_answer (int tid, int did, int code)
 
int am_insubscription_build_answer (int tid, int code, osip_message_t **answer)
 
int am_insubscription_send_answer (int tid, int code, osip_message_t *answer)
 
int am_insubscription_build_notify (int did, int subscription_status, int subscription_reason, osip_message_t **notify)
 
int am_insubscription_send_request (int did, osip_message_t *request)
 
int am_insubscription_remove (int did)
 

Detailed Description

Function Documentation

◆ am_insubscription_answer()

int am_insubscription_answer ( int  tid,
int  did,
int  code 
)

Configure amsip to answer a SIP SUBSCRIBE.

Parameters
tidTransaction identifier.
didSession identifier.
codeCode to use.

◆ am_insubscription_build_answer()

int am_insubscription_build_answer ( int  tid,
int  code,
osip_message_t **  answer 
)

Configure amsip to build a SIP SUBSCRIBE answer.

Parameters
tidtransaction identifier.
codeanswer code for SUBSCRIBE answer.
answeranswer pointer.

◆ am_insubscription_send_answer()

int am_insubscription_send_answer ( int  tid,
int  code,
osip_message_t *  answer 
)

Configure amsip to send a SIP SUBSCRIBE answer.

Parameters
tidtransaction identifier.
codeanswer code for SUBSCRIBE answer.
answeranswer pointer.

◆ am_insubscription_build_notify()

int am_insubscription_build_notify ( int  did,
int  subscription_status,
int  subscription_reason,
osip_message_t **  notify 
)

Configure amsip to send a SIP NOTIFY request.

Parameters
didSession identifier.
subscription_statussubscription status value.
subscription_reasonsubscription reason value.
notifyrequest pointer.

◆ am_insubscription_send_request()

int am_insubscription_send_request ( int  did,
osip_message_t *  request 
)

Configure amsip to send a SIP NOTIFY request.

Parameters
didSession identifier.
requestrequest pointer.

◆ am_insubscription_remove()

int am_insubscription_remove ( int  did)

Remove outgoing subscription context.

Parameters
dididentifier of the subscription.