我已經安裝了Asterisk的乾淨的Debian VPS。 我有一個SIP帳戶和VoIP提供商的號碼。我試圖讓我的星號寄存器到該SIP帳戶。但是,它總是超時。我對星號相當陌生,但我認爲sip.conf是正確的。Asterisk沒有註冊到SIP提供商
我打開調試,這是我所得到的每一次
---
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:[email protected]>;tag=as5ace2218
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 103 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:[email protected]: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:[email protected]>;tag=as5ace2218
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:[email protected]:5060>
Content-Length: 0
---
[Jul 27 05:51:32] NOTICE[588]: chan_sip.c:15071 sip_reg_timeout: -- Registration for '[email protected]' timed out, trying again (Attempt #3)
Really destroying SIP dialog '[email protected]' 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:[email protected]>;tag=as5ace2218
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:[email protected]: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:[email protected]/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
我可以用我的電腦軟件電話精細註冊。任何幫助將不勝感激。我遵循了x的指南數量,但星號從未成功註冊,我不確定會出現什麼問題。它超時,但也許在sip.conf中配置不正確。
當您使用softphone並與Asterisk的註冊消息進行比較時,我會建議您捕獲註冊消息,並檢查有什麼不同。 – os11k
確保您的防火牆配置正確 - 我注意到您對提供商有「nat = no」。由於你的IP被混淆了,我不知道它是否是公有IP。 – MichelV69