我正在尝试让星号服务器连接到 SIP 提供商(提供 PSTN 发起和终止)。我一直在阅读权威指南,但它似乎没有涵盖通过代理联系提供商的情况。sip.conf 文档提到了该outboundproxy
领域,但我并没有取得太大的成功。
这是我当前的 sip.conf:
[general]
context=unauthenticated ; default context for incoming calls
allowguest=no ; disable unauthenticated calls
srvlookup=yes ; enabled DNS SRV record lookup on outbound calls
udpbindaddr=0.0.0.0 ; listen for UDP requests on all interfaces
tcpenable=no ; disable TCP support
outboundproxy = proxy.voip.sapo.pt
outboundproxyport= 5070
register => +351000000000:[email protected]/line1
[sapo]
type = peer
host = voip.sapo.pt
; Most providers won't authenticate when they send calls to you,
; so you need this line to just accept their calls.
insecure = invite
dtmfmode = rfc2833
username = +351000000000
secret = password
context = incoming
我不确定主机(在对等部分)应该是代理服务器还是原始服务器。注册行也是如此。
我从控制台获得的全部信息都是超时:
Reloading SIP
> doing dnsmgr_lookup for 'voip.sapo.pt'
[Dec 7 14:48:30] NOTICE[5192]: chan_sip.c:11722 sip_reg_timeout: -- Registration for '[email protected]' timed out, trying again
答案1
我会将您的注册命令更改为注册为:proxy.voip.sapo.pt:5070
。