sip

sip协议

折月煮酒 提交于 2019-12-26 14:23:17
INVITE sip:bob@biloxi.com SIP/2.0 Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bK776asdhds Max-Forwards: 70 To: Bob <sip:bob@biloxi.com> From: Alice <sip:alice@atlanta.com>;tag=1928301774 Call-ID: a84b4c76e66710@pc33.atlanta.com CSeq: 314159 INVITE Contact: <sip:alice@pc33.atlanta.com> Content-Type: application/sdp Content-Length: 142 (Alice’s SDP not shown) atlanta.com . . . biloxi.com . proxy proxy . . . Alice’s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . Bob’s softphone SIP Phone | | | | | INVITE F1 | | | |---------------> | INVITE F2 | | | 100

Asterisk 1.8 sip 协议栈分析

余生颓废 提交于 2019-12-25 16:34:28
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 引用自:http://blog.csdn.net/z1623866465/archive/2011/01/02/6113057.aspx 看了一下 asterisk 1.8 ,chan_sip 更新了许多内容,下面结合asterisk 1.4 asterisk 1.6 分析一下sip协议栈。 此笔记为本人学习记录,有些地方描述其他人可能看不懂,望见谅。 分析路线 sipsock_read->parse_request->find_call->handle_inconming->handle_request_方法名。。。。 协议栈初始化:load_module() 函数加载SIP配置信息,解析sip.conf挂载到全局变量中。 首先初始化user,peer,register全局链表(1.6 版本中已经改为hash存储 估计性能提高不少),这三个链表分别存储用户,peer,register三个实体。 接下来创建 调度器,IO管理器,这里IO即监听socket fd句柄上的IO事件,chan_sip用poll异步IO实现此功能,io_context 结构封装了此功能。 创建IO调度器后注册各种app, load_module()最后调用restart_monitor()函数创建一个线程(do_monitor()

asterisk sip mysql 配置

血红的双手。 提交于 2019-12-25 16:34:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近研究asterisk配置,之前sip账号是配置在sip.conf文件里,手动写死的,目前需求,是动态新增sip账户,保存在数据库里。 数据库里新增了数据后,使用命令sip show users 不能加载到数据库的sip账号。 1.下载X-Lite软电话客户端,登陆sip账号,可以登陆成功。 2.修改res_config_mysql.conf文件,配置数据库的链接(host,dbname,username,password) 3.修改extconfig.conf文件,配置 sippeers => mysql,general,bit_sip_buddies sipusers => mysql,general,bit_sip_buddies 【general】这个是res_config_mysql.conf里的头标签, 【bit_sip_buddies】这个是sip用户的表名 4.修改sip.conf文件 rtupdate=yes rtcachefriends=yes rtsavesysname=yes 这三个配置是重点,一定要同时配上,就可以解决了sip show users命令不显示数据库里sip账号的问题了。 5.操作之前需检查 (1)realtime mysql status输入此命令

asterisk chan_sip.c代码分析

