[Kamailio-Users] problem with relaying invite
Asim Riaz
ariaz78 at gmail.com
Mon Oct 13 12:41:46 CEST 2008
On Sun, Oct 12, 2008 at 3:52 PM, Alex Balashov <abalashov at evaristesys.com>wrote:
> Yep. What Iñaki said.
>
> In any sort of programming language-like runtime environment, which
> Kamailio script is, when you evaluate two actual statements in a
> disjunction rather than values holding return codes, those statements
> get executed right then and there.
>
> So, whether the first t_relay() ran successfully or not, the second one
> will be executed. This won't work unless you branch.
>
> Iñaki Baz Castillo wrote:
>
> > El Domingo, 12 de Octubre de 2008, Asim Riaz escribió:
> >> if(!t_relay("udp:third_proxy_1:5060") ||
> >> !t_relay("udp:third_proxy_2:5060")) {
> >
> > I think that this is not valid, you can not check the result of sending
> the
> > request to both destinations.
> >
> > If the first condition is false (!t_relay("udp:third_proxy_1:5060") this
> means
> > that a transaction has been correctly created. But after that you do a
> new
> > comparision:
> > !t_relay("udp:third_proxy_2:5060")
> > The transaction was already created in the first t_realy so you are
> trying to
> > do it again in a new t_relay, that is illegal.
> >
> >
> so then what is the posibility to send calls the first proxy if thats
> fail route to another one and so on ?
>
Thanks
Asim Riaz
>
>
> --
> Alex Balashov
> Evariste Systems
> Web : http://www.evaristesys.com/
> Tel : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
> Mobile : (+1) (706) 338-8599
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081013/1096c15c/attachment.htm
More information about the Users
mailing list