<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 7:21 AM, Boris Kovalenko <span dir="ltr"><<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>></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'll tranfer the call to another context. E.g.:<br>
<br>
<action application="tranfer" data="../context1"/> (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>
<action application="tranfer" data="../context2"/> 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><?xml version="1.0" encoding="utf-8"?><br><!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML">http://wiki.freeswitch.org/wiki/Dialplan_XML</a> --><br>
<include><br> <context name="default"><br><br> <extension name="context_lookup"><br> <!-- you can yout put an empty condition here if you like --><br> <condition field="destination_number" expression="^.*$"/><br>
<action application="execute_extension" data="service_lookup XML context1"/><br> <action application="execute_extension" data="service_lookup XML context2"/><br>
<action application="execute_extension" data="service_lookup XML context3"/><br> <!-- do whatever you want here --><br> </condition><br> </extension><br><br>
</extension><br> <!-- do whatever you want here --><br> <extension><br><br> </context><br><br><br> <context name="context1"><br><br> <extension name="service_lookup" continue="true"><br>
<condition><br> <action application="log" data="INFO ######################## trying context1 ########################\n"/><br> </condition><br> </extension><br>
<br> <extension><br> <!-- do whatever you want here --><br> </extension><br><br> </context><br><br><br><br> <context name="context2"><br><br> <extension name="service_lookup" continue="true"><br>
<condition><br> <action application="log" data="INFO ######################## trying context2 ########################\n"/><br> </condition><br> </extension><br>
<br> <extension><br> <!-- do whatever you want here --><br> </extension><br><br> </context><br><br><br><br> <context name="default"><br><br> <extension name="service_lookup" continue="true"><br>
<condition><br> <action application="log" data="INFO ######################## trying context3 ########################\n"/><br> </condition><br> </extension><br>
<br> <extension><br> <!-- do whatever you want here --><br> </extension><br><br> </context><br><br></include><br><br><br>