Hello All, from a lua script, i'm executing the following: session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."") but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work. I've trued like this: session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."") and session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"") and session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."") Still nothing... any thoughts? Thanks David
Oh I forgot, I also have: session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407") thanks David On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
I believe loop is specific to XML dialplan tags. Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad. Steve on iPhone On 12 Feb 2011, at 15:06, David Villasmil <david.villasmil.work@gmail.com> wrote:
Oh I forgot,
I also have:
session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
thanks
David
On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
_______________________________________________ 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
Thanks for answering Steve, That's exactly what i don't want to do, because i wanted to use the "weight" feature in mod_distributor... but i gues i will end up doing it :) Thanks David On Sat, Feb 12, 2011 at 6:26 PM, Steven Ayre <steveayre@gmail.com> wrote:
I believe loop is specific to XML dialplan tags.
Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.
Steve on iPhone
On 12 Feb 2011, at 15:06, David Villasmil <david.villasmil.work@gmail.com> wrote:
Oh I forgot,
I also have:
session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
thanks
David
On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
_______________________________________________ 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
_______________________________________________ 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
You are misunderstanding. He means do the line of lua code 3 times in a row. Or use a for loop with 1 line. On Feb 12, 2011 11:36 AM, "David Villasmil" <david.villasmil.work@gmail.com> wrote:
Thanks for answering Steve,
That's exactly what i don't want to do, because i wanted to use the "weight" feature in mod_distributor... but i gues i will end up doing it :)
Thanks
David
On Sat, Feb 12, 2011 at 6:26 PM, Steven Ayre <steveayre@gmail.com> wrote:
I believe loop is specific to XML dialplan tags.
Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.
Steve on iPhone
On 12 Feb 2011, at 15:06, David Villasmil <david.villasmil.work@gmail.com> wrote:
Oh I forgot,
I also have:
session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
thanks
David
On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
See Anthony's reply... that'll produce a different call to distributor each time you do the bridge - which'll possibly return a different gateway each time, depending on your weightings and which other calls are calling distributor. -Steve On 12 February 2011 17:35, David Villasmil <david.villasmil.work@gmail.com>wrote:
Thanks for answering Steve,
That's exactly what i don't want to do, because i wanted to use the "weight" feature in mod_distributor... but i gues i will end up doing it :)
Thanks
David
On Sat, Feb 12, 2011 at 6:26 PM, Steven Ayre <steveayre@gmail.com> wrote:
I believe loop is specific to XML dialplan tags.
Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.
Steve on iPhone
On 12 Feb 2011, at 15:06, David Villasmil < david.villasmil.work@gmail.com> wrote:
Oh I forgot,
I also have:
session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
thanks
David
On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
Hello, You guys mean something like the following? while session:answered()==fasle do session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407") session:execute("bridge","sofia/gateway/${distributor(" .. route_name.. ")}".. out_number) end mmm... don't know if i llike that. ;) David On Sat, Feb 12, 2011 at 9:24 PM, Steven Ayre <steveayre@gmail.com> wrote:
See Anthony's reply... that'll produce a different call to distributor each time you do the bridge - which'll possibly return a different gateway each time, depending on your weightings and which other calls are calling distributor.
-Steve
On 12 February 2011 17:35, David Villasmil <david.villasmil.work@gmail.com> wrote:
Thanks for answering Steve,
That's exactly what i don't want to do, because i wanted to use the "weight" feature in mod_distributor... but i gues i will end up doing it :)
Thanks
David
On Sat, Feb 12, 2011 at 6:26 PM, Steven Ayre <steveayre@gmail.com> wrote:
I believe loop is specific to XML dialplan tags.
Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.
Steve on iPhone
On 12 Feb 2011, at 15:06, David Villasmil <david.villasmil.work@gmail.com> wrote:
Oh I forgot,
I also have:
session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
thanks
David
On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello All,
from a lua script, i'm executing the following:
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
but the call doesn't falls to the next gw, i'm trying to add the loop="3" to the bridge but it doesn't work.
I've trued like this:
session:execute("set","loop=\"3\"") session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
and
session:execute("bridge","sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .." loop=\"3\"")
and
session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")
Still nothing...
any thoughts?
Thanks
David
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
participants (3)
-
Anthony Minessale
-
David Villasmil
-
Steven Ayre