<p dir="ltr">I don&#39;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, &quot;admin&quot; &lt;<a href="mailto:admin@tedssupply.com">admin@tedssupply.com</a>&gt; 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">&lt;extension name=&quot;Local_Extension&quot;&gt;</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">   &lt;action application=&quot;export&quot; data=&quot;new_vm_digits=123&quot;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">   &lt;action application=&quot;bind_meta_app&quot; data=&quot;4 b s execute_extension::direct_to_vmail XML default&quot;/&gt;</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">&lt;/extension&gt;</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">&lt;extension name=&quot;call_direct_to_vmail&quot;&gt;</font><font face="Lucida Grande"></font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">   &lt;condition field=&quot;destination_number&quot; expression=&quot;^direct_to_vmail$&quot;&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">      &lt;action application=&quot;read&quot; data=&quot;4 4 &#39;tone-stream://%(10000,0,350,440)&#39; digits 30000 #&quot; /&gt;</font>    </p>
<br>      
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">      &lt;action application=&quot;log&quot; data=&quot;INFO Value of digits are [${digits}]&quot; /&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">      &lt;action application=&quot;log&quot; data=&quot;INFO Value of new_vm_digits before assignment  [${new_vm_digits}]&quot;/&gt;</font>    </p>
<br>      
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">      &lt;action application=&quot;set&quot; data=&quot;new_vm_digits=${digits}&quot;/&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">      &lt;action application=&quot;log&quot; data=&quot;INFO Value of new_vm_digits after assignment  [${new_vm_digits}]&quot;/&gt;</font>    </p>
<br>      
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">      &lt;action application=&quot;transfer&quot; data=&quot;-bleg vmail_now XML default&quot;/&gt;</font>    </p>
<br>      
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">   &lt;/condition&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">&lt;/extension&gt;</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">&lt;extension name=&quot;vmail_now&quot;&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">   &lt;condition field=&quot;destination_number&quot; expression=&quot;^vmail_now$&quot;&gt;</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">     &lt;action application=&quot;log&quot; data=&quot;INFO Value of new_vm_digits in vmail_now  [${new_vm_digits}]&quot;/&gt;</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">      &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${new_vm_digits}&quot;/&gt;</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">   &lt;/condition&gt;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">&lt;/extension&gt;</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 &quot;set&quot;, just before &quot;transfer&quot; - 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&#39;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&#39;t variables global without the &quot;%&quot;?  </font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font size="3" face="Lucida Grande">Doesn&#39;t the &quot;export&quot; 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 &quot;execute_extension&quot; 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>
      &gt;&gt;&gt; Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt; 6/10/2013 1:42 PM &gt;&gt;&gt;<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">&lt;<a href="mailto:admin@tedssupply.com" target="_blank">admin@tedssupply.com</a>&gt;</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&#39;s start simply: After two legs have been bridged, do you use &quot;transfer&quot; 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 &quot;API Commands&quot; 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>