[Freeswitch-users] mod_distributor, lua and loop

David Villasmil david.villasmil.work at gmail.com
Sat Feb 12 18:04:42 MSK 2011


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



More information about the FreeSWITCH-users mailing list