<div dir="ltr"><div>You can try using this script on the CUCM.<br><br>M={}<br>function M.inbound_INVITE(msg)<br>    local from = msg:getHeader("From")<br>    local b = string.match(from, '%d+')<br>    new_from = '"' .. b .. '" ' .. from<br>    msg:modifyHeader("From", new_from)<br>return M<br>end<br><br></div>You can also normalize the message on the CUBE as suggested by Mike.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2016 at 15:58, Nick <span dir="ltr"><<a href="mailto:csvoip@googlemail.com" target="_blank">csvoip@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I cant see those in the trace, RPID is on at the SIP Trunk in CUCM, the middx-1 is the full debug of the call</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 27 November 2016 at 06:15, Sreekanth <span dir="ltr"><<a href="mailto:sknth.n@gmail.com" target="_blank">sknth.n@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Based on your query it looks like you're trying to modify the From header on an INVITE coming into CUCM. Are the RPID/PAID headers also present in the message?<br></div>The CUCM will first look at those headers, before going to the From header to pull the caller's information. <br><br></div>Modify the RPID/PAID if they are there to provide this calling information.<br></div>Can you post those 2 headers as well?<br><br></div>Also, what's the middx-1 attachment?<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_9064067046363587249h5">On 26 November 2016 at 14:50, Nick via cisco-voip <span dir="ltr"><<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div class="m_9064067046363587249h5"><div dir="ltr"><div>Hi All</div><div><br></div><div>I have a situation where we have migrated from one SIP trunk to another, when the inbound call comes in, the IP phone handset shows Unknown Caller ID and then display the calling number below, this client has 6921 handsets throughout which will only display one line so they only see the Unknown Caller ID on the handset.</div><div><br></div><div>The Invite on the old SIP trunk show the From field with the calling number in brackets in front of the SIP portion as below and this works fine.<font size="3" color="#000000" face="Times New Roman">
</font><p style="margin:0cm 0cm 0pt"><b><span style="color:red"><font size="3" face="Calibri">From:
"07918900845"<</font><a><span style="color:red"><font size="3" face="Calibri">sip:07918900845@<wbr>siptrunking08a.ipmultimedia.co<wbr>.uk;user=phone</font></span></a><font size="3" face="Calibri">>;tag=SDtmhce01-<wbr>87069</font></span></b></p><p style="margin:0cm 0cm 0pt"><b><span style="color:red"><font size="3" face="Calibri"></font></span></b><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font style="background-color:rgb(255,255,255)" color="#000000" face="Calibri">The invite on the new SIP trunk does not display the number in front of the From field as below</font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"><br></font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"><strong><font size="2" color="#ff0000">From: <sip:07918900845@81.10X.XX.XX;<wbr>user=phone>;tag=3689138628-619<wbr>971</font></strong></font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"><font color="#000000"></font></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri">What I would like to do is modify the From field in the invite so that it displays the calling number in front of the as per the above example.</font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri">It appears to be an issue with Calling Name as if I receive the call on a translation pattern on CUCM and set Calling Name Presentation to Restricted, I don't see the Unknown Caller ID anymore, the issue with this is that Missed calls / Received Calls lists on the phone shows Private Number.</font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri">Can this be done with a inbound SIP Profile or SIP normalisation script?</font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri">Regards</font></span></p><span class="m_9064067046363587249m_9140286663558551350HOEnZb"><font color="#888888"><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri">Nick</font></span></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><p style="margin:0cm 0cm 0pt"><span style="color:red"><font color="#000000" face="Calibri"></font></span><br></p><font size="3" color="#000000" face="Times New Roman"><strong>

</strong></font></font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailma<wbr>n/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>