我想将我的星号服务器注册到SIP中继。 我在sip.conf和extensions.conf中添加了以下一段代码
sip.conf
[general] register => myusername:[email protected] allow=ulaw [flowroute] ; keep this lowercase, do not change format type=friend secret=mypassword username=myusername host=sip.flowroute.com dtmfmode=rfc2833 context=inbound canreinvite=no allow=ulaw insecure=port,invite fromdomain=sip.flowroute.com
extensions.conf文件
[outgoing] exten=> _03.,1,Dial(SIP/${EXTEN}@flowroute,30)
当我以“星号显示同行”时,显示
CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description flowroute/84106639 216.115.69.144 a 5060 Unmonitored goip/goip 192.168.10.6 D a 5060 OK (6 ms)
当我访问我的SIP提供商的pipe理控制台时,它不显示任何注册的星号。 请在这方面指导
谢谢
configuration看起来很好,一见钟情。 继续尝试debugging您的设置:
如果第2步只显示传出,但不传入数据包,则可能有防火墙问题。
i)在sip.conf中使用qualify = yes,然后sip重新加载并运行命令sip show peers并检查状态是否正确。
ii)同时停止防火墙服务和检查状态。
首先,寄存器行应该在最后设置path,如:
register => myusername:mypassword:[email protected]/84106639
然后做一个SIP重新加载或服务星号重新启动 。 之后, sip show peers命令应该返回某种状态。 qualify = yes选项对于检查IP连接和SIP服务状态也很有用。
另外,拨号scheme中的[传出]规则应该是:
exten=> _03.,1,Dial(SIP/flowroute/${EXTEN},30)