----- Original Message ----- From: "SW" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED] Digium. Com" <[EMAIL PROTECTED]> 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 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:[EMAIL PROTECTED]>;tag=as3e96887d > To: <sip:[EMAIL PROTECTED]> > Call-ID: [EMAIL PROTECTED] > CSeq: 106 REGISTER > User-Agent: Asterisk PBX > Expires: 160 > Contact: <sip:[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]>;tag=as3e96887d > To: <sip:[EMAIL PROTECTED]> > Call-ID: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED]> > 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. _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
