Adding a pre-defined SIP header to outgoing leg
3 posters
Page 1 of 1
Adding a pre-defined SIP header to outgoing leg
This script adds a pre-defined header to the outgoing leg.
- Attachments
Re: Adding a pre-defined SIP header to outgoing leg
Admin,
Thanks for providing the sample script.
I am trying to follow the instructions and I am stuck at step # 2.
Per the following instructions :
I am unable to find the "main script". Under routing scripts ,there is a section called main scripts which has lots of scripts mentioned. Which script to select under the main scripts section?
Further I want this to limit the custom SIP header addition only for calls going out via particular NAP, lets say NAP_CUSTOM.
Thanks for providing the sample script.
I am trying to follow the instructions and I am stuck at step # 2.
Per the following instructions :
- Code:
# 2- Include new script in main script
# Gateway -> Routing Scripts -> [Select main script]
I am unable to find the "main script". Under routing scripts ,there is a section called main scripts which has lots of scripts mentioned. Which script to select under the main scripts section?
Further I want this to limit the custom SIP header addition only for calls going out via particular NAP, lets say NAP_CUSTOM.
skb007- Number of Messages : 6
Point : 12
Registration Date : 2020-04-10
Re: Adding a pre-defined SIP header to outgoing leg
Hi Skb007,
Your main script can vary depending on your setup, but by default it is `simple_routing_sbc.rb`
On your Routing Script page you can see the scripts that has the main designation, and you can go into that script to confirm it is the one being used by checking if it's set to "Load on startup"
Let me know if you have any other questions!
Cheers,
Joshua
Your main script can vary depending on your setup, but by default it is `simple_routing_sbc.rb`
On your Routing Script page you can see the scripts that has the main designation, and you can go into that script to confirm it is the one being used by checking if it's set to "Load on startup"
Let me know if you have any other questions!
Cheers,
Joshua
jpuckett- Number of Messages : 14
Point : 22
Registration Date : 2022-03-15
Re: Adding a pre-defined SIP header to outgoing leg
Joshua,
Appreciate your help. I was able to make it work. Your guess was correct, simple_routing_sbc.rb is the main script.
Now SBC is adding the customer header for ALL outbound calls, how can i limit it to a route or NAP?
Appreciate your help. I was able to make it work. Your guess was correct, simple_routing_sbc.rb is the main script.
Now SBC is adding the customer header for ALL outbound calls, how can i limit it to a route or NAP?
skb007- Number of Messages : 6
Point : 12
Registration Date : 2020-04-10
Similar topics
» Adding a SIP Header to outgoing call
» Adding X-NAP header to outgoing INVITE
» How to forward the SIP from/to header domain to outgoing leg
» Adding Prefix to RURI
» Modify outgoing P-Asserted-ID (PAID) according to a pre-configured IP
» Adding X-NAP header to outgoing INVITE
» How to forward the SIP from/to header domain to outgoing leg
» Adding Prefix to RURI
» Modify outgoing P-Asserted-ID (PAID) according to a pre-configured IP
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum