<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">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>