<div dir="ltr">You can use lua script for generate dialstring<div>example</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;include&gt;</div><div>   &lt;user id=&quot;2494&quot;&gt;</div><div>      &lt;params&gt;</div><div>         &lt;param name=&quot;dial-string&quot; value=&quot;${lua(dialstring.lua ${dialed_user}@${dialed_domain})}&quot;/&gt;<br></div><div>         &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;</div><div>         &lt;param name=&quot;vm-enabled&quot; value=&quot;false&quot;/&gt;</div><div>      &lt;/params&gt;</div><div>      &lt;variables&gt;</div><div>         &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Extension 2494&quot;/&gt;<br></div><div>         &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;Extension 2494&quot;/&gt;</div><div>      &lt;/variables&gt;</div><div>   &lt;/user&gt;</div><div>&lt;/include&gt;</div><div><br></div><div>To execute transfer from directory please use my PR</div><div><br></div><div><a href="https://freeswitch.org/jira/browse/FS-8209">https://freeswitch.org/jira/browse/FS-8209</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 1, 2015 at 10:55 AM, huseyin kalyoncu <span dir="ltr">&lt;<a href="mailto:hkalyoncu@gmail.com" target="_blank">hkalyoncu@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"><div dir="ltr">Hello Tristan<div><br></div><div>i checked them. but loopback is the better choice for us. </div><div>thanks for your reply<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>huseyin</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 1, 2015 at 1:24 AM, Tristan Mahé <span dir="ltr">&lt;<a href="mailto:t.mahe@b-and-c.net" target="_blank">t.mahe@b-and-c.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Maybe a per leg execute_on_ring or api_on_* ?<br>
    <br>
    ie data=[api_on_...=bla]firsturi,[api_on_...=blb]seconduri...<div><div><br>
    <br>
    <div>On 11/28/2015 09:19 AM, huseyin
      kalyoncu wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">i think <b>loopback</b> will do the job
        <div><br>
        </div>
        <div>&lt;action application=&quot;bridge&quot; data=&quot;loopback/number&quot;/&gt;</div>
        <div>instead of </div>
        <div>&lt;action application=&quot;bridge&quot;
          data=&quot;sofia/profile/number&quot;/&gt;</div>
        <div><br>
        </div>
        <div>sorry for the noise</div>
        <div><br>
        </div>
        <div>huseyin</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sat, Nov 28, 2015 at 6:08 PM,
          huseyin kalyoncu <span dir="ltr">&lt;<a href="mailto:hkalyoncu@gmail.com" target="_blank"></a><a href="mailto:hkalyoncu@gmail.com" target="_blank">hkalyoncu@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">
            <div dir="ltr"><font face="verdana, sans-serif">Hello<br>
                <br>
                Lets say i have a multiple bridge line like this:<br>
                <br>
                &lt;action application=&quot;bridge&quot;
data=&quot;sofia/some_interface/some_uri1,sofia/some_interface/some_uri2,sofia/some_interface/some_uri3&quot;/&gt;<br>
                <br>
                or a single bridge:<br>
                <br>
                &lt;action application=&quot;bridge&quot;
                data=&quot;sofia/some_interface/some_uri1&quot;/&gt;<br>
                <br>
                Is there any way to execute different dialplan code for
                each bridge string<br>
                before directing call to endpoint?<br>
                <br>
                i tried to set  force_transfer_context for even single
                bridge string like in given example on this page: <br>
                <br>
                <a href="https://wiki.freeswitch.org/wiki/Force_transfer_context_example" target="_blank">https://wiki.freeswitch.org/wiki/Force_transfer_context_example</a></font><br>
              <div><font face="verdana, sans-serif"><br>
                </font></div>
              <div><font face="verdana, sans-serif">But it did not
                  worked. It did not transfer call to given context as
                  expected.</font></div>
              <div><font face="verdana, sans-serif">Instead, it executed
                  bridge line directly.</font></div>
              <div><font face="verdana, sans-serif"><br>
                </font></div>
              <div><font face="verdana, sans-serif">I can use transfer
                  instead of bridge but it only works for single
                  extension not for multiple extensions.</font></div>
              <div><span style="font-family:verdana,sans-serif"><br>
                </span></div>
              <div><span style="font-family:verdana,sans-serif">Is there
                  any way to achieve this? </span></div>
              <div><span style="font-family:verdana,sans-serif"><br>
                </span></div>
              <div><span style="font-family:verdana,sans-serif">Thanks,</span></div>
              <div><span style="font-family:verdana,sans-serif"><br>
                </span></div>
              <div><span style="font-family:verdana,sans-serif">Huseyin</span></div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>