当前位置: 首页 > news >正文

彩票网站 在哪里做广州网站建设公司

彩票网站 在哪里做,广州网站建设公司,上海网站建设公司四叶互联,西安企业名录电话资料虽然知道FreeSWITCH很多年#xff0c;但是实际学习这个软件的时间很少。 作为语音网关的硬件厂家#xff0c;总是以解决客户实际问题为出发点#xff0c;偶尔研究几分钟都是因为客户遇到对接的问题。为了赶进度#xff0c;不可能去仔细研究freeswitch的设置#xff0c;每次…虽然知道FreeSWITCH很多年但是实际学习这个软件的时间很少。 作为语音网关的硬件厂家总是以解决客户实际问题为出发点偶尔研究几分钟都是因为客户遇到对接的问题。为了赶进度不可能去仔细研究freeswitch的设置每次都是通过SIP协议原理对比FreeSWITCH调试日志消息互相参照排查出可能的原因再去倒推可能是哪方面的设置有问题。 所以这里介绍的是我如何快速入门学习FreeSWITCH的干货思路可能跟某些权威指南有所不同。 下面这个文档您可能要对照上一篇《使用IAD电话交换机语音网关将电话外线对接到FreeSWITCH SIP服务器》一起看更容易理解。 电话呼出的SIP协议和FreeSWITCH日志 SIP呼叫其实很简单我们以电话呼出为例。这里呼出例子是根据上一篇文章来的就是1000分机通过电话外线呼叫10086号码。SIP协议是这样的 #mermaid-svg-Z7ay1j5Ge6leDfyo {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .error-icon{fill:#552222;}#mermaid-svg-Z7ay1j5Ge6leDfyo .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Z7ay1j5Ge6leDfyo .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-Z7ay1j5Ge6leDfyo .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Z7ay1j5Ge6leDfyo .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Z7ay1j5Ge6leDfyo .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Z7ay1j5Ge6leDfyo .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Z7ay1j5Ge6leDfyo .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .marker.cross{stroke:#333333;}#mermaid-svg-Z7ay1j5Ge6leDfyo svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Z7ay1j5Ge6leDfyo .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Z7ay1j5Ge6leDfyo text.actortspan{fill:black;stroke:none;}#mermaid-svg-Z7ay1j5Ge6leDfyo .actor-line{stroke:grey;}#mermaid-svg-Z7ay1j5Ge6leDfyo .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .sequenceNumber{fill:white;}#mermaid-svg-Z7ay1j5Ge6leDfyo #sequencenumber{fill:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .messageText{fill:#333;stroke:#333;}#mermaid-svg-Z7ay1j5Ge6leDfyo .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Z7ay1j5Ge6leDfyo .labelText,#mermaid-svg-Z7ay1j5Ge6leDfyo .labelTexttspan{fill:black;stroke:none;}#mermaid-svg-Z7ay1j5Ge6leDfyo .loopText,#mermaid-svg-Z7ay1j5Ge6leDfyo .loopTexttspan{fill:black;stroke:none;}#mermaid-svg-Z7ay1j5Ge6leDfyo .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-Z7ay1j5Ge6leDfyo .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-Z7ay1j5Ge6leDfyo .noteText,#mermaid-svg-Z7ay1j5Ge6leDfyo .noteTexttspan{fill:black;stroke:none;}#mermaid-svg-Z7ay1j5Ge6leDfyo .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Z7ay1j5Ge6leDfyo .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Z7ay1j5Ge6leDfyo .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Z7ay1j5Ge6leDfyo .actorPopupMenu{position:absolute;}#mermaid-svg-Z7ay1j5Ge6leDfyo .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-Z7ay1j5Ge6leDfyo .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Z7ay1j5Ge6leDfyo .actor-man circle,#mermaid-svg-Z7ay1j5Ge6leDfyo line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-Z7ay1j5Ge6leDfyo :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} MicroSIP FreeSWITCH IAD Invite 010086 对应日志里的黄色标记 sofia/internal/1000192.168.3.13 100 Trying Invite 10086 100 Trying 180 Ringing 180 Ringing 200 OK 对应日志里的黄色标记 Channel [sofia/external/10086] has been answered 200 OK 上述就是SIP消息信令 下面开始RTP数据声音 吧啦吧啦 吧啦吧啦 MicroSIP FreeSWITCH IAD 从FreeSWITCH日志上这样记录 2024-03-06 19:05:33.172906 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000192.168.3.13 [1ea401e7-6c7b-481f-8752-45742a320922] 2024-03-06 19:05:33.202908 [INFO] mod_dialplan_xml.c:637 Processing 1000 1000-010086 in context default 2024-03-06 19:05:33.202908 [NOTICE] switch_channel.c:1104 New Channel sofia/external/10086 [901fb9b0-35c9-4ea6-a4a4-3407e2937483] 2024-03-06 19:05:52.623019 [NOTICE] sofia.c:7156 Ring-Ready sofia/external/10086! 2024-03-06 19:05:52.633019 [NOTICE] mod_sofia.c:2272 Ring-Ready sofia/internal/1000192.168.3.13! 2024-03-06 19:05:52.633019 [NOTICE] switch_ivr_originate.c:525 Ring Ready sofia/internal/1000192.168.3.13! 2024-03-06 19:05:54.123105 [NOTICE] sofia.c:8144 Channel [sofia/external/10086] has been answered 2024-03-06 19:05:54.133105 [NOTICE] switch_ivr.c:779 Channel [sofia/internal/1000192.168.3.13] has been answered 2024-03-06 19:07:03.243058 [NOTICE] sofia.c:1012 Hangup sofia/internal/1000192.168.3.13 [CS_HIBERNATE] [NORMAL_CLEARING] 2024-03-06 19:07:03.243058 [NOTICE] switch_ivr_bridge.c:1289 Hangup sofia/external/10086 [CS_HIBERNATE] [NORMAL_CLEARING] 2024-03-06 19:07:03.243058 [NOTICE] switch_core_session.c:1682 Session 2 (sofia/external/10086) Ended 2024-03-06 19:07:03.243058 [NOTICE] switch_core_session.c:1686 Close Channel sofia/external/10086 [CS_DESTROY] 2024-03-06 19:07:03.243058 [NOTICE] switch_core_session.c:1682 Session 1 (sofia/internal/1000192.168.3.13) Ended 2024-03-06 19:07:03.243058 [NOTICE] switch_core_session.c:1686 Close Channel sofia/internal/1000192.168.3.13 [CS_DESTROY] 电话呼入的SIP协议和FreeSWITCH调试 从SIP协议是这样的来看下 #mermaid-svg-RKEk5w6z94f5gwGR {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-RKEk5w6z94f5gwGR .error-icon{fill:#552222;}#mermaid-svg-RKEk5w6z94f5gwGR .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-RKEk5w6z94f5gwGR .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-RKEk5w6z94f5gwGR .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-RKEk5w6z94f5gwGR .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-RKEk5w6z94f5gwGR .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-RKEk5w6z94f5gwGR .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-RKEk5w6z94f5gwGR .marker{fill:#333333;stroke:#333333;}#mermaid-svg-RKEk5w6z94f5gwGR .marker.cross{stroke:#333333;}#mermaid-svg-RKEk5w6z94f5gwGR svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-RKEk5w6z94f5gwGR .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RKEk5w6z94f5gwGR text.actortspan{fill:black;stroke:none;}#mermaid-svg-RKEk5w6z94f5gwGR .actor-line{stroke:grey;}#mermaid-svg-RKEk5w6z94f5gwGR .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-RKEk5w6z94f5gwGR .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-RKEk5w6z94f5gwGR #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-RKEk5w6z94f5gwGR .sequenceNumber{fill:white;}#mermaid-svg-RKEk5w6z94f5gwGR #sequencenumber{fill:#333;}#mermaid-svg-RKEk5w6z94f5gwGR #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-RKEk5w6z94f5gwGR .messageText{fill:#333;stroke:#333;}#mermaid-svg-RKEk5w6z94f5gwGR .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RKEk5w6z94f5gwGR .labelText,#mermaid-svg-RKEk5w6z94f5gwGR .labelTexttspan{fill:black;stroke:none;}#mermaid-svg-RKEk5w6z94f5gwGR .loopText,#mermaid-svg-RKEk5w6z94f5gwGR .loopTexttspan{fill:black;stroke:none;}#mermaid-svg-RKEk5w6z94f5gwGR .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-RKEk5w6z94f5gwGR .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-RKEk5w6z94f5gwGR .noteText,#mermaid-svg-RKEk5w6z94f5gwGR .noteTexttspan{fill:black;stroke:none;}#mermaid-svg-RKEk5w6z94f5gwGR .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RKEk5w6z94f5gwGR .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RKEk5w6z94f5gwGR .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-RKEk5w6z94f5gwGR .actorPopupMenu{position:absolute;}#mermaid-svg-RKEk5w6z94f5gwGR .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-RKEk5w6z94f5gwGR .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-RKEk5w6z94f5gwGR .actor-man circle,#mermaid-svg-RKEk5w6z94f5gwGR line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-RKEk5w6z94f5gwGR :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} IAD FreeSWITCH MicroSIP Invite 5551212 100 Trying Invite 1000 100 Trying 180 Ringing 180 Ringing 200 OK 200 OK 上述就是SIP消息信令 下面开始RTP数据声音 吧啦吧啦 吧啦吧啦 IAD FreeSWITCH MicroSIP 对应的日志信息可以看看 2024-03-06 19:11:12.323305 [NOTICE] switch_channel.c:1104 New Channel sofia/external/18719289062192.168.3.13:5080 [f4d89a91-9ffb-4db9-b960-fb4429f4c465] 2024-03-06 19:11:12.373308 [INFO] mod_dialplan_xml.c:637 Processing 18719289062 18719289062-5551212 in context public 2024-03-06 19:11:12.373308 [NOTICE] switch_ivr.c:2172 Transfer sofia/external/18719289062192.168.3.13:5080 to XML[1000default] 2024-03-06 19:11:12.373308 [INFO] mod_dialplan_xml.c:637 Processing 18719289062 18719289062-1000 in context default 2024-03-06 19:11:12.373308 [INFO] switch_ivr_async.c:4171 Bound B-Leg: *1 execute_extension::dx XML features 2024-03-06 19:11:12.383308 [INFO] switch_ivr_async.c:4171 Bound B-Leg: *2 record_session::C:/Program Files/FreeSWITCH/recordings/18719289062.2024-03-06-19-11-12.wav 2024-03-06 19:11:12.383308 [INFO] switch_ivr_async.c:4171 Bound B-Leg: *3 execute_extension::cf XML features 2024-03-06 19:11:12.383308 [INFO] switch_ivr_async.c:4171 Bound B-Leg: *4 execute_extension::att_xfer XML features 2024-03-06 19:11:12.383308 [INFO] switch_core_session.c:2648 Sending early media 2024-03-06 19:11:12.383308 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/18719289062192.168.3.13:5080! 2024-03-06 19:11:12.433311 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000192.168.3.66:51142 [0d9f8f46-9394-4b60-978e-5f92bee992ca] 2024-03-06 19:11:12.433311 [NOTICE] switch_ivr_originate.c:2845 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 2024-03-06 19:11:12.513316 [NOTICE] sofia.c:7156 Ring-Ready sofia/internal/1000192.168.3.66:51142! 2024-03-06 19:11:24.342992 [NOTICE] sofia.c:8182 Channel [sofia/internal/1000192.168.3.66:51142] has been answered 2024-03-06 19:11:24.362993 [NOTICE] switch_ivr_originate.c:3632 Channel [sofia/external/18719289062192.168.3.13:5080] has been answered 2024-03-06 19:11:46.823278 [NOTICE] sofia.c:1012 Hangup sofia/internal/1000192.168.3.66:51142 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2024-03-06 19:11:46.843279 [NOTICE] switch_ivr_bridge.c:1751 Hangup sofia/external/18719289062192.168.3.13:5080 [CS_EXECUTE] [NORMAL_CLEARING] 2024-03-06 19:11:46.843279 [NOTICE] switch_core_session.c:1682 Session 4 (sofia/internal/1000192.168.3.66:51142) Ended 2024-03-06 19:11:46.843279 [NOTICE] switch_core_session.c:1686 Close Channel sofia/internal/1000192.168.3.66:51142 [CS_DESTROY] 2024-03-06 19:11:46.843279 [NOTICE] switch_core_session.c:1682 Session 3 (sofia/external/18719289062192.168.3.13:5080) Ended 2024-03-06 19:11:46.843279 [NOTICE] switch_core_session.c:1686 Close Channel sofia/external/18719289062192.168.3.13:5080 [CS_DESTROY] 所以怎么对比SIP消息和FreeSWITCH日志呢 我们可以从FreeSWITCH Console里面根据这些关键词比如Invite就是New Channel 180 Ringing就是对应Ring-Ready200 OK就是对应就是对应has been answered来看呼叫进展情况。 再配合dialplan信息就可以理解到FreeSWITCH如何处理呼叫的了。 比如我们看下面这句日志 2024-03-06 19:11:12.373308 [INFO] mod_dialplan_xml.c:637 Processing 18719289062 18719289062-5551212 in context public mod_dialplan_xml 就是执行dialplan对应的就是freeswitch/conf/dialplan下面的文件。根据主叫和被叫号码来匹配业务流程5551212这个被叫号码很多文档里会把这个叫做DID有一个默认流程文件名是00_inbound_did.xml 我们把这个xml文件内容贴在下面 includeextension namepublic_didcondition fielddestination_number expression^(5551212)$!--If youre hosting multiple domains you will want to set thetarget_domain on these calls so they hit the proper domain after youtransfer the caller into the default context. $${domain} is the default domain set from vars.xml but you can set itto any domain you have setup in your user directory.-- action applicationset datadomain_name$${domain}/!-- This example maps the DID 5551212 to ring 1000 in the default context --action applicationtransfer data1000 XML default//condition/extension /include这个文档有助于您更快捷的了解呼叫信令流程、电话业务处理流程。对于想深入了解SIP信令的同学来说也可以把SIP debug打开sofia loglevel all 9就能看到详细的信令过程。
http://www.w-s-a.com/news/403231/

