06-29-2023 12:16 AM
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:
Here the outgoing how we would need it:
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
Solved! Go to Solution.
06-29-2023 02:43 AM - edited 06-29-2023 02:43 AM
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
06-29-2023 03:41 AM - edited 06-29-2023 04:30 AM
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).
06-29-2023 02:43 AM - edited 06-29-2023 02:43 AM
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
06-29-2023 03:41 AM - edited 06-29-2023 04:30 AM
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).
05-20-2024 07:52 AM
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
05-20-2024 08:11 AM - edited 05-20-2024 10:30 AM
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.
05-20-2024 09:17 AM
Roger, thanks.
I will test it and let you know results
06-29-2023 06:48 AM
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
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