Hello,
I would like to relay an INVITE to more than 50 contacts that registered this AOR. But in my kamailio 4.0.2 it is only possible to fork to 12 branches otherwise it results in the error "Maximum number of branches exceeded".
Is there any possibility to achieve this from script (e.g. multiple t_relay)? I've already looked in TM module but it is using an integer bitset, so I will have to change the whole module in order to obtain more than 32 branches.
Kind regards
Isn't there a MAX_BRANCHES macro you can change in the source?
Jan Gaida jan.gaida@grupoamper.com wrote:
-- Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.
Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com
On Jul 17, 2013, at 7:18 AM, Alex Balashov abalashov@evaristesys.com wrote:
Isn't there a MAX_BRANCHES macro you can change in the source?
Yes, but as he mentions, branches are tracked in a 32-bit bitmask variable, so he can't fork 50 branches with the existing code. I've got a preliminary patch that makes the mask 64-bit, though it might also be valuable to talk about an alternative to using bitmasks to track branches.
andrew
Thank you for your answers.
Nevertheless, I hoped for ideas to achieve this from script with some kind of workaround. I can load all 50 contacts from location-database with reg_fetch_contacts. Maybe there is a way to send them one by one?
Regards
On Wed, Jul 17, 2013 at 1:16 PM, Jan Gaida jan.gaida@grupoamper.com wrote: