02-24-2017 12:58 AM - edited 03-17-2019 09:38 AM
Hi Guys,
One of my customer is sending no caller ID on SIP Invite.
The "From" part on SIP INVITE Message looks like below
From: Anonymous <sip:anonymous@anonymous.invalid>;tag=XXXX
How can i covert this to From: 916850 <sip:916850@72.69.12.2>
I Tried below SIP Profile config on CUBE.
voice class sip-profiles 100
request INVITE sip-header From modify "Anonymous <sip:anonymous@anonymous.invalid>" "916850 <sip:916850@72.69.12.2>"
voice service voip
sip
sip-profiles 100
But does not seems to work. Any inputs will be of great assistance.
03-01-2017 11:06 PM
Try applying in the outbound VOIP dial peer instead of applying Globally. That should work
Regards
Devan
Please rate useful posts!!!
03-07-2017 07:27 PM
there is only one voip dial peer on router.. i tried to apply it there.. still does not work..
how can we debug voice class sip profile?
03-07-2017 09:16 PM
Did you try like below, cause i don't see a ":" in your syntax
request INVITE sip-header From: modify "Anonymous <sip:anonymous@anonymous.invalid>" "916850 <sip:916850@72.69.12.2>"
Regards
Devan
Please rate useful posts!!!
03-07-2017 10:41 PM
thats not even right syntax..
(config-class)#request INVITE sip-header From: modify "Anonymous <sip:anonymous@anonymous.invalid>" "916850 <sip:916850@72.69.12.2>"
^
% Invalid input detected at '^' marker.
right syntax thats accepted by router is
#request INVITE sip-header From modify "Anonymous <sip:anonymous@anonymous.invalid>" "916850 <sip:916850@72.69.12.2>"
And does not work..
04-25-2018 01:47 PM - edited 07-20-2020 01:36 PM
I had the same thing. The INVITE from CUCM to CUBE looked good, but from CUBE to our provider it was similar to what you saw:
From: "anonymous" <sip:anonymous@...etc.
I saw that the number was present in the P-Asserted-Identity: header, so in the SIP profile I copied it from there:
request INVITE sip-header P-Asserted-Identity copy "<sip:(.*)@" u01
And then copied it into the From: header as both name and number:
request INVITE sip-header From modify "\".*\"" "\"\u01\""
request INVITE sip-header From modify "<sip:.*@" "<sip:\u01@"
I don't really like this solution. I'd rather have it pass along whatever CUCM sends. I'm still looking for another way to do it. But it works.
Also, if you're like me, and it takes you twelve tries to get the regex right, I recommend the online SIP-Profile Test Tool. It let me futz with the syntax for as long as it took without messing with the actual gateway, making test calls with debug on, etc.
04-25-2018 01:55 PM
10-22-2018 10:55 AM
Apply this sip normalization script to the inbound trunk:
https://community.cisco.com/legacyfs/online/attachments/document/siptrunkanonymouscalls.lua_.txt
04-26-2019 03:10 AM
Hi,
try this:
Voice service voip
sip
sip-profiles inbound
sip-profiles 10 inbound
exit
voice class sip-profiles 10
request ANY sip-header From modify "<sip:anonymous@Anonymous.invalid" "<sip:916850@72.69.12.2"
exit
Regards,
Ahmad Kefaya
02-05-2020 08:22 AM
I had the same issue and had to enable it under global settings to modify the incoming invite from the SP. I tried under all DP's and it wouldn't work even enabling the function globally. It wasn't until I added the
sip profiles 1 inbound
Command in Global
03-09-2022 03:18 PM
Hi everyone,
I've applied this solution successfully.
Please find below the config on CUBE.
voice class sip-profiles XXX
request INVITE sip-header From modify "(<.*:)(anonymous@anonymous.invalid)" "\1(mainnumber)@xxx.com"
Make sure you remove the () on the main number. \1XXXXXXXXX@xxx.com
This sip profile must be applied on the outbound dial-peer for PSTN.
You just need to change the Calling Line ID Presentation and Calling Name Presentation (Outbound Calls) on the SIP Trunks (CUCM).
It's a great and simple solution.
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