相关文章:

  • 江苏城嘉建设工程有限公司网站潍坊网站定制公司
  • 四川省住房和城乡建设厅新网站宜昌建设厅网站
  • 建设网站一般流程建设开发网站
  • 设计外贸英文网站国家企业信息信用公信系统
  • 主题资源网站创建时 如何突出设计的特点阿里云是做网站的吗
  • 乌市建设工程质量监督站网站外资公司注册
  • 档案馆网站机房建设做游戏网站打鱼
  • 网站建设平台 创新模式搭建好ftp服务器 如何通过网站访问
  • 苏州集团网站制作设计网页制作软件ai
  • 网站建设新手教程视频教程手帐风格wordpress主题
  • 做投标网站条件网站更改指定字段
  • mvc5 网站开发之美做印刷网站公司
  • 医疗网站建设精英微信网站用什么制作的
  • 银川网站设计联系电话地推加人2元1个
  • 龙华网站 建设深圳信科北京知名的网站建设公司
  • 怎么做qq刷赞网站搜盘 资源网
  • 微网站怎么做的好名字吗陕西省医院网站建设管理
  • 泉州seo-泉州网站建设公司温州企业自助建站系统
  • 网站建设属于什么费网站建设网络推广
  • 德州网站开发人员网站怎么才能被百度收录
  • wordpress网站怎么加小游戏乐山网站制作公司
  • 企业购 网站建设做兼职有哪些网站
  • 湖州网站做等保费用大型网站建站
  • 优创智汇高端网站建设网站设计工作流程
  • 什么网站可以学做西餐个人网站怎么做支付功能
  • 千户微建站平台做网站需要切图吗
  • 织梦cms 学校网站模板网站建设中的问题
  • 山东济南网站建设公司制作wordpress模板教程视频教程
  • 档案网站的建设怎样更新网站内容
  • 网站开发项目规划房地产趋势与前景