[cisco-voip] Modify calling number in SIP invite on CUCM 11

Daniel Pagan dpagan at fidelus.com
Tue Jul 5 11:19:40 EDT 2016


It depends on which headers this external platform is parsing for caller-ID. If it’s using Remote Party ID then this will help you:

M = {}
function M.outbound_INVITE(msg)
msg:applyNumberMask("Remote-Party-ID", "XXXX")
end
return M

I’ve tested this script before, but cannot say it will fit your needs and resolve this issue. What this will do is apply a four-digit mask to your external party number on the Remote-Party-ID header.

You can replace this will “From” if needed.

It actually parses the actual SIP URI, not the display field which, in your case, already contains a four digit extension.

Applying this requires a reset of your SIP trunk - just something to keep in mind.

- Dan



From: cisco-voip [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Deepak Maggo
Sent: Friday, July 01, 2016 3:24 PM
To: Brian Meade <bmeade90 at vt.edu>
Cc: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] Modify calling number in SIP invite on CUCM 11


In earlier versions of CUCM we used to get extension number as SIP address for external calls, but after upgrading the CUCM to v11.0 we are getting external phone number mask.

If anyone can help me with SIP normalisation script where I can replace the external phone number mask with extension number in SIP INVITE, which I can apply on SIP trunk to my call recorder coz I want external phone number mask to be displayed on PSTN calls.

Appreciate all help in this.

Thanks & Regards,
Deepak Maggo
On 1 Jul 2016 14:47, "Brian Meade" <bmeade90 at vt.edu<mailto:bmeade90 at vt.edu>> wrote:
It's got the extension in there too in a few fields.  I think it does the Invite this way so the recorder can match up the call from the CTI messages.

On Fri, Jul 1, 2016 at 2:30 PM, Deepak Maggo <dmaggo at ipcelerate.com<mailto:dmaggo at ipcelerate.com>> wrote:
Here is the SIP Invite from extension number "1102" with External Phone Number Mask "8889184192<tel:8889184192>", when I dial the internal extension I do receive the extension number in SIP invite:

Jul 01 07:30:24.631 [INFO] JSIPListerner: processRequest() requestType (INVITE) = INVITE
Jul 01 07:30:24.631 [INFO] JSIPListerner: processSIPInvite() callIDHeader = f89b3e00-77619055-42-6e08210a at 10.33.8.110<mailto:f89b3e00-77619055-42-6e08210a at 10.33.8.110>
Jul 01 07:30:24.631 [INFO] JSIPListerner: processSIPInvite() sipFromHeader = "1102" <sip:8889184192 at 10.33.8.110<mailto:sip%3A8889184192 at 10.33.8.110>;x-nearend;x-refci=29335531;x-nearendclusterid=StandAloneCluster;x-nearenddevice=SEP1CE85DC824AC;x-nearendaddr=1102;x-farendrefci=29335532;x-farendclusterid=StandAloneCluster;x-farenddevice=10.31.8.1;x-farendaddr=917325797456>
Jul 01 07:30:24.631 [INFO] JSIPListerner: checkHalfCall() sipFromHeader = "1102" <sip:8889184192 at 10.33.8.110<mailto:sip%3A8889184192 at 10.33.8.110>;x-nearend;x-refci=29335531;x-nearendclusterid=StandAloneCluster;x-nearenddevice=SEP1CE85DC824AC;x-nearendaddr=1102;x-farendrefci=29335532;x-farendclusterid=StandAloneCluster;x-farenddevice=10.31.8.1;x-farendaddr=917325797456>
Jul 01 07:30:24.631 [INFO] JSIPListerner: processSIPInvite() First sipFromHeader = "1102" <sip:8889184192 at 10.33.8.110<mailto:sip%3A8889184192 at 10.33.8.110>;x-nearend;x-refci=29335531;x-nearendclusterid=StandAloneCluster;x-nearenddevice=SEP1CE85DC824AC;x-nearendaddr=1102;x-farendrefci=29335532;x-farendclusterid=StandAloneCluster;x-farenddevice=10.31.8.1;x-farendaddr=917325797456>


Thanks & Regards,
Deepak Maggo

On Fri, Jul 1, 2016 at 2:16 PM, Brian Meade <bmeade90 at vt.edu<mailto:bmeade90 at vt.edu>> wrote:
What does the Invite actually look like?  I wouldn't expect this setup to show the external number mask to the recorder.

On Fri, Jul 1, 2016 at 1:33 PM, Deepak Maggo <dmaggo at ipcelerate.com<mailto:dmaggo at ipcelerate.com>> wrote:

No, I am not using any CSS Transformations.

Thanks & Regards,
Deepak Maggo
On 1 Jul 2016 13:29, "Brian Meade" <bmeade90 at vt.edu<mailto:bmeade90 at vt.edu>> wrote:
Do you have a calling party transform CSS on the SIP trunk?

On Fri, Jul 1, 2016 at 11:09 AM, Deepak Maggo <dmaggo at ipcelerate.com<mailto:dmaggo at ipcelerate.com>> wrote:
Hi Florian,

I verified my trunk as well and it is also selected as "OnNet":

[Inline image 1]

Thanks & Regards,
Deepak Maggo

On Fri, Jul 1, 2016 at 10:56 AM, Deepak Maggo <dmaggo at ipcelerate.com<mailto:dmaggo at ipcelerate.com>> wrote:
Florian,

Thanks for the response. My route pattern is set to OnNet only:

[Inline image 1]

Thanks & Regards,
Deepak Maggo

On Fri, Jul 1, 2016 at 10:50 AM, Florian Kroessbacher <florian.kroessbacher at gmail.com<mailto:florian.kroessbacher at gmail.com>> wrote:
Maybe your trunk to the Recorder is set to Offnet, try to set it Onnet


Am 1. Juli 2016, 15:47 +0200 schrieb Deepak Maggo <dmaggo at ipcelerate.com<mailto:dmaggo at ipcelerate.com>>:
Hi,


The problem I have is that we have active recording system which communicates with the CUCM cluster using a SIP trunk and uses Built-in-bridge configuration.

The invites that CUCM sends via the SIP trunk show the "External Phone Number Mask" rather than the four digit extension when make PSTN calls which will not work according to  the recording system. We need the External Phone Number Mask on phones to display the correct Caller ID.

Can anyone suggest a way to fix this?

Ideally I need a way to modify the number in the SIP invite but I cannot find any example of how to do this.

Any suggestions are welcome.

Thanks
Thanks & Regards,
Deepak Maggo
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip



_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20160705/0a93a8aa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 83647 bytes
Desc: image001.png
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20160705/0a93a8aa/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 81425 bytes
Desc: image002.png
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20160705/0a93a8aa/attachment-0001.png>


More information about the cisco-voip mailing list