libeXosip2(3-1) -- eXosip2 INVITE and Call Management
eXosip2 INVITE and Call Management
SIP messages and call control API
Functions
int
eXosip_call_set_reference (struct eXosip_t *excontext, int id, void *reference)
void *
eXosip_call_get_reference (struct eXosip_t *excontext, int cid)
int
eXosip_call_build_initial_invite (struct eXosip_t *excontext, osip_message_t **invite, const char *to, const char *from, const char *route, const char *subject)
int
eXosip_call_send_initial_invite (struct eXosip_t *excontext, osip_message_t *invite)
int
eXosip_call_build_request (struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
int
eXosip_call_build_ack (struct eXosip_t *excontext, int did, osip_message_t **ack)
int
eXosip_call_send_ack (struct eXosip_t *excontext, int did, osip_message_t *ack)
int
eXosip_call_build_refer (struct eXosip_t *excontext, int did, const char *refer_to, osip_message_t **request)
int
eXosip_call_build_info (struct eXosip_t *excontext, int did, osip_message_t **request)
int
eXosip_call_build_options (struct eXosip_t *excontext, int did, osip_message_t **request)
int
eXosip_call_build_update (struct eXosip_t *excontext, int did, osip_message_t **request)
int
eXosip_call_build_notify (struct eXosip_t *excontext, int did, int subscription_status, osip_message_t **request)
int
eXosip_call_send_request (struct eXosip_t *excontext, int did, osip_message_t *request)
int
eXosip_call_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
int
eXosip_call_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
int
eXosip_call_terminate (struct eXosip_t *excontext, int cid, int did)
int
eXosip_call_build_prack (struct eXosip_t *excontext, int tid, osip_message_t **prack)
int
eXosip_call_send_prack (struct eXosip_t *excontext, int tid, osip_message_t *prack)
int
eXosip_call_get_referto (struct eXosip_t *excontext, int did, char *refer_to, size_t refer_to_len)
int
eXosip_call_find_by_replaces (struct eXosip_t *excontext, char *replaces)
Detailed Description
Function Documentation
int eXosip_call_set_reference
(
struct eXosip_t * excontext,
int id,
void * reference
)
Set a new application context for an existing call
- Parameters
-
excontext
-
eXosip_t instance.
id
call-id or dialog-id of callreference
New application context.
void* eXosip_call_get_reference
(
struct eXosip_t * excontext,
int cid
)
Get the application context pointer for an existing call.
- Parameters
-
excontext
-
eXosip_t instance.
cid
id of the call.
- Returns
- Application context reference
int eXosip_call_build_initial_invite
(
struct eXosip_t * excontext,
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.
- Parameters
-
excontext
eXosip_t instance.invite
Pointer for the SIP element to hold.to
SIP url for callee.from
SIP url for caller.route
Route header for INVITE. (optional)subject
Subject for the call.
int eXosip_call_send_initial_invite
(
struct eXosip_t * excontext,
osip_message_t * invite
)
Initiate a call.
- Parameters
-
excontext
eXosip_t instance.invite
SIP INVITE message to send.
int eXosip_call_build_request
(
struct eXosip_t * excontext,
int did,
const char * method,
osip_message_t ** request
)
Build a default request within a call. (INVITE, OPTIONS, INFO, REFER)
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.method
request type to build.request
The sip request to build.
int eXosip_call_build_ack
(
struct eXosip_t * excontext,
int did,
osip_message_t ** ack
)
Build a default ACK for a 200ok received.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.ack
The sip request to build.
int eXosip_call_send_ack
(
struct eXosip_t * excontext,
int did,
osip_message_t * ack
)
Send the ACK for the 200ok received..
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.ack
SIP ACK message to send.
int eXosip_call_build_refer
(
struct eXosip_t * excontext,
int did,
const char * refer_to,
osip_message_t ** request
)
Build a default REFER for a call transfer.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.refer_to
url for call transfer (Refer-To header).request
The sip request to build.
int eXosip_call_build_info
(
struct eXosip_t * excontext,
int did,
osip_message_t ** request
)
Build a default INFO within a call.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.request
The sip request to build.
int eXosip_call_build_options
(
struct eXosip_t * excontext,
int did,
osip_message_t ** request
)
Build a default OPTIONS within a call.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.request
The sip request to build.
int eXosip_call_build_update
(
struct eXosip_t * excontext,
int did,
osip_message_t ** request
)
Build a default UPDATE within a call.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.request
The sip request to build.
int eXosip_call_build_notify
(
struct eXosip_t * excontext,
int did,
int subscription_status,
osip_message_t ** request
)
Build a default NOTIFY within a call.
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.subscription_status
Subscription status of the request.request
The sip request to build.
int eXosip_call_send_request
(
struct eXosip_t * excontext,
int did,
osip_message_t * request
)
send the request within call. (INVITE, OPTIONS, INFO, REFER, UPDATE)
- Parameters
-
excontext
eXosip_t instance.did
dialog id of call.request
The sip request to send.
int eXosip_call_build_answer
(
struct eXosip_t * excontext,
int tid,
int status,
osip_message_t ** answer
)
Build default Answer for request.
- Parameters
-
excontext
eXosip_t instance.tid
id of transaction to answer.status
Status code to use.answer
The sip answer to build.
int eXosip_call_send_answer
(
struct eXosip_t * excontext,
int tid,
int status,
osip_message_t * answer
)
Send Answer for invite.
- Parameters
-
excontext
eXosip_t instance.tid
id of transaction to answer.status
response status if answer is NULL. (not allowed for 2XX)answer
The sip answer to send.
int eXosip_call_terminate
(
struct eXosip_t * excontext,
int cid,
int did
)
Terminate a call. send CANCEL, BYE or 603 Decline.
- Parameters
-
excontext
eXosip_t instance.cid
call id of call.did
dialog id of call.
int eXosip_call_build_prack
(
struct eXosip_t * excontext,
int tid,
osip_message_t ** prack
)
Build a PRACK for invite.
- Parameters
-
excontext
eXosip_t instance.tid
id of the invite transaction.prack
The sip prack to build.
int eXosip_call_send_prack
(
struct eXosip_t * excontext,
int tid,
osip_message_t * prack
)
Send a PRACK for invite.
- Parameters
-
excontext
eXosip_t instance.tid
id of the invite transaction.prack
The sip prack to send.
int eXosip_call_get_referto
(
struct eXosip_t * excontext,
int did,
char * refer_to,
size_t refer_to_len
)
Get Refer-To header with Replace parameter from dialog.
- Parameters
-
excontext
eXosip_t instance.did
id of the dialog.refer_to
buffer to be filled with refer-to info.refer_to_len
size of refer_to buffer.
int eXosip_call_find_by_replaces
(
struct eXosip_t * excontext,
char * replaces
)
Return did (or cid) for the replace header.
- Parameters
-
excontext
eXosip_t instance.replaces
buffer to be filled with refer-to info.
libeXosip2(3-1) -- eXosip2 INVITE and Call Management的更多相关文章
- libeXosip2(1) -- Modules
Modules Here is a list of all modules: [detail level 12] The eXtented eXosip stack LibeXosip2 Versio ...
- libeXosip2(3) -- SIP messages and call control API
SIP messages and call control API The SIP messages and call control API. More... Modules eXosip2 INV ...
- libeXosip2(2-3) -- eXosip2 event API
eXosip2 event API General purpose API. Data Structures struct eXosip_event Enumerations enum eXo ...
- libeXosip2(2-2) -- eXosip2 network API
eXosip2 network API General purpose API. Functions int eXosip_transport_set (osip_message_t *msg, c ...
- libeXosip2(2-1) -- eXosip2 configuration API
eXosip2 configuration API General purpose API. Data Structures struct eXosip_dns_cache struct eX ...
- libeXosip2(1-1) -- How-To initialize libeXosip2.
How-To initialize libeXosip2. The eXtented eXosip stack Initialize eXosip and prepare transport laye ...
- SIP UserAgent (B2BUA client)——libosip2 libeXosip2
1. libosip2 libeXosip2 http://www.antisip.com/download/exosip2/ Features:--------eXosip2 has support ...
- 基于GBT28181:SIP协议组件开发-----------第五篇SIP注册流程eXosip2实现(二)
原创文章,引用请保证原文完整性,尊重作者劳动,原文地址http://www.cnblogs.com/qq1269122125/p/3966794.html. 上章节讲解了讲解一个用eXosip2库实现 ...
- libeXosip2(1-2) -- How-To initiate, modify or terminate calls.
How-To initiate, modify or terminate calls. The eXtented eXosip stack eXosip2 offers a flexible API ...
随机推荐
- nexus4/5/6/7/9/10设备谷歌安卓5.1.1系统底包下载
https://developers.google.com/android/nexus/images http://www.inexus.co/thread-18488-1-1.html
- 尝鲜党:Nexus5、6刷安卓M教程
说明: 进入recovery的命令:adb reboot recovery 进入bootloader的命令:adb reboot bootloader 概述 F:\Nexus5\AndroidM\ha ...
- [置顶] NO.4 使用预处理器进行调试
<c++ primer>第四版 p190 ************************************************************************* ...
- POJ 3356 AGTC(最小编辑距离)
POJ 3356 AGTC(最小编辑距离) http://poj.org/problem?id=3356 题意: 给出两个字符串x 与 y,当中x的长度为n,y的长度为m,而且m>=n.然后y能 ...
- linux-Python升级安装
Wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz tar zxvf Python-3.5.0.tar.gz && ...
- Java基本类型与包装类
存储方式及位置的不同,基本类型是直接存储变量的值保存在堆栈中能高效的存取,封装类型需要通过引用指向实例,具体的实例保存在堆中 Java语言提供了八种基本类型.六种数字类型(四个整数型,两个浮点型) ...
- Oracle 11g 完全卸载
停止所有Oracle 11g相关的服务 1.打开"服务"窗口 键入命令:"services.msc",回车,如下图: 2.停止所有Oracle 11g相关的服务 ...
- 服务 通话录音 TelephonyManager
MainActivity public class MainActivity extends ListActivity { private BatteryChangedReceiver rec ...
- (五)《Java编程思想》——final关键字
可能使用final的三种情况:数据.方法.类. 1.final数据 final 常量必须是基本类型数据,且在定义时须赋值: 一个既是static又是final的域只占据一段不能改变的存储空间,只有一份 ...
- html5.边框属性相关知识点
border-left 定义左边框 border-top 定义上边框 border-right 定义有边框 border-bottom 定义下边框 边框样式: dotted 边框线为点状虚线 dash ...