Combination of distributor and limit_execute (or limit)

Status
Not open for further replies.

Huan

New Member
Mar 23, 2017
11
0
1
33
The situation is we have 3 gateways for outbound calls. And each gateway can only have 1 simultaneous outbound call and we would like to use each gateway in a balanced (distributed) way.

I tested this with one gateway with max 1 and type limit_execute and this works like:
hash outbound ${gw_id} 1 bridge sofia/gateway/${gw_id}/${destination_number}

I created a list in distributor.conf.xml with 2 gateway ids. And I tried to use one of them like:
var_gw=${distributor(name_of_list)}
hash outbound ${var_gw} 1 bridge sofia/gateway/${var_gw}/${destination_number}

I can call with 2 phones with different gateways. After I call with the third phone. The limit_execute is still executed even the max is 1.

How can I combine the distributor and limit_execute (or limit) so the limit still works?
 
Status
Not open for further replies.