[Asterisk-Users] SIP authentification? Any ideas?

Steve Murphy murf at e-tools.com
Mon May 23 09:29:36 MST 2005


Calling all SIP gurus--

I'm trying to register my asterisk to an ISP's SIP gateway.

I'm getting authentification errors. 

Here's the results of SIP DEBUG against it's IP.

[I've tweaked all confidential fields so as to protect the innocent
(namely, me).]

--- (9 headers 0 lines)---
Responding to challenge, registration to domain/host name myfavoriteisp
12 headers, 0 lines
Reliably Transmitting (no NAT) to 66.62.88.226:5060:
REGISTER sip:voip.myfavoriteisp.net SIP/2.0
Via: SIP/2.0/UDP 192.168.134.247:5060;branch=z9hG4bK32fe0b71
From: <sip:3073334444 at voip.myfavoriteisp.net>;tag=as133ed01a
To: <sip:3073334444 at voip.myfavoriteisp.net>
Call-ID: 145577bf359d45924b54880e68ea5541 at 192.168.134.247
CSeq: 146 REGISTER
User-Agent: Asterisk PBX
uthorization: Digest username="3073334444",
realm="voip.myfavoriteisp.net", algorithm=MD5,
uri="sip:voip.myfavoriteisp.net",
nonce="27a4f823b14f298bbbbbbbbbbbbbbbb",
response="6ccccccccccccccccccccccccccccccc", opaque="", qop="auth",
cnonce="abcdefab", nc=00000001
Expires: 120
Contact: <sip:s at 192.168.134.247>
Event: registration
Content-Length: 0


---
phone*CLI>
<-- SIP read from 45.123.29.97:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.134.247:5060;received=216.98.159.235;branch=z9hG4bK32fe0b71;rport=5060
From: <sip:3073334444 at voip.myfavoriteisp.net>;tag=as133ed01a
To: <sip:3073334444 at voip.myfavoriteisp.net>;tag=SD4g5g799-192.168.100.21
+1+0+ca2d1757
Call-ID: 145577bf359d45924b54880e68ea5541 at 192.168.134.247
CSeq: 146 REGISTER
WWW-Authenticate: Digest
realm="voip.myfavoriteisp.net",nonce="f6f7a243b39ace410a72f38aa6ca1a30",stale=false,algorithm=MD5,qop="auth"
Server: DC-SIP/2.0
Content-Length: 0


--- (9 headers 0 lines)---
May 23 09:56:39 NOTICE[9021]: chan_sip.c:8290 handle_response: Failed to
authenticate on REGISTER to
'<sip:3073334444 at voip.myfavoriteisp.net>;tag=as133ed01a'
Destroying call '145577bf359d45924b54880e68ea5541 at 192.168.134.247'


The above gets repeated over and over. I restart asterisk after I
comment out the register line to stop the cycling. Am I doing anything
obviously wrong?

Here's some hopefully relevant info:

sip.conf:

externip = 216.98.159.235

register => 3075689101:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb at tctwest

[tctwest]
realm=voip.tctwest.net
auth=3073334444#bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb at voip.myfavoriteisp.net
type=peer
context=workline
host=voip.myfavoriteisp.net
username=3073334444
md5secret=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb



The md5secret was formed as per the wiki, using md5sum...

murf



-- 
Steve Murphy <murf at e-tools.com>
Electronic Tools Company
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3317 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050523/522ad958/smime.bin


More information about the asterisk-users mailing list