岁酱吖の 提交于 2019-12-25 16:27:03
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1. 代码简介: Chan_sip.c是SIP协议(RFC3261)的实现代码,它没有实现对S/MIME, TCP and TLS的支持,对应的配置文件是sip.conf,代码所在的分组是:通道驱动类(channel_drivers)。 SIP通道处理各种类型的Sip sessions和dialogs(注意:并不是所有的dialogs都是“电话呼叫”),主要包括: * - Incoming calls that will be sent to the PBX core * - Outgoing calls, generated by the PBX * - SIP subscriptions and notifications of states and voicemail messages * - SIP registrations, both inbound and outbound * - SIP peer management (peerpoke, OPTIONS) * - SIP text messages 在SIP通道中,通常会有一列活跃的SIP dialogs,CLI下的命令sip show channels可以显示出大部分dialogs,除了订阅类的(它们可以用命令sip show

What provider for Android native SIP

两盒软妹~` 提交于 2019-12-25 16:05:23
问题 I'm trying to create a small SIP application using Android native SIP (using the code from here (http://developer.android.com/guide/topics/connectivity/sip.html). However it does not seem to register properly with the SIP provider, I'm trying linphone.org and getonsip.com. Has anybody actually made it work with some SIP provider? Thanks. 回答1: Linphone works great for me, managed to get it working even with a 8 devices confrence!, the call quality is good and there is barely noticeable delay

What provider for Android native SIP

你。 提交于 2019-12-25 16:03:31
问题 I'm trying to create a small SIP application using Android native SIP (using the code from here (http://developer.android.com/guide/topics/connectivity/sip.html). However it does not seem to register properly with the SIP provider, I'm trying linphone.org and getonsip.com. Has anybody actually made it work with some SIP provider? Thanks. 回答1: Linphone works great for me, managed to get it working even with a 8 devices confrence!, the call quality is good and there is barely noticeable delay

What provider for Android native SIP

余生颓废 提交于 2019-12-25 16:03:10
问题 I'm trying to create a small SIP application using Android native SIP (using the code from here (http://developer.android.com/guide/topics/connectivity/sip.html). However it does not seem to register properly with the SIP provider, I'm trying linphone.org and getonsip.com. Has anybody actually made it work with some SIP provider? Thanks. 回答1: Linphone works great for me, managed to get it working even with a 8 devices confrence!, the call quality is good and there is barely noticeable delay

SIP Trunk / SIP 中继服务

风流意气都作罢 提交于 2019-12-25 16:01:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CTS SIP Trunk/SIP中继可以让你现有的IPPBX连接到CTS的平台从而使用VOIP外线落地。享受拨打全国统一资费0.09元,多路中继号码,可接听电话。如果你已经有了IPPBX系统,使用CTS SIP Trunk企业级VOIP中继/SIP中继话务服务,可以让你在外呼电话时节省更多的钱 ,让您的VOIP系统对内对外都实现真正的 Over IP。使用CTS SIP Trunk/SIP中继无需硬件语音板卡,无需电话线路,只需一条网线,架设从内部分机到外呼电话的完全 VOIP 系统。不限企业地域,全国均可使用。如需办理请电话咨询:4008290998. 备注:使用CTS SIP Trunk服务,几乎任何的现有IPPBX均可以直接配置使用,无需任何硬件设备, 仅需支持SIP协议即可。例如:FreePBX,Asterisk,FreeSwitch,Trixbox,PBX IN A Flash,Elastix,3CX,AVAYA,Lync等等。 来源: oschina 链接: https://my.oschina.net/u/1452491/blog/200550

学习Asterisk——配置相关

余生长醉 提交于 2019-12-25 15:55:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 配置文件如下: asterisk.conf——主配置文件,告知Asterisk环境目录位置,包含其他所有配置文件所包含的目录,缺省会存放在/etc/asterisk目录下,也可以通过命令参数使用不同的asterisk.conf zaptel.conf——配置板卡驱动,配置通道 adtranvofr.conf——配置帧中继语音通道 agents.conf——配置代理通道 h323.conf——配置H323通道 iax.conf——配置IAX通道 mgcp.conf——配置MGCP(媒体网关控制协议,应用于多媒体网关单元之间) modem.conf——配置ISDN,不是modm phone.conf——配置linux电话设备 sip.conf——配置SIP通道 sip_notify.conf——配置SIP消息通知 skinny.conf——配置Cisco SCCP通道 vpb.conf——配置Voicetronix卡通道 zapata.conf—— 配置ZAP Digium卡通道 extensions.conf——Asterisk的拨号方案,它所有的操作控制和执行流程的主要方案,它控制呼入呼出如何被处理和路由。 extensions.ael——扩展拨号方案语言 features.conf——配置呼叫停泊

asterisk sip配置说明

女生的网名这么多〃 提交于 2019-12-25 15:50:23
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1. 介绍 extensions.conf中使用sip设备的语法是SIP/devicename,devicename名在下一节中说明。 如果用户在Internet上,可以使用SIP/username@domain形式,同时不要忘记打开DNS SRV功能。 如果定义了一个SIP代理,可以使用SIP/proxyhostname/user或者SIP/user@proxyhostname形式,proxyhostname的定义在下面的章节说明。 2. 在CLI中的查询命令 : u sip show peers 显示所有的SIP peers(包括friends) u sip show users 显示所有的SIP users(包括friends) u sip show registry 显示注册到的主机状态 u sip debug 显示所有的Sip信息 u module reload chan_sip.so 重新装载sip的配置文件 3. 设备命名 命名一个设备之前,要先理解Asterisk是怎么处理呼入电话的: 1) Asterisk取出SIP From: address中的username,使用它来匹配系统中定义的type=user的的设备名。 2) Asterisk检查INVITE请求中的IP地址和端口号