Afternoon all, I’ve come across a small problem in which I can’t seem to get my SIP truck to actually connect.
I’m getting a connection error
Below is the error I receive in the asterisk log and the one below the SIP log. And I’ve listed my sip.conf and extension.conf.
Is there any chance someone could point me in the correct direction. Maybe I’m just being stupid and missing something simple.
Asterisk log
[Mar 2 15:39:09] NOTICE[1624] chan_sip.c: Failed to authenticate on REGISTER to 'username@sipgate.co.uk’ (Tries 3)
[Mar 2 15:39:28] NOTICE[1624] chan_sip.c: – Registration for 'username@sipgate.co.uk’ timed out, trying again (Attempt #5)
[Mar 2 15:39:29] NOTICE[1624] chan_sip.c: Failed to authenticate on REGISTER to 'username@sipgate.co.uk’ (Tries 3)
[Mar 2 15:39:48] NOTICE[1624] chan_sip.c: – Registration for 'username@sipgate.co.uk’ timed out, trying again (Attempt #9)
[Mar 2 15:39:49] NOTICE[1624] chan_sip.c: Failed to authenticate on REGISTER to 'username@sipgate.co.uk’ (Tries 3)
SIP log
<------------->
— (8 headers 0 lines) —
Responding to challenge, registration to domain/host name www.sipgate.co.uk
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 217.10.68.149:5060:
REGISTER sip:sipgate.co.uk SIP/2.0
Via: SIP/2.0/UDP 82.24.237.235:5060;branch=z9hG4bK46d434db;rport
Max-Forwards: 70
From: sip:username@sipgate.co.uk;tag=as6533a979
To: <sip: username@sipgate.co.uk>
Call-ID: 2153a90c4615b15e5543f28b646169a3@sipgate.co.uk
CSeq: 156 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username=“SIPID”, realm=“sipgate.co.uk”, algorithm=MD5, uri=“sip:sipgate.co.uk”, nonce=“UTIUc1EyE0d8p3txbUdnUT79Vvuev+XL”, response="c768079bd292b3e900a3416c3fc06f39"
Expires: 120
Contact: sip:s@82.24.2xx.xxx:5060
Content-Length: 0
<— SIP read from UDP:217.10.68.149:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 82.24.2xx.xxx:5060;branch=z9hG4bK46d434db;rport=5060
From: sip:joshua26061990@sipgate.co.uk;tag=as6533a979
To: sip:username@sipgate.co.uk;tag=86e53dd608d1c001e0b8060625977563.982d
Call-ID: 2153a90c4615b15e5543f28b646169a3@sipgate.co.uk
CSeq: 156 REGISTER
WWW-Authenticate: Digest realm=“sipgate.co.uk”, nonce="UTIUc1EyE0d8p3txbUdnUT79Vvuev+XL"
Content-Length: 0
SIP.CONF
context=fromInternet
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
transport=udp
tcpbindaddr=0.0.0.0
srvlookup=no
subscribecontext=default
allowexternaldomains=yes
allowguest=yes
allowsubscribe=yes
allowtransfer=yes
alwaysauthreject=no
autodomain=yes
bindaddr=0.0.0.0
bindport=5060
callevents=no
checkmwi=10
compactheaders=no
defaultexpiry=120
dumphistory=no
externrefresh=10
g726nonstandard=no
jbenable=no
jbforce=no
jblog=no
maxcallbitrate=384
maxexpiry=3600
minexpiry=60
mohinterpret=default
notifyringing=yes
pedantic=no
progressinband=never
promiscredir=no
realm=asterisk
recordhistory=no
registerattempts=0
registertimeout=20
relaxdtmf=no
sendrpid=no
sipdebug=yes
t1min=100
t38pt_udptl=no
tos_audio=none
tos_sip=none
tos_video=none
trustrpid=no
useragent=Asterisk PBX
usereqphone=no
videosupport=no
externip=82.24.2xx.xxx
nat=yes
localnet=192.168.x.xx
disallow=all
allow=alaw,ulaw,g729,gsm,slinear
-
[authentication]
register=SIPID:XXXXXXXX@sipgate.co.uk/SIPID -
[sipgate]
type=peer
insecure=invite
username=SIPID
fromuser=SIPID
fromdomain=sipgate.co.uk
secret=XCYYGBDE
host=sipgate.co.uk
qualify=yes
canreinvite=no
dtmfmode=rfc2833
disallow=all
context=from-sipgate
Extensions.conf
- [sipgate_in]
exten=SIPID,1,Dial(SIPID/SIPID)
exten=SIPID,n,Hangup - [sipgate_out]
exten=_X.,1,Set(josh(num)=SIPID)
exten=_X.,2,Dial(SIP/${EXTEN}@sipgate,30,trg)
exten=_X.,3,Hangup
Can anyone help me? I’ve been stuck and after problem after problem this is just what I need lol
I’m running debian squeezy on a Dreamplug with Asterisk1.8.20 running with asterisk gui.