Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not.<br>
<br>-MC<br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <span dir="ltr"><<a href="mailto:Gary.Chen@lightyear.net" target="_blank">Gary.Chen@lightyear.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person’s voicemail. Here is my part of dialplan:<u></u><u></u></p>
<p class="MsoNormal"> <extension name="Local_Extension1"><u></u><u></u></p><p class="MsoNormal"> <condition field="destination_number" expression="(^(5554447579$)"><u></u><u></u></p>
<p class="MsoNormal"> <action application="set" data="ignore_early_media=true"/><u></u><u></u></p><p class="MsoNormal"> <action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/<a href="mailto:5554447580@192.168.1.22" target="_blank">5554447580@192.168.1.22</a>|[leg_timeout=10]sofia/internal/<a href="mailto:5554447578@192.168.1.22" target="_blank">5554447578@192.168.1.22</a>"/><u></u><u></u></p>
<p class="MsoNormal"> </condition><u></u><u></u></p><p class="MsoNormal"> <condition><u></u><u></u></p><p class="MsoNormal"> Send call to voicemail …..<u></u><u></u></p><p class="MsoNormal"> </condition><u></u><u></u></p>
<p class="MsoNormal"> </extension><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If no answer on 5554447580, I want it to goto 5554447580’s voicemail. If no answer on 5554447578, I want it to goto 5554447578’s voicemail. But I could not find the variable which contains the last bridged number information.<u></u><u></u></p>
<p class="MsoNormal">How do I get the last dialed number in bridge app? <u></u><u></u></p><p class="MsoNormal">I tried to add variable in each leg like following, but it did not work:<u></u><u></u></p><p class="MsoNormal">
<action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/<a href="mailto:5554447580@192.168.1.22" target="_blank">5554447580@192.168.1.22</a>|[mailbox=7578,leg_timeout=10]sofia/internal/<a href="mailto:5554447578@192.168.1.22" target="_blank">5554447578@192.168.1.22</a>"/><span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p>
<span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Gary<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
</p></font></span></div></div></blockquote></div><br>