cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13048
Views
26
Helpful
10
Replies

SIP Profile to enable Caller ID anonymous@anonymous.invalid calls

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.

10 Replies 10

sanjaydevan
Level 1
Level 1

Try applying in the outbound VOIP dial peer instead of applying Globally. That should work

Regards

Devan

Please rate useful posts!!!

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?

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!!!

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..

Joseph Thvedt
Level 1
Level 1

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.

Can you paste the complete SIP INVITE that you get from CUCM ? Also, can you attach your CUBE config ?

Chester Rieman
Cisco Employee
Cisco Employee

AhmadmKefaya
Level 1
Level 1

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

 

 

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 

 

Matheus Lopes
Level 1
Level 1

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.

 

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: