cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2174
Views
0
Helpful
2
Replies

Problems modifying Outgoing SIP INVITE Header on CUBE

p.mcgowan
Level 3
Level 3

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

2 Replies 2

Manish Prasad
Level 5
Level 5

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

Manish Prasad
Level 5
Level 5

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=full

From: <6060>;tag=2E45A4-204

To: <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