Asterisk未注册到SIP提供商



我有一个干净的Debian VPS,我已经在上面安装了Asterisk。我有一个SIP帐户和VoIP提供商的号码。我正试图让我的星号注册到那个SIP帐户。然而,它总是超时。我对星号还很陌生,但我认为sip.conf是正确的。

我打开了调试,这是我每次都会得到的

---
Retransmitting #7 (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK72be2ee7
Max-Forwards: 70
From: <sip:USERNAME@sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME@sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18@127.0.1.1
CSeq: 103 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider@11.MY.VPS.IP:5060>
Content-Length: 0

---
REGISTER 10 headers, 0 lines
Reliably Transmitting (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK71b213aa
Max-Forwards: 70
From: <sip:USERNAME@sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME@sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18@127.0.1.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider@11.MY.VPS.IP:5060>
Content-Length: 0

---
[Jul 27 05:51:32] NOTICE[588]: chan_sip.c:15071 sip_reg_timeout:    -- Registration for 'USERNAME@sip-gw6.t3.se' timed out, trying again (Attempt #3)
Really destroying SIP dialog '4d010f6f689d1a1420696c025f07cb18@127.0.1.1' Method: REGISTER
Retransmitting #1 (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK71b213aa
Max-Forwards: 70
From: <sip:USERNAME@sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME@sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18@127.0.1.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider@11.MY.VPS.IP:5060>
Content-Length: 0

这是我的sip.conf

[general]
port=5060
bindaddr=0.0.0.0
qualify=no
disable=all
allow=alaw
allow=ulaw
dtmfmode=rfc2833
srvlookup=yes
register => USERNAME:PASSWORD@sip-gw6.t3.se/provider
[provider]
type=peer
insecure=port,invite
nat=no
canreinvite=no
authuser=USERNAME
defaultuser=USERNAME
fromuser=USERNAME
fromdomain=sip-gw6.t3.se
secret=PASSWORD
host=sip-gw6.t3.se
dtmfmodf=rfc2833
context=provider-in ;extensions.conf context for inbound calls
disallow=all
allow=ulaw
allow=alaw

我可以在电脑上使用Softphone进行注册。如有任何帮助,我们将不胜感激。我已经关注了x个指南,但星号从未成功注册,我不确定会出什么问题。它超时了,但sip.conf中的某些内容可能配置不正确。

原来我的ITSP阻止了某些IP范围。将我的VPS移动到另一个数据中心,获得了不同的IP范围,它开始工作。。。

相关内容

  • 没有找到相关文章

最新更新