Can you lay out all the possibilities for the B leg? What are all the scenarios that you have to account for? In other words, under what circumstances would *not* ignoring early media fail for you? If you pass the early media from the B leg to the A leg, what are the problems you would face?<div>
-MC<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 10:19 AM, Mathieu Lautram <span dir="ltr">&lt;<a href="mailto:lautram.mathieu@gmail.com">lautram.mathieu@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;">
No, David, It&#39;s not exactly the point.<div>I don&#39;t really want to use ignore_early_media, but this is the only way to know if the call is correctly connected (and not answered yet).</div><div>I can&#39;t use the several ringtones located in vars.xml because the B leg could be everywhere in the world, so there are too much possibilities. Also, sometimes B leg will have to hear additionnal informations ; not only a ringtone.</div>


<div>So with ESL, is there a way to know if the B leg is really ringing? Or perhaps without ESL? Maybe I&#39;m in the wrong way...</div><div><br></div><div>Thanks for all your answers</div><div><br></div><div>Best Regards<br>


<br><div class="gmail_quote">2011/7/7 David Ponzone <span dir="ltr">&lt;<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word">Because he wants to detect when the call is really answered.<div>But what I don&#39;t understand is that he should have that info with ESL.</div><div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">


<div><font face="&#39;Helvetica Neue&#39;"><font color="#1C00FF">David Ponzone  </font><font color="#000000" size="3"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>


<div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      01 74 03 18 97</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">gsm:   06 66 98 76 34</span></font></font></div>


<div><font face="&#39;Helvetica Neue&#39;"><br></font></div><div><font color="#1C00FF" face="&#39;Helvetica Neue&#39;">Service Client<span> </span></font><font face="&#39;Helvetica Neue&#39;"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="&#39;Helvetica Neue&#39;">eva</font></div>


<div><font color="#1C00FF" face="&#39;Helvetica Neue&#39;"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      0811 46 26 26</span></font></font></div>


<div><font face="&#39;Helvetica Neue&#39;" size="3"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)">  -   <span style="color:rgb(0, 34, 243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)">


<span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;color:rgb(192, 192, 192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div>


<div style="text-decoration:underline;text-align:justify"><font color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br>
</div>
<br><div><div>Le 07/07/2011 à 18:22, Michael Collins a écrit :</div><br><blockquote type="cite"><div><div></div><div><br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 4:27 AM, Mathieu Lautram <span dir="ltr">&lt;<a href="mailto:lautram.mathieu@gmail.com" target="_blank">lautram.mathieu@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">
I&#39;ve already tried those parameters and it doesn&#39;t work.<div>I can use ignore_early_medi=true and ringback=${us-ring} but what if my B leg is in France? Or in England?</div></blockquote><div>You can set the ringback to whatever you&#39;d like. The trick will be doing some sort of lookup on the dialed number to decide what the country is and then use the appropriate ringback tone. If you look in vars.xml we have quite a few countries in there. If any are missing you can always look them up and add them to vars.xml. There are plenty of people who can assist with the TGML if you can track down the frequencies and cadences for each country you need. From there a simple Lua script or even mod_lcr could be employed to handle the creation of the dialstring.</div>



<div><br></div><div>I suppose I should have asked this question earlier: why, exactly do you need to ignore early media? The reason I ask is that there might be an alternative way to address the problem you are trying to solve by ignoring early media.</div>



<div><br></div><div>Thanks,</div><div>MC</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>The schema is like that:</div><div><br>

</div><div>France:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>A leg have to hear the ringtone of France</div></blockquote>US:<blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div>A leg have to hear the ringtone of the US</div></blockquote>England:<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>A leg have to hear the ringtone of England</div>

</blockquote>Other countries:<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>same thing</div><div><br></div></blockquote>Have I to check the destination to apply the correct ringtone or is there an other solution to let A leg hear the ringtone of the correct country?<div>





Is Freeswitch allow me to know if the call to the B leg is successful for a &quot;connecting&quot; state (and not &quot;attempting&quot; state) with ignore_early_media set to false?</div><div><br></div><div>Best regards<br>





<div><div><div><div><br><div class="gmail_quote">2011/7/7 Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





try ignore_early_media=ring_ready or set ringback on a to ${us-ring}<br>
and ignore_early_media=true<br><br></blockquote></div></div></div></div></div></div></blockquote></div></div></div><div>
_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>


</div></blockquote></div><br></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>Mathieu LAUTRAM<br>Application developer<br><br>BJT Partners - FRANCE<br>+33 1 79 75 99 60<br>+33 6 61 59 07 25<br>
</div>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
<br></blockquote></div><br></div>