When you INVITE w/o sdp to 3pcc that's the correct behavior to 200ok with all the codecs.<br>The seg was fixed in trunk.<br>if you want to discuss it more come to irc cos it may be easier to communicate.<br><br><br><br>
<div class="gmail_quote">On Fri, Oct 23, 2009 at 7:24 AM, Claudiu Filip <span dir="ltr"><<a href="mailto:claudiu@globtel.ro">claudiu@globtel.ro</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;">
<br>
Hi guys,<br>
<br>
<br>
I have a few problems with invites w/o sdp.<br>
<br>
Given scenario:<br>
FS: global_codec_prefs=PCMU,PCMA,G729,G723,GSM<br>
A: G711 / G729 / G723<br>
B: G729 only<br>
<br>
Call from A->FS->B:<br>
<br>
1) A->FS invite w/o sdp<br>
2) FS->B invite w/ sdp (PCMU PCMA G729 G723 GSM, global_codec_prefs)<br>
3) B->FS 180 ring<br>
4) FS->A 180 ring<br>
5) B->FS 200 ok w/ sdp (G729)<br>
6) FS->A 200 ok w/ sdp (PCMU PCMA G729 G723 GSM, global_codec_prefs again!)<br>
7) A->FS ACK w/ sdp (PCMU)<br>
<br>
The result: TRANSCODING_NECESSARY, but G729 only passthrough, call cleared!<br>
Changing the global_codec_prefs to G729 PCMU PCMA, the leg A<>FS<br>
will be negotiated to G729 and it will work, but that's just a<br>
workaround. (another dirty fix was to add<br>
sofia_glue_tech_set_local_sdp(tech_pvt, b_sdp, 0);<br>
in mod_sofia.c line 482 code block 478-507, that will pass B sdp to A<br>
so the call will use the same codec on both legs and will be half<br>
proxied rtp from A goes directly to B, but if A has PCMU and B PCMA<br>
the call is dropped without transcoding)<br>
<br>
As long as leg FS<>B is already using G729, FS should advertise to A G729<br>
first, then all others.<br>
<br>
The right setup should be:<br>
1) A->FS invite w/o sdp<br>
2) FS->B invite w/ sdp (global_codec_prefs)<br>
3) B->FS 180 ring<br>
4) FS->A 180 ring<br>
5) B->FS 200 ok w/ sdp (codecX )<br>
6) FS->A 200 ok w/ sdp (codecX global_codec_prefs-codecX )<br>
7) A->FS ACK w/ sdp (codecX)<br>
<br>
<br>
More than that, if B has early media and step 3) is 183 ring w/ sdp,<br>
the result is<br>
"<br>
freeswitch: sofia_glue.c:2745: sofia_glue_tech_media: Assertion `r_sdp != ((void *)0)' failed.<br>
Aborted (core dumped)<br>
"<br>
but I'll post that on jira.<br>
<br>
<br>
<br>
<br>
<br>
Best regards,<br>
<br>
<br>
Claudiu Filip<br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>