<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">No, and I assumed this to be normal?  When one sip client places a<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">call to a second sip client on the same Freeswitch, I wouldn&#39;t expect<br></span><span style="font-family:arial,sans-serif;font-size:13px">the second sip client to provide some sort of ringing.  In fact,<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">shouldn&#39;t this ringing be happening while the B-leg is being<br></span><span style="font-family:arial,sans-serif;font-size:13px">contacted?  I don&#39;t see how it could be the one providing the sound.<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">In the example dialplan Freeswitch does provide this ringback, but in<br></span><span style="font-family:arial,sans-serif;font-size:13px">doing so it also negotiates a codec.  Hence I removed the ringback,<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">and suddenly my inherit_codec is providing the functionality expected<br></span><span style="font-family:arial,sans-serif;font-size:13px">minus the ring.</span></blockquote>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Usually in SIP calling A -&gt; FS -&gt; B</font></div><div><font face="arial, sans-serif"><br></font></div>

<div><font face="arial, sans-serif">Bridge sends INVITE to B. 100 Trying is sent back immediately to acknowledge. </font><span style="font-family:arial,sans-serif">A hears nothing.</span></div><div><br></div><div><font face="arial, sans-serif">Then you receive either 180 or 183/SDP:</font></div>

<div><font face="arial, sans-serif">- 180 Ringing indicates the phone is ringing but that A should generate its own ringback tone</font></div><div><font face="arial, sans-serif">- 183/SDP indicates that B is sending early media (usually containing a ringback tone), FS forwards this to A</font></div>

<div><br></div><div><font face="arial, sans-serif">Then you get 200 OK (answer) at which point you get 2-way audio setup.</font></div><div><font face="arial, sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif">So either A or B generates the ringback, FS usually does not need to.</span><font face="arial, sans-serif"><br>

</font></div><div><br></div><div><br></div><div><br></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div>

