cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3121
Views
6
Helpful
6
Replies

Remove display info in "from" sip-header on CUBE

mcaldogne
Level 3
Level 3

Hello everyone!

Our new ITSP send in INVITE as display info the calling number and we need to remove it if possible on the outgoing dial-peer. 

In this example, here the incoming SIP message: 

mcaldogne_0-1688022686077.png

Here the outgoing how we would need it:

mcaldogne_1-1688022732567.png

I think it should be possible with the right sip-profile configuration, but I didn't find exactly how to.

Do you have an idea?

Mirko

2 Accepted Solutions

Accepted Solutions

M02@rt37
VIP
VIP

Hello @mcaldogne

Define a SIP profile that will be used for the outgoing dial-peer. Within the SIP profile configuration, use the 'voice sip-strip-privacy' command to remove the display information. Apply the SIP profile to the outgoing dial-peer.

voice class sip-profiles 1
response ANY sip-header DisplayName remove

dial-peer voice X voip
sip-profiles 1

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube/configuration/cube-book/voi-sip-param-mod.html

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

You can do that with this if all that you want is to remove the part between From: to <sip:.

 

voice class sip-profiles 10
 request ANY sip-header From modify "From:(.*)(<sip:.*@.*>)" "From: \2" 
 response ANY sip-header From modify "From:(.*)(<sip:.*@.*>)" "From: \2" 
!
dial-peer voice 110 voip
 description Outbound calls to PSTN
 voice-class sip profiles 10

 

It does look like you're doing additional modification on the the number, but I assume that you do that with a voice translation profile/rule(s).

 



Response Signature


View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

Hello @mcaldogne

Define a SIP profile that will be used for the outgoing dial-peer. Within the SIP profile configuration, use the 'voice sip-strip-privacy' command to remove the display information. Apply the SIP profile to the outgoing dial-peer.

voice class sip-profiles 1
response ANY sip-header DisplayName remove

dial-peer voice X voip
sip-profiles 1

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube/configuration/cube-book/voi-sip-param-mod.html

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

You can do that with this if all that you want is to remove the part between From: to <sip:.

 

voice class sip-profiles 10
 request ANY sip-header From modify "From:(.*)(<sip:.*@.*>)" "From: \2" 
 response ANY sip-header From modify "From:(.*)(<sip:.*@.*>)" "From: \2" 
!
dial-peer voice 110 voip
 description Outbound calls to PSTN
 voice-class sip profiles 10

 

It does look like you're doing additional modification on the the number, but I assume that you do that with a voice translation profile/rule(s).

 



Response Signature


Hello Roger, I have similar situation.

I would like to confirm with you, if I implemented this configuration:

voice class sip-profiles 1
request INVITE sip-header From modify ".*" "Anonymous"

dial-peer voice 1000 voip
destination-pattern 1234567890
session target ipv4:10.1.1.1
session protocol sipv2
voice-class sip profiles 1

Will I remove calling number information for calls to specific number "1234567890"?

I appreciate your validation

Thanks

 

Likely, but I have not verified it. As you're only affecting one single called number it would be easy enough to verify by a real world test.



Response Signature


Roger, thanks.

I will test it and let you know results

mcaldogne
Level 3
Level 3

Thanks for your help... if works!

@Roger Kallberg I'm already using a voice translation for the number and it was OK, but the display name was sometimes a problem.

Mirko