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 call

reference
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的更多相关文章

  1. libeXosip2(1) -- Modules

    Modules Here is a list of all modules: [detail level 12] The eXtented eXosip stack LibeXosip2 Versio ...

  2. 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 ...

  3. libeXosip2(2-3) -- eXosip2 event API

    eXosip2 event API General purpose API. Data Structures struct   eXosip_event Enumerations enum   eXo ...

  4. libeXosip2(2-2) -- eXosip2 network API

    eXosip2 network API General purpose API. Functions int  eXosip_transport_set (osip_message_t *msg, c ...

  5. libeXosip2(2-1) -- eXosip2 configuration API

    eXosip2 configuration API General purpose API. Data Structures struct   eXosip_dns_cache struct   eX ...

  6. libeXosip2(1-1) -- How-To initialize libeXosip2.

    How-To initialize libeXosip2. The eXtented eXosip stack Initialize eXosip and prepare transport laye ...

  7. SIP UserAgent (B2BUA client)——libosip2 libeXosip2

    1. libosip2 libeXosip2 http://www.antisip.com/download/exosip2/ Features:--------eXosip2 has support ...

  8. 基于GBT28181:SIP协议组件开发-----------第五篇SIP注册流程eXosip2实现(二)

    原创文章,引用请保证原文完整性,尊重作者劳动,原文地址http://www.cnblogs.com/qq1269122125/p/3966794.html. 上章节讲解了讲解一个用eXosip2库实现 ...

  9. 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 ...

随机推荐

  1. 简单的HDFS思维导图

  2. Java向上转型注意事项

    继承.接口:Java子类中如果含有父类中不包含的变量与方法,子类对象向上转型时就是丢失这些变量和方法. interface SuperClass{ int i = 2; void f() ; } cl ...

  3. css链接

    css code: a:link{ color:#FF0000; } a:visited{ color:#00FF00; } a:hover { color:#0000FF; } a:active{ ...

  4. JS(一)

    循环还是很有意思的: 1) 安全数的作业: <!DOCTYPE html> <html lang="en"> <head> <meta c ...

  5. JavaScript 对象属性的遍历

    ES6一共有5种方法可以遍历对象的属性. (1)for...in for...in循环遍历对象自身的和继承的可枚举属性(不含Symbol属性). (2)Object.keys(obj) Object. ...

  6. EBuild-API常见问题汇总

    问题1:用户访问被防火墙屏蔽检查处理流程 E-Build API(原IBE)是面向航空公司和代理人,以及第三方的航空预订服务产品.用户通过客户端,使用固定IP访问E-Build API服务器,航信网络 ...

  7. android中发送邮件

    在移动互联网时代,手机邮件已不是什么新鲜事了,我们可以使用内置的Gmail引擎来发送邮件,也可以使用SMTP来发送邮件,下面用一个简单示例来演示邮件的发送,包括单方发送邮件.多方发送邮件以及抄送邮件, ...

  8. Android获取屏幕分辨率及DisplayMetrics简介

    Android 可设置为随着窗口大小调整缩放比例,但即便如此,手机程序设计人员还是必须知道手机屏幕的边界,以避免缩放造成的布局变形问题. 手机的分辨率信息是手机的一项重要信息,很好的是,Android ...

  9. Java调用天气Webservice的小应用

    废话不多说,直接贴代码: CityReq.java package com.weather; import javax.xml.bind.annotation.XmlElement; import j ...

  10. (转)跟我一起学JQuery插件开发教程

    在逛codeproject网站的时候,突然看到一篇文章:How to write plugin in Jquery. 如果对E文好的同学 ,可以看上面的连接.现在我把上面网站的及结合自己的想法写这篇文 ...