<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 7:21 AM, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello!<br>
<br>
     No, Seven. I want tranfer the call to another context. If the call<br>
may be served by this context it must be served, else transfer should<br>
return to the same place and I&#39;ll tranfer the call to another context. E.g.:<br>
<br>
&lt;action application=&quot;tranfer&quot; data=&quot;../context1&quot;/&gt; (if call may be<br>
served by context it must be served and stop processing, else return<br>
from context and do next tranfer)<br>
&lt;action application=&quot;tranfer&quot; data=&quot;../context2&quot;/&gt; and so on<br>
<div><div></div><div class="h5"><br></div></div></blockquote></div><br><br>all you need is to do is use execute_extension<br><br><br><br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML">http://wiki.freeswitch.org/wiki/Dialplan_XML</a> --&gt;<br>
&lt;include&gt;<br>  &lt;context name=&quot;default&quot;&gt;<br><br>    &lt;extension name=&quot;context_lookup&quot;&gt;<br>      &lt;!-- you can yout put an empty condition here if you like --&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot;/&gt;<br>
        &lt;action application=&quot;execute_extension&quot; data=&quot;service_lookup XML context1&quot;/&gt;<br>        &lt;action application=&quot;execute_extension&quot; data=&quot;service_lookup XML context2&quot;/&gt;<br>
        &lt;action application=&quot;execute_extension&quot; data=&quot;service_lookup XML context3&quot;/&gt;<br>        &lt;!-- do whatever you want here --&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>
    &lt;/extension&gt;<br>      &lt;!-- do whatever you want here --&gt;<br>    &lt;extension&gt;<br><br>  &lt;/context&gt;<br><br><br>  &lt;context name=&quot;context1&quot;&gt;<br><br>    &lt;extension name=&quot;service_lookup&quot; continue=&quot;true&quot;&gt;<br>
      &lt;condition&gt;<br>        &lt;action application=&quot;log&quot; data=&quot;INFO ######################## trying context1 ########################\n&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>
<br>    &lt;extension&gt;<br>      &lt;!-- do whatever you want here --&gt;<br>    &lt;/extension&gt;<br><br>  &lt;/context&gt;<br><br><br><br>  &lt;context name=&quot;context2&quot;&gt;<br><br>    &lt;extension name=&quot;service_lookup&quot; continue=&quot;true&quot;&gt;<br>
      &lt;condition&gt;<br>        &lt;action application=&quot;log&quot; data=&quot;INFO ######################## trying context2 ########################\n&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>
<br>    &lt;extension&gt;<br>      &lt;!-- do whatever you want here --&gt;<br>    &lt;/extension&gt;<br><br>  &lt;/context&gt;<br><br><br><br>  &lt;context name=&quot;default&quot;&gt;<br><br>    &lt;extension name=&quot;service_lookup&quot; continue=&quot;true&quot;&gt;<br>
      &lt;condition&gt;<br>        &lt;action application=&quot;log&quot; data=&quot;INFO ######################## trying context3 ########################\n&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>
<br>    &lt;extension&gt;<br>      &lt;!-- do whatever you want here --&gt;<br>    &lt;/extension&gt;<br><br>  &lt;/context&gt;<br><br>&lt;/include&gt;<br><br><br>