Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CUBE - Selective Outgoing Privacy Header

Hello, All!

I'd like to selectively block outbound CallerID on a SIP trunk. I've come up with two methods to block the CLID, but I'd like to know if there are better methods.

From CUCM

Create a secondary SIP Trunk with Privacy enabled. Create a Route List pointing to the SIP Trunk. Create and assign CSS on devices you'd like to have blocked CLID.

From CUBE

Setup SIP Profile, such as the below example. Apply to PSTN-Outbound Dial Peers.

voice class sip-profiles 1

request INVITE sip-header Privacy add "Privacy: id"


Issue

If blocking the CLID using the CUCM method then either you must block all CLID on a particular device or use Line CSS for PERMIT purposes, which I'm not fond of.

If blocking the CLID using the CUBE method then all matches to the dial-peer would have blocked CLID. I could potentially create a dial-peer that uses a special prefix in order to avoid overlapping, but I thought I'd check with the experts.

Ideally, I'd like to be able to tweak the sip-profile rule so that it checks the From header for particular Calling Numbers and applies Privacy based on that. However, I don't know of a way to do an if statement in sip-profiles. Any thoughts on how to best handle selective outbound CLID blocking?

Thanks as always for your invaluable support!

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: CUBE - Selective Outgoing Privacy Header

Hi Raymond,

I think using the SIP Normalization feature in CUCM would be your best bet here:

http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/8_5_1/ccmcfg/b06scrpt.html

Mackers

6 REPLIES

CUBE - Selective Outgoing Privacy Header

From my experience "a dial-peer that uses a special prefix in order to avoid overlapping" this is the way to go then you can hide your CLID with any call you make by dialing a prefix, so today you can show your CLID to your mobile device and tomorrow you dial the prefix and it hides it.

Don't know if anyone out there has any other suggestions.

Voice CCIE #37771

Re: CUBE - Selective Outgoing Privacy Header

I'd like to be able to tweak the sip-profile rule so that it checks the From header for particular Calling Numbers and applies Privacy based on that. However, I don't know of a way to do an if statement in sip-profiles -  I can help you on this.

Here is the sample test config. Calling number - 6060 , Called number- 2444 , CUBE ip -10.0.2.3

voice class sip-profiles 1

request INVITE sip-header Remote-Party-ID modify "<6060>" ""

request REINVITE sip-header Remote-Party-ID modify "<6060>" ""

request INVITE sip-header From modify "<6060>" ""

request REINVITE sip-header From modify "<6060>" ""

dial-peer voice 100 voip

destination-pattern 2...

voice-class sip profiles 1

session protocol sipv2

session target ipv4:10.0.0.2

Now see the INVITE message.

*Jan  7 15:21:55.895: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:

INVITE sip:2444@10.0.0.2:5060 SIP/2.0

Via: SIP/2.0/UDP 10.0.2.3:5060;branch=z9hG4bK6582

Remote-Party-ID: <>xxxx@10.0.2.3>;party=calling;screen=no;privacy=off

From: <>xxxx@10.0.2.3>;tag=21DB24-2270

To: <2444>

Date: Tue, 07 Jan 2014 15:21:55 GMT

Call-ID: 471764AB-76E611E3-802BF6FE-E0662A1D@10.0.2.3

Supported: 100rel,timer,resource-priority,replaces,sdp-anat

Min-SE:  1800

Cisco-Guid: 1185875884-1994789347-2150037246-3764791837

Now the calling number is 6090

INVITE sip:2444@10.0.0.2:5060 SIP/2.0

Via: SIP/2.0/UDP 10.0.2.3:5060;branch=z9hG4bK745A

Remote-Party-ID: <>6090@10.0.2.3>;party=calling;screen=no;privacy=off

From: <>6090@10.0.2.3>;tag=26ACB0-15F2

To: <2444>

Date: Tue, 07 Jan 2014 15:27:12 GMT

Call-ID: 350D107-76E711E3-8031F6FE-E0662A1D@10.0.2.3

Supported: 100rel,timer,resource-priority,replaces,sdp-anat

Min-SE:  1800

Cisco-Guid: 48467858-1994854883-2150430462-3764791837

Rate all the helpful post.

Thanks

Manish

New Member

Re: CUBE - Selective Outgoing Privacy Header

Thank you, Hermanus and Manish.

I'll definitely use Hemanus's suggestion, but as always I like to create as little hassle for the end-user as possible.

To expand on Manish's great examples, I understand the ability to modify single header fields, but the scenario presented would be a bit more complicated. Rather, the idea would be to check the From field for a matching SIP URI, and if the SIP URI matches, modify the Privacy header. Example below...

INVITE sip:2444@10.0.0.2:5060 SIP/2.0

Via: SIP/2.0/UDP 10.0.2.3:5060;branch=z9hG4bK6582

Remote-Party-ID: <>1234@10.0.2.3>;party=calling;screen=no;privacy=off

From: <>1234@10.0.2.3>;tag=21DB24-2270

Based on the above output, I'd like to create a rule that adds "Privacy: id" when calls originate from x1234. So, if a rule of that sort was possible, then you would have the following output.

INVITE sip:2444@10.0.0.2:5060 SIP/2.0

Via: SIP/2.0/UDP 10.0.2.3:5060;branch=z9hG4bK6582

Remote-Party-ID: <>1234@10.0.2.3>;party=calling;screen=no;privacy=off

From: <>1234@10.0.2.3>;tag=21DB24-2270

Privacy: id

The above INVITE would be passed to the PSTN and we've now achieved selective caller ID blocking. The problem with this scenario is I'd like to evaluate one header field and modify another based on the result. I've never had a neccessity for this before, but I'd be very interested to see it in action. Thanks again for all your help!

New Member

Re: CUBE - Selective Outgoing Privacy Header

Hi Raymond,

I think using the SIP Normalization feature in CUCM would be your best bet here:

http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/8_5_1/ccmcfg/b06scrpt.html

Mackers

New Member

Re: CUBE - Selective Outgoing Privacy Header

Mackers,

I think you're right. That's the level of scripting I am looking for. Time to strap down and read the Developer Guide. Thanks for pointing me in the right direction!

New Member

Hi,I'm looking to do

Hi,

I'm looking to do something very similar. Did you every find a way to add in the Privacy:id field based on CallerID.

I'm looking to do it when I receive or send invites with CallerID = "anonymous"

 

Thanks

Russell

752
Views
0
Helpful
6
Replies