[SR-Users] Maximum number of branches exceeded

Andrew Mortensen admorten at isc.upenn.edu
Wed Jul 17 15:35:19 CEST 2013


On Jul 17, 2013, at 7:18 AM, Alex Balashov <abalashov at 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

 

> Jan Gaida <jan.gaida at grupoamper.com> wrote:
> 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
> 
> -- 
> 
> Jan Gaida
> Ingeniero Desarrollo Software	
> 
> C/ Marconi 3 (PTM)
> 28760 Tres Cantos
> Spain
> jan.gaida at grupoamper.com | www.grupoamper.com	
> 
> 
> 
> This message and any attachments are intended only for the use of the individual to whom they are addressed and it may contain information that is privileged or confidential. If you have received this communication by mistake, please notify us immediately by e-mail or telephone.The storage, recording, use or disclosure of this e-mail and its attachments by anyone other than the intended recipient is strictly prohibited. This message has been verified using antivirus software; however, the sender is not responsible for any damage to hardware or software resulting from the presence of any virus.
> 
> 
> 
> Este mensaje y cualquier anexo son exclusivamente para la persona a quien van dirigidos y pueden contener información privilegiada o confidencial. Si usted ha recibido esta comunicación por error, le agradecemos notificarlo de inmediato por esta misma vía o por teléfono. Está prohibida su retención, grabación, utilización o divulgación con cualquier propósito. Este mensaje ha sido verificado con software antivirus; sin embargo, el remitente no se hace responsable en caso de que en éste o en los archivos adjuntos haya presencia de algún virus que pueda generar daños en los equipos o programas del destinatario.
> 
> 
> 
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
> --
> 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
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list