[Asterisk-Users] sip registration send out by asterisk

SW sathyaw at sbcglobal.net
Tue Dec 16 11:47:30 MST 2003


Hi friends,

I've noticed that first register message sent by * always get rejected by
the destination sip server. Then * sends a second registration message (
with Autherization section, and that get accepted by the destination host).

Why is this ?

Isnt there a way to tell * to send with Autothorization message the first
attempt ?


Asterisk sends this first

9 headers, 0 lines
11 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sipauth.deltathree.com SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xxx.xxx:5060;branch=z9hG4bK6b37ba4a
From: <sip:1510xxxxxxx at sipauth.deltathree.com>;tag=as3e96887d
To: <sip:1510xxxxxxx at sipauth.deltathree.com>
Call-ID: 1dfb33d406292f5327646eae0683e11b at 66.121.81.25
CSeq: 106 REGISTER
User-Agent: Asterisk PBX
Expires: 160
Contact: <sip:1510xxxxxxx at 66.xxx.xxx.xxx>
Event: registration
Content-length: 0


After 401 unautorized from iconnect asterisk sends this

8 headers, 0 lines
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:sipauth.deltathree.com SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xxx.xxx:5060;branch=z9hG4bK6b37ba4a
From: <sip:1510xxxxxxx at sipauth.deltathree.com>;tag=as3e96887d
To: <sip:1510xxxxxxx at sipauth.deltathree.com>
Call-ID: 1dfb33d406292f5327646eae0683e11b at 66.xxx.xxx.xxx
CSeq: 107 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="1510xxxxxxx", realm="deltathree.com",
algorithm="MD5", uri="sip:sipauth.deltathree.com", nonce="3fdecbbf",
response="49558c95bc3383bcbf76a26376e1614a"
Expires: 160
Contact: <sip:1510xxxxxxx at 66.xxx.xxx.xxx>
Event: registration
Content-length: 0

Cheers

SW





More information about the asterisk-users mailing list