[Freeswitch-users] mod_distributor

Steven Ayre steveayre at gmail.com
Fri Feb 11 00:09:12 MSK 2011


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



On 10 February 2011 20:15, David Villasmil
<david.villasmil.work at gmail.com>wrote:

> 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
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110210/1b247827/attachment.html 


More information about the FreeSWITCH-users mailing list