.TH "eXosip2 INVITE and Call Management" 3 "Sun Jun 24 2012" "Version 3.1.0" "libeXosip2" \" -*- nroff -*- .ad l .nh .SH NAME eXosip2 INVITE and Call Management \- .SS "Functions" .in +1c .ti -1c .RI "int \fBeXosip_call_set_reference\fP (int id, void *reference)" .br .ti -1c .RI "void * \fBeXosip_call_get_reference\fP (int cid)" .br .ti -1c .RI "int \fBeXosip_call_build_initial_invite\fP (osip_message_t **invite, const char *to, const char *from, const char *route, const char *subject)" .br .ti -1c .RI "int \fBeXosip_call_send_initial_invite\fP (osip_message_t *invite)" .br .ti -1c .RI "int \fBeXosip_call_build_request\fP (int did, const char *method, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_build_ack\fP (int did, osip_message_t **ack)" .br .ti -1c .RI "int \fBeXosip_call_send_ack\fP (int did, osip_message_t *ack)" .br .ti -1c .RI "int \fBeXosip_call_build_refer\fP (int did, const char *refer_to, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_build_info\fP (int did, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_build_options\fP (int did, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_build_update\fP (int did, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_build_notify\fP (int did, int subscription_status, osip_message_t **request)" .br .ti -1c .RI "int \fBeXosip_call_send_request\fP (int did, osip_message_t *request)" .br .ti -1c .RI "int \fBeXosip_call_build_answer\fP (int tid, int status, osip_message_t **answer)" .br .ti -1c .RI "int \fBeXosip_call_send_answer\fP (int tid, int status, osip_message_t *answer)" .br .ti -1c .RI "int \fBeXosip_call_terminate\fP (int cid, int did)" .br .ti -1c .RI "int \fBeXosip_call_build_prack\fP (int tid, osip_message_t **prack)" .br .ti -1c .RI "int \fBeXosip_call_send_prack\fP (int tid, osip_message_t *prack)" .br .ti -1c .RI "int \fBeXosip_transfer_send_notify\fP (int did, int subscription_status, char *body)" .br .ti -1c .RI "int \fBeXosip_call_get_referto\fP (int did, char *refer_to, size_t refer_to_len)" .br .ti -1c .RI "int \fBeXosip_call_find_by_replaces\fP (char *replaces)" .br .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "int eXosip_call_set_reference (intid, void *reference)" Set a new application context for an existing call .PP \fBParameters:\fP .RS 4 \fIid\fP call-id or dialog-id of call .br \fIreference\fP New application context\&. .RE .PP .SS "void* eXosip_call_get_reference (intcid)" Get the application context pointer for an existing call\&. .PP \fBParameters:\fP .RS 4 \fIcid\fP id of the call\&. .RE .PP \fBReturns:\fP .RS 4 Application context reference .RE .PP .SS "int eXosip_call_build_initial_invite (osip_message_t **invite, const char *to, const char *from, const char *route, const char *subject)" Build a default INVITE message for a new call\&. .PP \fBParameters:\fP .RS 4 \fIinvite\fP Pointer for the SIP element to hold\&. .br \fIto\fP SIP url for callee\&. .br \fIfrom\fP SIP url for caller\&. .br \fIroute\fP Route header for INVITE\&. (optional) .br \fIsubject\fP Subject for the call\&. .RE .PP .SS "int eXosip_call_send_initial_invite (osip_message_t *invite)" Initiate a call\&. .PP \fBParameters:\fP .RS 4 \fIinvite\fP SIP INVITE message to send\&. .RE .PP .SS "int eXosip_call_build_request (intdid, const char *method, osip_message_t **request)" Build a default request within a call\&. (INVITE, OPTIONS, INFO, REFER) .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fImethod\fP request type to build\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_build_ack (intdid, osip_message_t **ack)" Build a default ACK for a 200ok received\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIack\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_send_ack (intdid, osip_message_t *ack)" Send the ACK for the 200ok received\&.\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIack\fP SIP ACK message to send\&. .RE .PP .SS "int eXosip_call_build_refer (intdid, const char *refer_to, osip_message_t **request)" Build a default REFER for a call transfer\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIrefer_to\fP url for call transfer (Refer-To header)\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_build_info (intdid, osip_message_t **request)" Build a default INFO within a call\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_build_options (intdid, osip_message_t **request)" Build a default OPTIONS within a call\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_build_update (intdid, osip_message_t **request)" Build a default UPDATE within a call\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_build_notify (intdid, intsubscription_status, osip_message_t **request)" Build a default NOTIFY within a call\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIsubscription_status\fP Subscription status of the request\&. .br \fIrequest\fP The sip request to build\&. .RE .PP .SS "int eXosip_call_send_request (intdid, osip_message_t *request)" send the request within call\&. (INVITE, OPTIONS, INFO, REFER, UPDATE) .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIrequest\fP The sip request to send\&. .RE .PP .SS "int eXosip_call_build_answer (inttid, intstatus, osip_message_t **answer)" Build default Answer for request\&. .PP \fBParameters:\fP .RS 4 \fItid\fP id of transaction to answer\&. .br \fIstatus\fP Status code to use\&. .br \fIanswer\fP The sip answer to build\&. .RE .PP .SS "int eXosip_call_send_answer (inttid, intstatus, osip_message_t *answer)" Send Answer for invite\&. .PP \fBParameters:\fP .RS 4 \fItid\fP id of transaction to answer\&. .br \fIstatus\fP response status if answer is NULL\&. (not allowed for 2XX) .br \fIanswer\fP The sip answer to send\&. .RE .PP .SS "int eXosip_call_terminate (intcid, intdid)" Terminate a call\&. send CANCEL, BYE or 603 Decline\&. .PP \fBParameters:\fP .RS 4 \fIcid\fP call id of call\&. .br \fIdid\fP dialog id of call\&. .RE .PP .SS "int eXosip_call_build_prack (inttid, osip_message_t **prack)" Build a PRACK for invite\&. .PP \fBParameters:\fP .RS 4 \fItid\fP id of the invite transaction\&. .br \fIprack\fP The sip prack to build\&. .RE .PP .SS "int eXosip_call_send_prack (inttid, osip_message_t *prack)" Send a PRACK for invite\&. .PP \fBParameters:\fP .RS 4 \fItid\fP id of the invite transaction\&. .br \fIprack\fP The sip prack to send\&. .RE .PP .SS "int eXosip_transfer_send_notify (intdid, intsubscription_status, char *body)" Send a NOTIFY containing the information about a call transfer\&. .PP THIS METHOD WILL BE REPLACED or REMOVED, please use the new API to build NOTIFY\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP dialog id of call\&. .br \fIsubscription_status\fP the subscription status\&. .br \fIbody\fP the body to attach to NOTIFY\&. .RE .PP .SS "int eXosip_call_get_referto (intdid, char *refer_to, size_trefer_to_len)" Get Refer-To header with Replace parameter from dialog\&. .PP \fBParameters:\fP .RS 4 \fIdid\fP id of the dialog\&. .br \fIrefer_to\fP buffer to be filled with refer-to info\&. .br \fIrefer_to_len\fP size of refer_to buffer\&. .RE .PP .SS "int eXosip_call_find_by_replaces (char *replaces)" Return did (or cid) for the replace header\&. .PP \fBParameters:\fP .RS 4 \fIreplaces\fP buffer to be filled with refer-to info\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libeXosip2 from the source code\&.