Asterisk没有注册到SIP提供商

时间:2016-07-27 10:01:33

标签: asterisk sip

我已经安装了Asterisk的干净的Debian VPS。 我有一个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中的某些内容未正确配置。

1 个答案:

答案 0 :(得分:0)

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