01-06-2014 06:04 AM - edited 03-16-2019 09:07 PM
Our SIP provider has asked us to modify our outgoing SIP header INVITE messages to allow them to block CLI.
The section of the current SIP Header we need to modify looks like this;
Remote-Party-ID: "Test" <sip:+44xxxxxxxxxx@10.x.x.x>;party=calling;screen=no;privacy=off
We need to change privacy=off to privacy=full
I've created the following SIP profile but this does not change the SIP header, never had to modify SIP headers before so this is probably where the problem is;
voice class sip-profiles 1
request INVITE sip-header Remote-Party-ID modify "Remote-Party-ID:(.*>).*" "Remote-Party-ID:(.*>);party=calling;screen=no;privacy=full"
request REINVITE sip-header Remote-Party-ID modify "Remote-Party-ID:(.*>).*" "Remote-Party-ID:(.*>);party=calling;screen=no;privacy=full"
I have then applied this SIP profile to a dial-peer;
dial-peer voice 555 voip
description ** TEST **
max-conn 200
destination-pattern +44xxxxxxxxxx
max-bandwidth 18000
session protocol sipv2
session target ipv4:10.x.x.x:5060
voice-class sip asserted-id pai
voice-class sip profiles 1
dtmf-relay rtp-nte
If anyone out there has any experience of doing this I would really appreciate some assistance with this issue
01-06-2014 06:49 AM
Can you check with this.
request INVITE sip-header Remote-Party-ID modify ";privacy=off" ";privacy=full"
request REINVITE sip-header Remote-Party-ID modify ";privacy=off" ";privacy=full"
Rate all the helpful post.
Thanks
Manish
01-07-2014 02:07 AM
Here is the test output from the above config.
INVITE sip:2444@10.0.0.2:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.2.3:5060;branch=z9hG4bK9DB8
Remote-Party-ID: <6060>;party=calling;screen=no;privacy=full6060>
From: <6060>;tag=2E45A4-2046060>
To: <2444>2444>
Date: Tue, 07 Jan 2014 15:36:01 GMT
Call-ID: 2C178B76-76E811E3-803DF6FE-E0662A1D@10.0.2.3
Rate all the helpful post.
Thanks
Manish
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide