<p dir="ltr">I don't think you need to use loopback anymore but I could be wrong.</p>
<p dir="ltr">- BDF</p>
<div class="gmail_quote">On Jun 11, 2013 8:14 AM, "admin" <<a href="mailto:admin@tedssupply.com">admin@tedssupply.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="margin-right:4px;margin-left:4px;margin-bottom:1px;margin-top:4px;line-height:normal;font-variant:normal">
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Thanks for the help Michael, but I am still missing a tiny thing somewhere..</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Let me illustrate as briefly as possible by snipping where possible. Local_Extension is as installed except for:</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"><extension name="Local_Extension"></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> .</font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> .</font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <action application="export" data="new_vm_digits=123"</font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <action application="bind_meta_app" data="4 b s execute_extension::direct_to_vmail XML default"/></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> .</font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"></extension></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">This matches in an added extension call_direct_to_vmail</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"><extension name="call_direct_to_vmail"></font><font face="Lucida Grande"></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <condition field="destination_number" expression="^direct_to_vmail$"></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <action application="read" data="4 4 'tone-stream://%(10000,0,350,440)' digits 30000 #" /></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <action application="log" data="INFO Value of digits are [${digits}]" /></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <action application="log" data="INFO Value of new_vm_digits before assignment [${new_vm_digits}]"/></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> <action application="set" data="new_vm_digits=${digits}"/></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <action application="log" data="INFO Value of new_vm_digits after assignment [${new_vm_digits}]"/></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <action application="transfer" data="-bleg vmail_now XML default"/></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> </condition></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"></extension></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">This transfers to vmail_now:</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"><extension name="vmail_now"></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <condition field="destination_number" expression="^vmail_now$"></font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <action application="log" data="INFO Value of new_vm_digits in vmail_now [${new_vm_digits}]"/></font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${new_vm_digits}"/></font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> </condition></font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"></extension></font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Logged entries show:</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Local_extension assigns new_vm_digits = 123</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande"> In direct_to_vmail the value of new_vm_digits = 123 BEFORE reassignment </font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> In direct_to_vmail the value of new_vm_digits = 1005 after "set", just before "transfer" - number I entered</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> In vmail_now the value of new_vm_digits = 123</font> </p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3"> In vmail_now [WARNING] mod_voicemail.c:3310 Can't find user [123@xxx.xxx.xxx.xxx] - as expected</font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">I am missing the scope of new_vm_digits, but where? </font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Aren't variables global without the "%"? </font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Doesn't the "export" in Local_Extension scope into all following legs? </font> </p>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">Docs say that "execute_extension" is in scope. </font> </p>
<br>
<p style="margin-top:0;margin-bottom:0">
<font size="3" face="Lucida Grande">The -bleg bothers me also... but thats another day!</font> </p>
<br> <br>
<p style="margin-top:0;margin-bottom:0">
<br>
<br>
>>> Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>> 6/10/2013 1:42 PM >>><br> </p>
<div dir="ltr">
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<div class="gmail_extra">
<p style="margin-top:0;margin-bottom:0">
<br>
<br>
</p>
<div class="gmail_quote">
<p style="margin-top:0;margin-bottom:0">
On Mon, Jun 10, 2013 at 10:31 AM, admin <span dir="ltr"><<a href="mailto:admin@tedssupply.com" target="_blank">admin@tedssupply.com</a>></span> wrote:<br> </p>
<blockquote class="gmail_quote" style="margin-right:0;margin-left:0;margin-bottom:0;border-left:1px #ccc solid;margin-top:0;padding-left:0">
<div style="margin-right:4px;margin-left:4px;margin-bottom:1px;margin-top:4px;line-height:normal;font-variant:normal">
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3">Thanks Cal, first time on any mailing list and with lack of sleep I got a bit long winded...</font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3">I am assuming the subject will create the threading...</font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3">I also snipped all previous for brevity.</font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3">Let me know if this is not OK.</font> </p>
<p style="margin-top:0;margin-bottom:0">
<br>
</p>
<p style="margin-top:0;margin-bottom:0">
<font face="Lucida Grande" size="3">Let's start simply: After two legs have been bridged, do you use "transfer" to unbridge the calls and then send one of them somewhere else (this is the greater portion of my question) ?</font> </p>
</div>
</blockquote>
<div>
<p style="margin-top:0;margin-bottom:0">
You can use FS command line APIs uuid_transfer or uuid_dual_transfer to accomplish this. See the "API Commands" link on the Wiki navigation panel to see all the API commands in alphabetical order. Try those out and let us know if you have any questions.<br>
<br> </p>
</div>
<div>
<p style="margin-top:0;margin-bottom:0">
-MC<br clear="all"> </p>
</div>
</div>
<p style="margin-top:0;margin-bottom:0">
<br>
--<br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</p>
</div>
</div>
</div>
<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>
<br></blockquote></div>