No.
The reason it must be defined before the bridge is it keeps state information inbetween the bridges so it knows how many times the current node has been returned, before moving onto returning the next node. That's how the weighting's implemented.
-Steve
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@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
_______________________________________________
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