If you  havea need for multiple scripts, i.e different boxes, then write multiple scripts. If you only have a single type of box then us if statements to call the various components needed depending on the traffic type.
I'm not sure why you would need to define multiple directives either.

it appears you have nested some too, whynot just rewrite the scriptto have various routes instead of all these directives and control the flow based on the message type.

I'm assuming most of these directives will be set to TRUE.


Regards,


Richard



On 23/07/2025 20:41, Giovanni Maruzzelli via sr-users wrote:
On Wed, Jul 23, 2025, 21:14 Alex Balashov via sr-users <sr-users@lists.kamailio.org> wrote:

My configs got far simpler and more legible once I conquered my fear of committing to hard code paths and stopped adding unnecessary cleverness.


+1

-giovanni

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!