hello all!
i wanted to ask for advice on the topic, below a bit more formal description
case: have gsm-gateway box wtih several GSM-channels having sim-cards inserted. All cards are from same carrier. Each GSM-channel connected to fusionpbx as a gateway (separate SIP-credentials login as per SIM from provider). I want to avoid overusing first simcard in the pool but blend calls over few gateways (sims) automatically by certain method.
goal: find settings to use in "Outbound route" configuration (regex already covers all carrier prefixes) or other method
background: what i found on the net
- use gateway name generated with constructions like ${expr(randomize(&x);floor(random(1,2,&x)))}
but no luck as Fusion reFuse to find gateway by generated name (as i can see in logs) but instead accets only id like sofia/gateway/59b64fb2-9842-48d5-a7df-48389dbf05aa/$1
- use mod_distributor (somewhere on this forum probably) i.e. using https://freeswitch.org/confluence/display/FREESWITCH/mod_distributor
found and activated in FusionPBX GUI (modules) but sincerely have no idea how to make it working it further via Fusion
ideas: use smth like Kamalio or OpenSIPs for exposing bunch of gateways as a single gateway (via load balancing) to FusionPBX, but sound like too much effort for a simple task, also its better if i can still see which GW was chosen for each call in FusionPBX CDR as well as user can see it as well.
it feels like there should be something simple to put into Outbound route settings to randomize Gateways choise or setup mod_distributor but how...
Cheers! Alex
i wanted to ask for advice on the topic, below a bit more formal description
case: have gsm-gateway box wtih several GSM-channels having sim-cards inserted. All cards are from same carrier. Each GSM-channel connected to fusionpbx as a gateway (separate SIP-credentials login as per SIM from provider). I want to avoid overusing first simcard in the pool but blend calls over few gateways (sims) automatically by certain method.
goal: find settings to use in "Outbound route" configuration (regex already covers all carrier prefixes) or other method
background: what i found on the net
- use gateway name generated with constructions like ${expr(randomize(&x);floor(random(1,2,&x)))}
but no luck as Fusion reFuse to find gateway by generated name (as i can see in logs) but instead accets only id like sofia/gateway/59b64fb2-9842-48d5-a7df-48389dbf05aa/$1
- use mod_distributor (somewhere on this forum probably) i.e. using https://freeswitch.org/confluence/display/FREESWITCH/mod_distributor
found and activated in FusionPBX GUI (modules) but sincerely have no idea how to make it working it further via Fusion
ideas: use smth like Kamalio or OpenSIPs for exposing bunch of gateways as a single gateway (via load balancing) to FusionPBX, but sound like too much effort for a simple task, also its better if i can still see which GW was chosen for each call in FusionPBX CDR as well as user can see it as well.
it feels like there should be something simple to put into Outbound route settings to randomize Gateways choise or setup mod_distributor but how...
Cheers! Alex
Last edited: