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@sipauth.deltathree.com>;tag=as3e96887d To: <sip:1510xxxxxxx@sipauth.deltathree.com> Call-ID: 1dfb33d406292f5327646eae0683e11b@66.121.81.25 CSeq: 106 REGISTER User-Agent: Asterisk PBX Expires: 160 Contact: <sip:1510xxxxxxx@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@sipauth.deltathree.com>;tag=as3e96887d To: <sip:1510xxxxxxx@sipauth.deltathree.com> Call-ID: 1dfb33d406292f5327646eae0683e11b@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@66.xxx.xxx.xxx> Event: registration Content-length: 0 Cheers SW
Andrew Thompson
2003-Dec-16 13:00 UTC
[Asterisk-Users] sip registration send out by asterisk
----- Original Message ----- From: "SW" <sathyaw@sbcglobal.net> To: "Asterisk-Users@Lists. Digium. Com" <asterisk-users@lists.digium.com> Sent: Tuesday, December 16, 2003 1:47 PM Subject: [Asterisk-Users] sip registration send out by asterisk> 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 destinationhost).> > 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@sipauth.deltathree.com>;tag=as3e96887d > To: <sip:1510xxxxxxx@sipauth.deltathree.com> > Call-ID: 1dfb33d406292f5327646eae0683e11b@66.121.81.25 > CSeq: 106 REGISTER > User-Agent: Asterisk PBX > Expires: 160 > Contact: <sip:1510xxxxxxx@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@sipauth.deltathree.com>;tag=as3e96887d > To: <sip:1510xxxxxxx@sipauth.deltathree.com> > Call-ID: 1dfb33d406292f5327646eae0683e11b@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@66.xxx.xxx.xxx> > Event: registration > Content-length: 0 > > Cheers > > SW >I could be wrong, but I believe there is a challenge token sent back with the Unauthorized message that is used to build the properly Authenticated request. ----- Andrew Thompson http://aktzero.com/ Your eyes are weary from staring at the CRT. You feel sleepy. Notice how restful it is to watch the cursor blink. Close your eyes. The opinions stated above are yours. You cannot imagine why you ever felt otherwise.