Yeah, because you're probably doing that on the A leg and not the B leg. The variable is only set on the B leg. At what point in the call flow do you need the value? Do you need it after the call for CDR processing?<br>
-MC<br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 10:51 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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> I tried to use app=log or app=info to look at the voicemail variable and it does not exist or never set it up.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Wednesday, June 27, 2012 1:42 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] How to get last bridged call leg phone number?<u></u><u></u></span></p></div><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Ok, sounds good. My next question is this: what do you see in the "mailbox" chan var that you added to the call legs? Are you actually looking in the B leg CDR for this value?<br>
<br>-MC<u></u><u></u></p><div><p class="MsoNormal">On Wed, Jun 27, 2012 at 10:26 AM, Gary Chen <<a href="mailto:Gary.Chen@lightyear.net" target="_blank">Gary.Chen@lightyear.net</a>> wrote:<u></u><u></u></p><div><div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If I remove </span>ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail.<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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Wednesday, June 27, 2012 12:46 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] How to get last bridged call leg phone number?</span><u></u><u></u></p></div><div><div><p class="MsoNormal">
<u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">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<u></u><u></u></p><div><p class="MsoNormal">On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <<a href="mailto:Gary.Chen@lightyear.net" target="_blank">Gary.Chen@lightyear.net</a>> wrote:<u></u><u></u></p><div><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"><span style="color:#888888"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#888888">Gary</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#888888"> </span><br></p></font></span></div></div></div></div></div></div></div></div></div></div></blockquote>
</div><br>