<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] how to avoid many "|" in bridge application?</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>That still wouldn’t work... An action has 2 parameters application and data... And deeper then that and you have to start re-arranging all sorts of things...<BR>
<BR>
Continue_on_fail and hangup_after_bridge like tony pointed out are what you want if you don’t want to use the | delimiting ... I use these all the time with gateway counts > 10 just stacking additional actions for each bridge line<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>"Carlos S. Antunes" <csa@nowthor.com><BR>
<B>Organization: </B>Nowthor Corporation<BR>
<B>Reply-To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Date: </B>Tue, 25 Aug 2009 22:50:08 -0400<BR>
<B>To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Subject: </B>Re: [Freeswitch-users] how to avoid many "|" in bridge application?<BR>
<BR>
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>
<action application="bridge"><BR>
<!-- set some kind of *bridge-specific* variable --><BR>
<channel order=1 data="sofia/gateway/gw-1/1$1"/><BR>
<channel order=1 data="sofia/gateway/gw-2/1$1"/><BR>
<channel order=2 data="sofia/gateway/gw-3/1$1"><BR>
<!-- set some kind of *channel-specific* variable --><BR>
</channel ><BR>
<channel order=3 data="sofia/gateway/gw-4/1$1"/><BR>
</action><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: <BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>This suggestion violates the scope boundaries.<BR>
<BR>
gateways are specific concept to mod_sofia so a <gateway> tag in <action> (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>
<BR>
On Tue, Aug 25, 2009 at 9:06 AM, Carlos S. Antunes <csa@nowthor.com> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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>
<action application="bridge"><BR>
<!-- set some kind of *bridge-specific* parameter/variable --><BR>
<gateway order=1 data="sofia/gateway/gw-1/1$1"/><BR>
<gateway order=1 data="sofia/gateway/gw-2/1$1"/><BR>
<gateway order=2 data="sofia/gateway/gw-3/1$1"><BR>
<!-- set some kind of *gw-specific* parameter/variable --><BR>
</gateway><BR>
<gateway order=3 data="sofia/gateway/gw-4/1$1"/><BR>
</action><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>
<BR>
<FONT COLOR="#888888">Carlos<BR>
</FONT> <BR>
<BR>
<BR>
Max Ivanov wrote:<BR>
> Nowdays I 'm forced to put multiple "|" to find first free gateway, ie<BR>
> sofia/gateway/panas111/1000|sofia/gateway/panas112/1000|sofia/gateway/panas113/1000<BR>
> ,<BR>
> the whole sting is tooo long, is there any shorter way to write same thing? Like<BR>
> "sofia/gateway/panas*/1000" will try all gateways matching the pattern.<BR>
><BR>
> _______________________________________________<BR>
> FreeSWITCH-users mailing list<BR>
> FreeSWITCH-users@lists.freeswitch.org<BR>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
><BR>
><BR>
<BR>
_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
FreeSWITCH-users@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-- <BR>
Anthony Minessale II<BR>
<BR>
FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><BR>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><BR>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><BR>
<BR>
AIM: anthm<BR>
MSN:anthony_minessale@hotmail.com <a href="mailto:MSN%3Aanthony_minessale@hotmail.com"><mailto:MSN%3Aanthony_minessale@hotmail.com></a> <BR>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"><mailto:PAYPAL%3Aanthony.minessale@gmail.com></a> <BR>
IRC: irc.freenode.net <a href="http://irc.freenode.net"><http://irc.freenode.net></a> #freeswitch<BR>
<BR>
FreeSWITCH Developer Conference<BR>
sip:888@conference.freeswitch.org <a href="mailto:sip%3A888@conference.freeswitch.org"><mailto:sip%3A888@conference.freeswitch.org></a> <BR>
iax:guest@conference.freeswitch.org/888 <a href="http://iax:guest@conference.freeswitch.org/888"><http://iax:guest@conference.freeswitch.org/888></a> <BR>
googletalk:conf+888@conference.freeswitch.org <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"><mailto:googletalk%3Aconf%2B888@conference.freeswitch.org></a> <BR>
pstn:213-799-1400<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="4" WIDTH="90%"><BR>
_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
FreeSWITCH-users@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
FreeSWITCH-users@lists.freeswitch.org<BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>