<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello!<br>
<br>
Ough! Thanks, I'll try this way!<br>
<br>
<blockquote
cite="mid:AANLkTi=0m23x9qGfBhFP3ikGibwLJBvg=g7gLL47EP6_@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">On Wed, Nov 10, 2010 at 7:21 AM, Boris
Kovalenko <span dir="ltr"><<a moz-do-not-send="true"
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 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 moz-do-not-send="true"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
С уважением,
Борис Коваленко
ЗАО "Тагнет"
(3435) 494991
</pre>
</body>
</html>