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: <<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br>
To: <<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: <sip:1001@192.168.253.101:5073;transport=udp><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: <<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br>
To: <<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: <<a href="mailto:sip%3A1001@192.168.253.101">sip:1001@192.168.253.101</a>>;tag=9782<br>To: <<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><br><div class="gmail_quote">On Tue, Nov 11, 2008 at 5:58 PM, Adeel Ansari <span dir="ltr"><<a href="mailto:adeel.gnome@gmail.com">adeel.gnome@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Actually, I am just trying to build a minimal client/UA for Freeswitch. Do I need to go into 3pcc or something. I remember I did play with 3pcc but at that time I was implementing a sip stack and trying to come up with a minimal softswitch. Am I misunderstanding something?<br>
<br>It sounds like, I need to include codecs. I have tried the similar INVITE with a Voip provider directly, and send it with 0 content-length, and no sdp at all. In response I got whole lot of things like codec, and all. Therefore, I did the same for the Freeswtich too. However, I will try including codecs.<br>
<br>Thanks.<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Tue, Nov 11, 2008 at 5:38 PM, Ken Rice <span dir="ltr"><<a href="mailto:krice@suspicious.org" target="_blank">krice@suspicious.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<ol><li><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">you need to include an SDP or enable 3pcc support on the sip profile...
</span></font></font></li><li><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">the 3rd invite looks like it doesn't include any codecs (or atleast any I am familiar with)<br>
</span></font></font></li></ol><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
<hr size="3" width="95%" align="center"><b>From: </b>Adeel Ansari <<a href="mailto:adeel.gnome@gmail.com" target="_blank">adeel.gnome@gmail.com</a>><br>
<b>Reply-To: </b><<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Date: </b>Tue, 11 Nov 2008 17:29:50 +0800<br>
<b>To: </b><<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject: </b>[Freeswitch-users] Receiving 406 From Freeswitch....Any Clues?<div><br>
<br>
Hi, I am getting 406, no matter what. I have tried 3 different INVITEs.<br>
<br>
------<br>
</div><b>INVITE <a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ;transport=udp SIP/2.0<div>
<br>
Call-ID: <a href="mailto:ef1e16976ae32f0f011de0db2ab5804b@192.168.253.101" target="_blank">ef1e16976ae32f0f011de0db2ab5804b@192.168.253.101</a><br>
CSeq: 1 INVITE<br></div>
From: <<a href="mailto:sip%3A1001@192.168.253.101" target="_blank">sip:1001@192.168.253.101</a> <a href="mailto:sip%3A1001@192.168.253.101" target="_blank"><mailto:sip%3A1001@192.168.253.101></a> >;tag=5919<br>
To: <<a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ><div>
<br>
Via: SIP/2.0/UDP 192.168.253.101:7620;branch=z9hG4bKcfac6aaa7ee4a96457335bdad787cf31<br>
Max-Forwards: 2<br>
Contact: <sip:1001@192.168.253.101:7620;transport=udp><br>
Accept: audio/gsm,audio/x-gsm,text/plain<br>
Content-Length: 0<br>
------<br>
<br>
and I tried,<br>
<br>
-------<br></div>
INVITE <a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ;transport=udp SIP/2.0<div>
<br>
Call-ID: <a href="mailto:7a612541e08e583e0069c988c8323425@192.168.253.101" target="_blank">7a612541e08e583e0069c988c8323425@192.168.253.101</a><br>
CSeq: 1 INVITE<br></div>
From: <<a href="mailto:sip%3A1001@192.168.253.101" target="_blank">sip:1001@192.168.253.101</a> <a href="mailto:sip%3A1001@192.168.253.101" target="_blank"><mailto:sip%3A1001@192.168.253.101></a> >;tag=7387<br>
To: <<a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ><div>
<br>
Via: SIP/2.0/UDP 192.168.253.101:6453;branch=z9hG4bK7ccbc7f8e7bc0c4ac0483cca54a48489<br>
Max-Forwards: 2<br>
Contact: <sip:1001@192.168.253.101:6453;transport=udp><br>
Accept: audio/gsm,audio/x-gsm,text/plain<br></div>
Authorization: Digest username="1001",realm="<a href="http://192.168.253.101" target="_blank">192.168.253.101</a> <a href="http://192.168.253.101" target="_blank"><http://192.168.253.101></a> ",uri="sip:<a href="http://192.168.253.101:5060" target="_blank">192.168.253.101:5060</a> <a href="http://192.168.253.101:5060" target="_blank"><http://192.168.253.101:5060></a> ",algorithm=MD5,opaque="",nonce="b1f5e8d8-afd0-11dd-ad17-f7c4d6a988fd",response="2c70f260de2292d9e01406bdd1f90e28"<div>
<br>
Content-Length: 0<br>
-------<br>
<br>
and then I tried,<br>
<br>
------<br></div>
INVITE <a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ;transport=udp SIP/2.0<div>
<br>
Call-ID: <a href="mailto:12e7c3af8d94ba048789f75e7036ea74@192.168.253.101" target="_blank">12e7c3af8d94ba048789f75e7036ea74@192.168.253.101</a><br>
CSeq: 1 INVITE<br></div>
From: <<a href="mailto:sip%3A1001@192.168.253.101" target="_blank">sip:1001@192.168.253.101</a> <a href="mailto:sip%3A1001@192.168.253.101" target="_blank"><mailto:sip%3A1001@192.168.253.101></a> >;tag=6309<br>
To: <<a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> ><div>
<br>
Via: SIP/2.0/UDP 192.168.253.101:4487;branch=z9hG4bK3282799ef902293b7a4795d1cc3d78bd<br>
Max-Forwards: 2<br>
Contact: <sip:1001@192.168.253.101:4487;transport=udp><br>
Accept: audio/gsm,audio/x-gsm,text/plain<br></div>
Authorization: Digest username="1001",realm="<a href="http://192.168.253.101" target="_blank">192.168.253.101</a> <a href="http://192.168.253.101" target="_blank"><http://192.168.253.101></a> ",uri="sip:<a href="http://192.168.253.101:5060" target="_blank">192.168.253.101:5060</a> <a href="http://192.168.253.101:5060" target="_blank"><http://192.168.253.101:5060></a> ",algorithm=MD5,opaque="",nonce="85c12b22-afd2-11dd-ad17-f7c4d6a988fd",response="c8d6083112fc68b6e53d7e5b38e990eb"<div>
<br>
Content-Type: application/sdp<br>
Content-Length: 111<br>
<br>
v=0<br></div>
o=1001 279445 280814 IN IP4 <a href="http://192.168.253.101" target="_blank">192.168.253.101</a> <a href="http://192.168.253.101" target="_blank"><http://192.168.253.101></a> <br>
s=-<br>
c=IN IP4 <a href="http://192.168.253.101" target="_blank">192.168.253.101</a> <a href="http://192.168.253.101" target="_blank"><http://192.168.253.101></a> <br><div>
t=0 0<br>
m=audio 1436 RTP/AVP <br>
------<br>
<br>
<br>
But I always receive the same 406. Any idea. The response I am receiving from Freeswitch is,<br>
<br>
-------<br>
received response : SIP/2.0 406 Not Acceptable<br>
Via: SIP/2.0/UDP 192.168.253.101:4487;branch=z9hG4bK3282799ef902293b7a4795d1cc3d78bd<br></div>
From: <<a href="mailto:sip%3A1001@192.168.253.101" target="_blank">sip:1001@192.168.253.101</a> <a href="mailto:sip%3A1001@192.168.253.101" target="_blank"><mailto:sip%3A1001@192.168.253.101></a> >;tag=6309<br>
To: <<a href="mailto:sip%3A1002@192.168.253.101" target="_blank">sip:1002@192.168.253.101</a> <a href="mailto:sip%3A1002@192.168.253.101" target="_blank"><mailto:sip%3A1002@192.168.253.101></a> >;tag=H1DH6S41c0U2N<div>
<br>
Call-ID: <a href="mailto:12e7c3af8d94ba048789f75e7036ea74@192.168.253.101" target="_blank">12e7c3af8d94ba048789f75e7036ea74@192.168.253.101</a><br>
CSeq: 1 INVITE<br>
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9256M<br>
Accept: application/sdp<br>
Accept-Encoding: <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>
Content-Length: 0<br>
-------<br>
<br>
Thanks.<br>
<br>
-- <br>
Best,<br>
Adeel Ansari<br>
<br>
<a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br>
<br>
</div><hr size="3" width="95%" align="center"></b></span></font><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;">_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</span></font></font>
</div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari">http://www.linkedin.com/in/adeelansari</a><br>