[Freeswitch-users] mod_distributor

David Villasmil david.villasmil.work at gmail.com
Thu Feb 10 23:15:52 MSK 2011


Hello Guys,

The was I use bridgeis like the following from a lua script:

session:execute("bridge","{sip_auth_username=1234,sip_auth_password=1234}sofia/external/5551234566 at 1.2.3.4:5060")

This is because i don't want tothe xml files, i want to do it programmatically.



Lets say i have 3 different gateways i want to use in a round-robin basis.

Normally, i would need to DEFINE 3 gateways in the xml profiles, then
define mod_distributor by creating a "list" and then use it like:

session:execute("bridge","sofia/external/${destination_number}@${distributor(distributor_list)}")

but i would like to define the "distributor_list" when creating the
bridge, is this possible?


Thanks all


David



More information about the FreeSWITCH-users mailing list