the script needs to be applied on the SIP trunk directly.
1. Navigate to Device > Device Setting > SIP Normalization Script Configuration and add a new Script
2. Navigate to Device > Trunk. Select the Trunk on which you want to apply the script and on the configuration page of it, select the script created earlier. Select the Enable Trace option and it will print the changes done by the script in the Signal Distribution Layer (SDL) logs as shown in the image. Save the configuration, Apply Config followed by reset of the trunk in order for the changes to take effect.
Kind regards,
Alex