[Asterisk-Users] Problems to register with SIP provider
Lars Fredriksson
lars at fredriksson.net
Tue Feb 17 13:42:00 MST 2004
Hi!
I have some problems registering with the Swedish SIP-provider Telia - I
have set it up so I can dial out (and it works almost all the time, not all
number works from Asterisk but I think it might some other problem).
The problem I have is to register it as a peer so I can receive calls.
I don't have an external IP to my Asterisk box - our provider just have one
IP that all who lives here around shares - but the SIP client provided from
Telia works (it's from www.hotsip.com I think)
Here comes some output from the registration process:
--<SNAP>--
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.17.10.245:5060;received=<my external
ip>;branch=z9hG4bK2f2850f1
To: <sip:<my no>@<ip-adress>>;tag=efdb5821d57a174ca1dfa78a4d59f8f5
From: <sip:<my no>@<ip-adress>>;tag=as369c798f
Call-ID: 3cd6e93924a8828d4623f79c1413239c at 192.168.5.1
CSeq: 105 REGISTER
Server: sapphire/1.6.1.0247
Content-Length: 0
WWW-Authenticate: Digest
qop="auth",stale=false,realm="telia.com",opaque="54b2d0e03a1dd26aa6412fb0d28
3f5de",nonce="MTA3NzA0OTc5NTI5MmUwNjY0ZmRiMThmMWFlMjZkZjg0ZWZiYWE0ODI5M2Fk"
9 headers, 0 lines
Feb 17 21:27:10 NOTICE[81926]: chan_sip.c:5002 handle_response: Failed to
authenticate on REGISTER to '<sip:<my no>@telia.com>;tag=as369c798f'
Retransmitting #3 (no NAT):
REGISTER sip:<ip adress> SIP/2.0
Via: SIP/2.0/UDP 172.17.10.245:5060;branch=z9hG4bK2f2850f1
From: <sip:<my no>@<ip-adress>>;tag=as369c798f
To: <sip:<my no>@<ip-adress>>
Call-ID: 3cd6e93924a8828d4623f79c1413239c at 192.168.5.1
CSeq: 107 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="<my no>@", realm="<ip-adress>",
algorithm="MD5", uri="sip:<ip-adress>",
nonce="MTA3NzA0OTc5NTI5MmUwNjY0ZmRiMThmMWFlMjZkZjg0ZWZiYWE0ODI5M2Fk",
response="4e291fd119ffbf30092eba755db48414"
Expires: 120
Contact: <sip:302 at 172.17.10.245>
Event: registration
Content-length: 0
--<SNIP>--
<ip-adress> = the IP to the proxy
<my no> = my telephone number (and also my username)
It looks quite strange - Like Digest username above="<my no>@" ans
uri="sip:<ip-adress>"
More information about the asterisk-users
mailing list