<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To do a proper auth header we need to challenge you so you have the right nonce. &nbsp;After you have the nonce you can generate the proper auth header.<div><br></div><div>Mike</div><div><br><div><div>On Nov 12, 2008, at 4:27 AM, Adeel Ansari wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I managed to get rid of that 406. Thanks, Ken. I omitted <i>,Accept Header</i>, this time.<br>Now stuck some elsewhere.<br><br>--------<br><b>send request:</b><br>INVITE <a href="mailto:sip%3A1002@192.168.253.101">sip:1002@192.168.253.101</a>;transport=udp SIP/2.0<br> Call-ID: <a href="mailto:ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101">ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101</a><br>CSeq: 1 INVITE<br>From: &lt;<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br> To: &lt;<a href="mailto:sip%3A1002@192.168.253.101">sip:1002@192.168.253.101</a>><br>Via: SIP/2.0/UDP 192.168.253.101:5073;branch=z9hG4bK1c1a8db63c4877132a77dacc5c931e99<br>Max-Forwards: 2<br>Contact: &lt;<a href="sip:1001@192.168.253.101:5073;transport=udp">sip:1001@192.168.253.101:5073;transport=udp</a>><br> Authorization: Digest username="1001",realm="<a href="http://192.168.253.101">192.168.253.101</a>",uri="sip:<a href="http://192.168.253.101:5060">192.168.253.101:5060</a>",algorithm=MD5,opaque="",nonce="9b96327c-b094-11dd-b776-c14fb4e838dd",response="b425dde41cc093676705f0415344cf22"<br> Content-Type: application/sdp<br>Content-Length: 133<br><br>v=0<br>o=1001 920370 921739 IN IP4 <a href="http://192.168.253.101">192.168.253.101</a><br>s=-<br>c=IN IP4 <a href="http://192.168.253.101">192.168.253.101</a><br> t=0 0<br>m=audio 8756 RTP/AVP <br>a=rtpmap:0 PCMU/8000<br><br><b>received response:</b><br>SIP/2.0 100 Trying<br>Via: SIP/2.0/UDP 192.168.253.101:5073;branch=z9hG4bK1c1a8db63c4877132a77dacc5c931e99<br>From: &lt;<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br> To: &lt;<a href="mailto:sip%3A1002@192.168.253.101">sip:1002@192.168.253.101</a>><br>Call-ID: <a href="mailto:ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101">ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101</a><br>CSeq: 1 INVITE<br> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9256M<br>Content-Length: 0<br><br><br><b>received response: </b><br>SIP/2.0 407 Proxy Authentication Required<br>Via: SIP/2.0/UDP 192.168.253.101:5073;branch=z9hG4bK1c1a8db63c4877132a77dacc5c931e99<br> From: &lt;<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br>To: &lt;<a href="mailto:sip%3A1002@192.168.253.101">sip:1002@192.168.253.101</a>>;tag=gB110DNg8jt5Q<br>Call-ID: <a href="mailto:ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101">ed05ada0e9aeb009a7b24eccd0678577@192.168.253.101</a><br> CSeq: 1 INVITE<br>User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9256M<br>Accept: application/sdp<br>Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,MESSAGE,SUBSCRIBE,NOTIFY,REFER,UPDATE,REGISTER,INFO,PUBLISH<br>Supported: 100rel,timer,precondition,path,replaces<br> Allow-Events: talk,presence,dialog,call-info,sla,include-session-description,presence.winfo,message-summary<br>Proxy-Authenticate: Digest realm="<a href="http://192.168.253.101">192.168.253.101</a>",nonce="a40afd98-b094-11dd-b776-c14fb4e838dd",algorithm=MD5,qop="auth"<br> Content-Length: 0<br>--------<br><br>Although, I have included the authorization thingy in the INVITE request. Any idea, why its like that?<br><br>Thanks in advance.<br><br></blockquote></div><br></div></body></html>