Telcobridges - Session Border Controllers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script to add tgrp of NAP's column and trunk-context to Contact header

Go down

Script to add tgrp of NAP's column and trunk-context to Contact header Empty Script to add tgrp of NAP's column and trunk-context to Contact header

Post by NicoleTan Tue Dec 19, 2023 5:32 pm

This script is to add customer header params but specifically to have Contact header using the tgrp of the NAP's column as configured via the webgui.

How to use this script to add tgrp of incoming NAP to the contact header of the outgoing Invite:

1- Add the following lines to main script (simple_routing.rb)

require 'sip_header_params_add trgp in Contact Header' unless defined?(SipHeaderParams)

include SipHeaderParams

after_remap_filter :method => :sip_header_params, :headers_to_add => [
{
:documentation => "Add incoming_nap[:tgrp] to Contact and TO/R-URI parameters of SIP headers",
:type => :user_param,
:contents => "",
:sip_headers => [
:contact
]
},
]


2- Add NAP column: tgrp with Value like "TG999"

NicoleTan

Number of Messages : 18
Point : 38
Registration Date : 2017-11-27

Back to top Go down

Script to add tgrp of NAP's column and trunk-context to Contact header Empty The main script and filter script

Post by NicoleTan Tue Dec 19, 2023 5:35 pm

The main script and filter script
Attachments
Script to add tgrp of NAP's column and trunk-context to Contact header Attachment
tgrp routing with stir shaken and pass all original parameters.zip tgrp routing with stir shaken and pass all original parametersYou don't have permission to download attachments.(6 Kb) Downloaded 5 times

NicoleTan

Number of Messages : 18
Point : 38
Registration Date : 2017-11-27

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum