Script to add tgrp of NAP's column and trunk-context to Contact header
Page 1 of 1
Script to add tgrp of NAP's column and trunk-context to Contact header
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"
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
The main script and filter script
The main script and filter script
- Attachments
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
Similar topics
» SIP contact header during SIP Registration
» Script to route on TGRP integrated with C15 and ClearIP
» Script to remove sip header
» Route on TGRP with stir shaken and pass all original parameters
» Routing script to add SIP header with incoming SIP IP
» Script to route on TGRP integrated with C15 and ClearIP
» Script to remove sip header
» Route on TGRP with stir shaken and pass all original parameters
» Routing script to add SIP header with incoming SIP IP
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum