You might get some idea from here.
http://www.rfc-editor.org/rfc/rfc3665.txt 1. INVITE ---------------------------------------------------à 2. SIP/2.0 Unauthorized . . WWW-Authenticate: Digest realm="atlanta.example.com", qop="auth", nonce="ea9c8e88df84f1cec4341ae6cbe5a359", opaque="", stale=FALSE, algorithm=MD5 ß--------------------------------------- 3. INVITE .. . . Authorization: Digest username="bob", realm="atlanta.example.com" nonce="ea9c8e88df84f1cec4341ae6cbe5a359", opaque="", uri="sips:ss2.biloxi.example.com", -----------------------------------------------------à From: Siga [mailto:[email protected]] Sent: Tuesday, March 22, 2011 9:12 AM To: Uttam Sarkar (usarkar) Cc: [email protected] Subject: Re: [Sip-implementors] 401 Unauthorized message! I partly understood your answer. Can you please elaborate this may be with an example or some link on the internet where I can follow. Regards On Tue, Mar 22, 2011 at 1:35 PM, Uttam Sarkar (usarkar) <[email protected]> wrote: Please check you X-Lite configuration. It must have been configure with required authentication. So, your client must send INVITE with credentials to overcome 401 response. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Siga Sent: Tuesday, March 22, 2011 7:06 AM To: [email protected] Subject: [Sip-implementors] 401 Unauthorized message! Hi, I have been developing my SIP Client on a embedded system and I used Trixbox to act as a SIP Server. The transactions from my SIP Client to the Trixbox SIP Server were something like this as shown below......... SIP Client Trixbox(Server) INVITE ------------------------------------------------------------------------ ---------> 100 Trying <----------------------------------------------------------------------- ---------- 200 OK <----------------------------------------------------------------------- ---------- ACK ------------------------------------------------------------------------ ---------> MEDIA SESSION (RTP) <----------------------------------------------------------------------- ----------> BYE <----------------------------------------------------------------------- ---------- Now I planned to go a step ahead and planned to establish a connection to a soft-phone in my case I chose X-Lite. I added an extension for the X-Lite in my Trixbox so that the account for X-Lite is enabled. On the other hand when I try to connect my SIP Client with X-Lite, as soon as it receives INVITE from SIP Client, the X-Lite sends 401 Unauthorized message. Once i get this 401 message I again retransmit a re-Invite message back to the X-Lite but still it sends me 401 message. Can somebody let me know what is going on with my transactions here. Regards _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
