与SIP提供商通过代理星号对等

我试图让一个星号服务器连接到一个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 

我会改变你的注册命令注册到: proxy.voip.sapo.pt:5070 : proxy.voip.sapo.pt:5070