Hello! Ough! Thanks, I'll try this way!
On Wed, Nov 10, 2010 at 7:21 AM, Boris Kovalenko <boris@tagnet.ru <mailto:boris@tagnet.ru>> wrote:
Hello!
No, Seven. I want tranfer the call to another context. If the call may be served by this context it must be served, else transfer should return to the same place and I'll tranfer the call to another context. E.g.:
<action application="tranfer" data="../context1"/> (if call may be served by context it must be served and stop processing, else return from context and do next tranfer) <action application="tranfer" data="../context2"/> and so on
all you need is to do is use execute_extension
<?xml version="1.0" encoding="utf-8"?> <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="default">
<extension name="context_lookup"> <!-- you can yout put an empty condition here if you like --> <condition field="destination_number" expression="^.*$"/> <action application="execute_extension" data="service_lookup XML context1"/> <action application="execute_extension" data="service_lookup XML context2"/> <action application="execute_extension" data="service_lookup XML context3"/> <!-- do whatever you want here --> </condition> </extension>
</extension> <!-- do whatever you want here --> <extension>
</context>
<context name="context1">
<extension name="service_lookup" continue="true"> <condition> <action application="log" data="INFO ######################## trying context1 ########################\n"/> </condition> </extension>
<extension> <!-- do whatever you want here --> </extension>
</context>
<context name="context2">
<extension name="service_lookup" continue="true"> <condition> <action application="log" data="INFO ######################## trying context2 ########################\n"/> </condition> </extension>
<extension> <!-- do whatever you want here --> </extension>
</context>
<context name="default">
<extension name="service_lookup" continue="true"> <condition> <action application="log" data="INFO ######################## trying context3 ########################\n"/> </condition> </extension>
<extension> <!-- do whatever you want here --> </extension>
</context>
</include>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ? ?????????, ????? ????????? ??? "??????" (3435) 494991