今天遇到的freeswtich问题。FS的日志还有提升空间

今天测试freeswtich呼叫。先后遇到多个问题。先是sip包被联通光猫路由器拦截,把5060端口改成其他端口后解决。

使用vpn,修改sip_profiles/internal.xml 和 external.xml ,让fs监听在vpn的虚拟ip地址上。呼叫就不行了,呼入一通就断,呼出也是被叫应答即断。(一开始甚至怀疑是不是不能使用vpn的虚拟地址)。

wireshark抓包,发现在应答200OK后,FS主动发送bye,原因码是DESTINATION_OUT_OF_ORDER,这个有误导性,以为是被叫的问题(实际上不是)。

查看freeswtich的debug日志,观察到在应答的瞬间,有红色的日志:Local Address Error!
但是日志里面并没有打印local address.

修改freeswtich的源代码,找到报告这个错误的地方(switch_rtp.c, switch_rtp_set_local_address函数中),把host(即本地地址),port都打印到日志。呼叫重现,发现是本地地址多了一个右大括号。

查看配置文件 internal.xml 发现 rtp-ip 配置项果然配置错误,在ip地址后面多另一个大括号。修改后重启freeswtich,测试OK了。

如果freeswtich的日志能够在提示Loca Address Error后面把它得到的local address打印出来,那么这个问题就容易发现多了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1 Unassiagned number(未分配的号码(空号)) 3 No route to destination(无至目的地的路由) 6 Channel unacceptable(不可接受的信道) 16 Normal clearing(正常清除) 17 User busy(用户忙) 18 No user responding(无用户响应) 19 User alerting,no answer(已有用户提醒,但无应答) 21 Call rejected(呼叫拒绝) 22 Number changed(号码改变) 26 Non selected user clearing(清除未选择的用户) 27 Destination out of order(终点故障) 28 Incomplete number(无效号码格式(不完全的号码)) 29 Facility rejected(设施被拒绝) 30 Response to status enquiry(对状态询问的响应) 31 Normal,unspecified(正常,未规定) 34 No circuit/channel available(无电路/信道可用) 38 Network out of order(网络故障) 41 Temporary failure(临时故障) 42 Switching equipment congestion(交换设备拥塞) 43 Access information discarded(接入信息被丢弃) 44 Requested circuit/channel not available(请求的电路/信道不可用) 47 Resources unavailable,unspecified(资源不可用,未规定) 49 Quality of service unavailable(服务质量不可用) 50 Requested facility not subscribed(未预订所请求的设施) 55 Incoming calls barred within the CUG 57 Bearer capability not authorized(承载能力未认可) 58 Bearer capability not presently available(承载能力目前不可用) 63 Service or option not available,unspecified(无适用的业务或任选项目,未规定) 65 Bearer service not implemented(承载业务不能实现) 68 ACM equal to or greater than ACMmax 69 Requested facility not implemented(所请求的设施不能实现) 70 Only restricted digital information bearer(仅能获得受限数字信息承载能力) 79 Service or option not implemented(业务不能实现,未规定) 81 Invalid transaction identrfier value(无效处理识别码) 87 User not member of CUG 88 Incompatible destination(非兼容目的地址) 91 Invalid mandatory information(无效过渡网选择) 95 Semantically incorrect message(无效消息,未规定) 96 Invalid mandatory information(必选消息单元差错) 97 Message type non-existent or not implemented(消息类型不存在或不能实现) 98 Message type not compatible with protocol state(消息与控制状态不兼容,消息类型不存在或不能实现) 99 Information element non-existent or not implemented(信息单元不存在或不能实现) 100 Conditional IE error(无效信息单元内容) 101 Message not compatible with protocol state(消息与呼叫状态不兼容) 102 Recovery on timer expiry(定时器超时恢复) 111 Protocol error,unspecified(协议差错,未规定) 127 Interworking,unspecified(互通,未规定)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值