cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5707
Views
0
Helpful
3
Replies

P-Asserted-Identity Header value in CUCM

Gordon Ross
Level 9
Level 9

On a SIP trunk in CUCM 11.5, I'm seeing that the P-Asserted-Identity header being sent has the value of:

 

"LINE_APPEARENCE_DISPLAY_FIELD" <sip:E164MASK@CUCM_IP_ADDRESS>

 

I need to remove the LINE_APPEARANCE_DISPLAY_FIELD part of this value and just have the SIP URI in there. Looking at CUCM's help and Google, I get the impression that the LINE_APPEARANCE_DISPLAY_FIELD should only be sent if the "Allow Passthrough of Configured Line Device Caller Information" tick box is set on the SIP profile assigned to the SIP trunk. But this tick box is most definitely NOT set for this SIP trunk.

 

How can I prevent the line appearance display name being sent in the P-Asserted-Identity field?

Please rate all helpful posts.
3 Replies 3

Dennis Mink
VIP Alumni
VIP Alumni

Gordon,

 

just to make sure I understand this, so you want to modify the P-asserted field on a trunk to a CUCM?  does the trunk run into a CUBE so you can use SIP profile to modify the value?

 

Thanks

Please remember to rate useful posts, by clicking on the stars below.

Slavik Bialik
Level 7
Level 7

Try to set "Calling Name Presentation" to "Restricted" in your SIP Trunk settings. And restart your SIP trunk.

 

Edit:

Ignore me :)

The above will just set the name in the From header to Annonymous.

Slavik Bialik
Level 7
Level 7

So, again, regarding to my previous comment, ignore it. 

I checked if it's possible via the settings available in the SIP trunk, couldn't find any combinations that will give you that. Maybe missed something, but I didn't find.

Anyway, I wrote you a LUA script that you can use and it'll do exactly what you want:

M = {}
function M.outbound_INVITE(msg)
	-- Get the value of "P-Asserted-Identity"
	local strPai = msg:getHeader("P-Asserted-Identity")

	-- Match the URI out of the whole PAI, and set it to a variable
	local strPaiURI = string.match(strPai, "(<.+>)")

	-- Set the new value into the "P-Asserted-Identity" header
	msg:modifyHeader("P-Asserted-Identity", strPaiURI)
end
return M

Just go to: Device -> Device Settings -> SIP Normalization Script

Add a new one, and enter the above code in it.

After that, go to your SIP trunk settings and select the new SIP normalization script in the "Normalization Script" field.