Lars Fredriksson
2004-Feb-17 13:42 UTC
[Asterisk-Users] Problems to register with SIP provider
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@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@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@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>"