[WebRTC/JsSIP] AUDIO RTP REPORTS ERROR: [Remote Address Error!]

问题描述:

  在使用FreeSWITCH WebRTC 测试时,FS回复  502 Bad Gateway。查看FS日志

 [DEBUG] switch_core_media.c:5147 AUDIO RTP [sofia/internal/**:5060] 120.55.X.X port 24428 -> fd8e:3730:761e:9f46:a428:4fac:5fb6:6e53 port 53197 codec: 0 ms: 20
 [DEBUG] switch_rtp.c:3562 Starting timer [soft] 160 bytes per 20ms
 [ERR] switch_core_media.c:5812 AUDIO RTP REPORTS ERROR: [Remote Address Error!]

问题产生原因:

  candidates 使用了IPv6, 导致不匹配。如果没有使用IPv6,需要在acl中添加candidates 的支持。

解决办法:

1 sip_profile 中添加  <param name="apply-candidate-acl" value="candidate"/>
2 acl.conf.xml 中添加 
    <list name="candidate" default="deny">
      <node type="allow" cidr="0.0.0.0/32"/>
    </list>

然后 reloadacl, rescan profile 。

 

posted @ 2016-07-14 13:37  丹江流  阅读(3339)  评论(0编辑  收藏  举报