<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 September 2013 12:55, sangdrax8 <span dir="ltr">&lt;<a href="mailto:sangdrax8@gmail.com" target="_blank">sangdrax8@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; Just to clarify this message, that&#39;s the &#39;set&#39; application logging that the<br>
&gt; variable has been set on the channel, not anything suggesting that it is<br>
&gt; taking effect.<br>
<br>
</div>Correct, the variable has been set.<br>
<div class="im"><br>
&gt; Is the b-leg of the bridge not sending any early media ringback?<br>
<br>
</div>No, and I assumed this to be normal?  When one sip client places a<br>
call to a second sip client on the same Freeswitch, I wouldn&#39;t expect<br>
the second sip client to provide some sort of ringing.  In fact,<br>
shouldn&#39;t this ringing be happening while the B-leg is being<br>
contacted?  I don&#39;t see how it could be the one providing the sound.<br>
In the example dialplan Freeswitch does provide this ringback, but in<br>
doing so it also negotiates a codec.  Hence I removed the ringback,<br>
and suddenly my inherit_codec is providing the functionality expected<br>
minus the ring.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Sep 19, 2013 at 11:06 AM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt; It logs that it is set to true<br>
&gt;<br>
&gt;<br>
&gt; Just to clarify this message, that&#39;s the &#39;set&#39; application logging that the<br>
&gt; variable has been set on the channel, not anything suggesting that it is<br>
&gt; taking effect.<br>
&gt;<br>
&gt;&gt; I just can&#39;t have a phone system with no ringing for the calling party.<br>
&gt;<br>
&gt;<br>
&gt; Is the b-leg of the bridge not sending any early media ringback?<br>
&gt;<br>
&gt;<br>
&gt; On 19 September 2013 13:03, sangdrax8 &lt;<a href="mailto:sangdrax8@gmail.com">sangdrax8@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Yes, I did make sure that was activated in the profile.  the<br>
&gt;&gt; configuration that comes from the git repo has that turned on, and I<br>
&gt;&gt; am using the demo config directly from git.<br>
&gt;&gt;<br>
&gt;&gt; The demo dial plan doesn&#39;t include the inherit_codec=true line, so I<br>
&gt;&gt; did add that.  It logs that it is set to true, but freeswitch ends up<br>
&gt;&gt; transcoding.  If I remove the ringback, suddenly everything works as<br>
&gt;&gt; expected.  I just can&#39;t have a phone system with no ringing for the<br>
&gt;&gt; calling party.  Still it does indicate that inbound late negotiation<br>
&gt;&gt; and the inherit_codec are capable of doing the right thing.  Just when<br>
&gt;&gt; a ring back is added, it seems to fail to work.<br>
&gt;&gt;<br>
&gt;&gt; If I am configuring this correctly (only 1 change from the demo<br>
&gt;&gt; configuration provided) should I open a bug somewhere, or e-mail a dev<br>
&gt;&gt; list?  I didn&#39;t want to do either of these without someone confirming<br>
&gt;&gt; that my configuration part is correct and that it is a bug.<br>
&gt;&gt;<br>
&gt;&gt; &quot;Faithless is he, who says &#39;farewell&#39;, when the path darkens.&quot;<br>
&gt;&gt; &quot;you just keep on trying till you run out of cake&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Sep 18, 2013 at 7:31 PM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Inherit_codec requires late negotiation - is that enabled too? Otherwise<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; aleg codec has already been picked before hitting the dialplan.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Wednesday, September 18, 2013, sangdrax8 wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Did I explain a bit to much detail for the users list?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Does anyone use &quot;inherit_codec=true&quot; and have it working?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Sep 17, 2013 at 2:27 PM, sangdrax8 &lt;<a href="mailto:sangdrax8@gmail.com">sangdrax8@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; I pulled the latest freeswitch from git this morning, and am still<br>
&gt;&gt; &gt;&gt; &gt; having issues using inherit_codec=true.  It seems the only way I can<br>
&gt;&gt; &gt;&gt; &gt; get it to defer to the choice of the b-leg call is to remove the<br>
&gt;&gt; &gt;&gt; &gt; ringback, and thus the need for early media.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; My setup has 2 phones with the following codecs configured:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; phone1000:  g722, ulaw<br>
&gt;&gt; &gt;&gt; &gt; phone1001:  ulaw<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; My goal is to have a call initiated by phone1000 (a-leg) to defer the<br>
&gt;&gt; &gt;&gt; &gt; codec choice until phone1001 (b-leg) chooses one.  This would allow<br>
&gt;&gt; &gt;&gt; &gt; them to talk with no transcoding required by freeswitch.  With the<br>
&gt;&gt; &gt;&gt; &gt; following dial plan, this fails to work.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &lt;extension name=&quot;Local_Extension&quot;&gt;<br>
&gt;&gt; &gt;&gt; &gt;       &lt;condition field=&quot;destination_number&quot;<br>
&gt;&gt; &gt;&gt; &gt; expression=&quot;^(10[01][0-9])$&quot;&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;set&quot;<br>
&gt;&gt; &gt;&gt; &gt; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot; /&gt;<br>
&gt;&gt; &gt;&gt; &gt;         &lt;action application=&quot;bridge&quot;<br>
&gt;&gt; &gt;&gt; &gt; data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt;<br>
&gt;&gt; &gt;&gt; &gt;       &lt;/condition&gt;<br>
&gt;&gt; &gt;&gt; &gt; &lt;/extension&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; It does log that it is going to defer:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; 2013-09-17 13:15:10.956535 [DEBUG] mod_sofia.c:4542 [zrtp_passthru]<br>
&gt;&gt; &gt;&gt; &gt; Setting a-leg inherit_codec=true<br>
&gt;&gt; &gt;&gt; &gt; 2013-09-17 13:15:10.956535 [DEBUG] mod_sofia.c:4545 [zrtp_passthru]<br>
&gt;&gt; &gt;&gt; &gt; Setting b-leg<br>
&gt;&gt; &gt;&gt; &gt; absolute_codec_string=&#39;G722@8000h@20i@64000b,PCMU@8000h@20i@64000b&#39;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; then it tries to provide the ringback for the a-leg, and it<br>
&gt;&gt; &gt;&gt; &gt; negotiates<br>
&gt;&gt; &gt;&gt; &gt; to g722 since freeswitch supports that and it is the first match.<br>
&gt;&gt; &gt;&gt; &gt; Later when the b-leg is answered, it also negotiates, this time to<br>
&gt;&gt; &gt;&gt; &gt; ulaw as that is all b supports.  My call completes, but freeswitch<br>
&gt;&gt; &gt;&gt; &gt; has<br>
&gt;&gt; &gt;&gt; &gt; to transcode between the two.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; In an attempt to see inherit_codec work, I then commented out the<br>
&gt;&gt; &gt;&gt; &gt; ringback line from the above dialplan.  With only this one change,<br>
&gt;&gt; &gt;&gt; &gt; freeswitch now waits until the b-leg negotiation, and passes that<br>
&gt;&gt; &gt;&gt; &gt; back<br>
&gt;&gt; &gt;&gt; &gt; to the a-leg.  The call completes and both handsets are using ulaw<br>
&gt;&gt; &gt;&gt; &gt; and<br>
&gt;&gt; &gt;&gt; &gt; no transcoding is required.  The problem being that the calling party<br>
&gt;&gt; &gt;&gt; &gt; never gets a ring while waiting.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I can&#39;t imagine that the only way to use inherit_codec=true is with<br>
&gt;&gt; &gt;&gt; &gt; all ringing turned off.  Can someone tell me if there is an<br>
&gt;&gt; &gt;&gt; &gt; additional<br>
&gt;&gt; &gt;&gt; &gt; option I am missing?  All documentation I read seems to indicate that<br>
&gt;&gt; &gt;&gt; &gt; just adding &quot;inherit_codec=true&quot; will fix things, but even the<br>
&gt;&gt; &gt;&gt; &gt; default.xml provided as an example uses ringback and therefore fails.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _________________________________________________________________________<br>
&gt;&gt; &gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; &gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; &gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; &gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt;&gt; UNSUBSCRIBE:<a href="http://lists.free" target="_blank">http://lists.free</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _________________________________________________________________________<br>
&gt;&gt; &gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; &gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Official FreeSWITCH Sites<br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
</div></div></blockquote></div><br></div>