<!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 bgcolor="#ffffff" text="#000000">
Anthony,<br>
<br>
Yes, you are right, I was thinking strictly in terms of SIP gateways. I
guess that instead on the tag "gateway", one could use "channel"? For
example:<br>
<br>
&lt;action application="bridge"&gt;<br>
&nbsp;&nbsp; &lt;!-- set some kind of *bridge-specific* variable --&gt;<br>
&nbsp;&nbsp; &lt;channel order=1 data="sofia/gateway/gw-1/1$1"/&gt;<br>
&nbsp;&nbsp; &lt;channel order=1 data="sofia/gateway/gw-2/1$1"/&gt;<br>
&nbsp;&nbsp; &lt;channel order=2 data="sofia/gateway/gw-3/1$1"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- set some kind of *channel-specific* variable --&gt;<br>
&nbsp;&nbsp; &lt;/channel &gt;<br>
&nbsp;&nbsp; &lt;channel order=3 data="sofia/gateway/gw-4/1$1"/&gt;<br>
&lt;/action&gt;<br>
<br>
Would this be acceptable to you?<br>
<br>
Regarding the combinations of continue_on_fail and hangup_after bridge,
I'll give that a try although I suspect it will result in less
structured and harder to understand markup...<br>
<br>
Thanks!<br>
<br>
Carlos<br>
<br>
Anthony Minessale wrote:
<blockquote
 cite="mid:191c3a030908250745x61b5bc8eh43982d6bf4167ad7@mail.gmail.com"
 type="cite">This suggestion violates the scope boundaries.<br>
  <br>
gateways are specific concept to mod_sofia so a &lt;gateway&gt; tag in
&lt;action&gt; (part of agnostic xml dialplan)<br>
does not flow properly.<br>
  <br>
you can also use combinations of continue_on_fail and hangup_after
bridge so you can<br>
just put each bridge statement in it's own action.<br>
  <br>
  <br>
  <div class="gmail_quote">On Tue, Aug 25, 2009 at 9:06 AM, Carlos S.
Antunes <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:csa@nowthor.com">csa@nowthor.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Max,<br>
    <br>
I would like to see something similar too. For example, it would be<br>
wonderful if one could specify multiple gateways to try like this or<br>
something similar:<br>
    <br>
&lt;action application="bridge"&gt;<br>
&nbsp; &nbsp;&lt;!-- set some kind of *bridge-specific* parameter/variable --&gt;<br>
&nbsp; &nbsp;&lt;gateway order=1 data="sofia/gateway/gw-1/1$1"/&gt;<br>
&nbsp; &nbsp;&lt;gateway order=1 data="sofia/gateway/gw-2/1$1"/&gt;<br>
&nbsp; &nbsp;&lt;gateway order=2 data="sofia/gateway/gw-3/1$1"&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- set some kind of *gw-specific* parameter/variable --&gt;<br>
&nbsp; &nbsp;&lt;/gateway&gt;<br>
&nbsp; &nbsp;&lt;gateway order=3 data="sofia/gateway/gw-4/1$1"/&gt;<br>
&lt;/action&gt;<br>
    <br>
One would be able to avoid the "[]" and "{}" hacks and combine<br>
sequential and simultaneous trying of gateways.<br>
    <br>
What do the developers think of this?<br>
    <font color="#888888"><br>
Carlos<br>
    </font>
    <div>
    <div class="h5"><br>
Max Ivanov wrote:<br>
&gt; Nowdays I 'm forced to put multiple "|" to find first free
gateway, ie<br>
&gt;
sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000<br>
&gt; ,<br>
&gt; the whole sting is tooo long, is there any shorter way to write
same thing? Like<br>
&gt; "sofia/gateway/panas*/1000" will try all gateways matching the
pattern.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
    <br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Anthony Minessale II<br>
  <br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a moz-do-not-send="true"
 href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br>
  <br>
AIM: anthm<br>
  <a moz-do-not-send="true"
 href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
 href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
  <br>
FreeSWITCH Developer Conference<br>
  <a moz-do-not-send="true"
 href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
  <a moz-do-not-send="true"
 href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
  <a moz-do-not-send="true"
 href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
</body>
</html>