<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
In CM this can be done with hunt pilot / hunt list / line group.
There is a parameter to display the ID associated with the pilot
rather than the actual caller id.<br>
<br>
Regards,<br>
Wes<br>
<br>
On 3/29/2011 11:22 AM, Damian Turburville wrote:
<blockquote cite="mid:806772.92673.qm@web112307.mail.gq1.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;">Wow that looks complicated :-) I havent
explored TCL scripting but it looks interesting. For the sake of
simplicity however is there no way to do this name presentation
within the CUCM itself?<br>
<div>Thanks,<br>
Damian<br>
</div>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;"><br>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;"><font face="Tahoma" size="2">
<hr size="1"><b><span style="font-weight: bold;">From:</span></b>
Nate VanMaren <a class="moz-txt-link-rfc2396E" href="mailto:VanMarenNP@ldschurch.org"><VanMarenNP@ldschurch.org></a><br>
<b><span style="font-weight: bold;">To:</span></b> Jason
Aarons (US) <a class="moz-txt-link-rfc2396E" href="mailto:jason.aarons@us.didata.com"><jason.aarons@us.didata.com></a>; Damian
Turburville <a class="moz-txt-link-rfc2396E" href="mailto:d_turburville@yahoo.com"><d_turburville@yahoo.com></a>;
<a class="moz-txt-link-rfc2396E" href="mailto:cisco-voip@puck.nether.net">"cisco-voip@puck.nether.net"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:cisco-voip@puck.nether.net"><cisco-voip@puck.nether.net></a><br>
<b><span style="font-weight: bold;">Sent:</span></b> Tue,
March 29, 2011 3:34:27 PM<br>
<b><span style="font-weight: bold;">Subject:</span></b>
RE: [cisco-voip] Manipulate Caller ID CUCM 6.1<br>
</font><br>
<style><!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"serif";}
span.EmailStyle17
{font-family:"sans-serif";color:#1F497D;}
span.EmailStyle20
{font-family:"sans-serif";color:#1F497D;}
.MsoChpDefault
{font-size:10.0pt;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">Here you go:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">Implement a TCL script with the
following.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">Make a file on the route called
“drup” that is formatted number~name like</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">~No Caller ID</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">20001~SWITCH ROOM CELL PHONE</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">20002~CAR SALES MESSAGE</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">Make an app like:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">application</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> service modify_name
flash:modify_caller_name.tcl</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">dial-peer voice 1 pots</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">incoming called-number .</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">direct-inward-dial</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">service modify_name</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">This TCL script was given to me by
a guy at Cisco. I hacked it to load a file to look
for caller id. I don’t remember if it still does but
it used to match prefixes of numbers to show the name.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># modify_caller_name.tcl</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># Script Version 1.0(1)</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">#------------------------------------------------------------------
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># March 2003, Niels Brunsgaard</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">#
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># Copyright (c) 1998-2002 by cisco
Systems, Inc.
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># All rights reserved.
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">#------------------------------------------------------------------
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">######debug voip application script
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># This tcl script changes the
calling display name to a value that depends on the
calling number. #
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc init { } {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> global param
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc NameLookup {ani} {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Finding name for
$ani"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set dave ""</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> if { [catch {open drup r}
NameFile] } {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Could not open drup"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> } elseif {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> [regexp -line $ani~.*$ [read
$NameFile] fred] == 1} {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set dave [string trimleft $fred
$ani~]}</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Found name $dave for $ani"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> catch {close $NameFile}</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">return $dave</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc act_Setup { } {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> leg setupack leg_incoming
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set dnis [infotag get leg_dnis]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set ani [infotag get leg_ani]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set display_name_orig [infotag
get leg_display_info]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set anipi [infotag get
leg_ani_pi]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set anisi [infotag get
leg_ani_si]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "dnis: $dnis ani: $ani
pi:$anipi si:$anisi name: $display_name_orig"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set display_name [NameLookup
$ani]</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> if {$display_name == "No Caller
ID"} {puts "No name found, not changing."} else {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set callInfo(displayInfo)
[string trim [concat $display_name
$display_name_orig]]}</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Changed Name
to $display_name $display_name_orig for $ani"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> leg proceeding leg_incoming</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> leg setup $dnis callInfo
leg_incoming</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc act_CallSetupDone { } {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> global beep
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set status [infotag get
evt_status]
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Entering
act_CallSetupDone"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> if { $status != "ls_000"} {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Call [infotag get
con_all] got event $status while placing an outgoing
call"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> call close
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> }
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc act_Cleanup { } {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Entering act_Cleanup"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> call close
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">proc act_Abort { } {
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> puts "Unexpected event -
entering act_Abort"</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> call close
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">}
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">init</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">#----------------------------------
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"># State Machine
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">#----------------------------------
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set
TopFSM(any_state,ev_disconnected)
"act_Abort,same_state"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set
TopFSM(CALL_INIT,ev_setup_indication)
"act_Setup,PLACECALL"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set
TopFSM(PLACECALL,ev_setup_done)
"act_CallSetupDone,CALLACTIVE"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set
TopFSM(CALLACTIVE,ev_disconnected)
"act_Cleanup,CALLDISCONNECTED"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> set
TopFSM(CALLDISCONNECTED,ev_disconnect_done)
"act_Cleanup,same_state"
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> fsm define TopFSM CALL_INIT
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-width: 1pt medium medium;
border-style: solid none none; border-color: rgb(181,
196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span
style="font-size: 10pt;">
<a class="moz-txt-link-abbreviated" href="mailto:cisco-voip-bounces@puck.nether.net">cisco-voip-bounces@puck.nether.net</a>
[<a class="moz-txt-link-freetext" href="mailto:cisco-voip-bounces@puck.nether.net">mailto:cisco-voip-bounces@puck.nether.net</a>]
<b>On Behalf Of </b>Jason Aarons (US)<br>
<b>Sent:</b> Tuesday, March 29, 2011 7:46 AM<br>
<b>To:</b> Damian Turburville;
<a class="moz-txt-link-abbreviated" href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] Manipulate Caller
ID CUCM 6.1</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);">I wonder if you can use a IOS
Translation Profile at the Gateway to modify called
party name. What type of gateway/protocol/ios version
are you running?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color:
rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-width: 1pt medium medium;
border-style: solid none none; border-color: rgb(181,
196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span
style="font-size: 10pt;">
<a class="moz-txt-link-abbreviated" href="mailto:cisco-voip-bounces@puck.nether.net">cisco-voip-bounces@puck.nether.net</a>
[<a class="moz-txt-link-freetext" href="mailto:cisco-voip-bounces@puck.nether.net">mailto:cisco-voip-bounces@puck.nether.net</a>]
<b>On Behalf Of </b>Damian Turburville<br>
<b>Sent:</b> Tuesday, March 29, 2011 9:43 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> [cisco-voip] Manipulate Caller ID
CUCM 6.1</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Hi guys,<br>
We have a customer who wants to have a text string
come up on their phone based upon the number dialled
by the outside party. i.e. if a member of the public
dialled 01234 567890 which would come into our CUCM
6.1 box they would want it to display "Slough" for
instance or if they dialled 01234 567891 it would
come up as "Chichester"<br>
This is basically for a group of users who will be
taking calls from many geographic locations and want
to be able to know which line the public is dialling
in from.<br>
<br>
(The actual setup is as follows)<br>
<br>
Public dials 0845 number<br>
0845 number is forwarded by BT onto a DDI number
(01234 567890)<br>
DDI number comes into our CUCM 6.1 system via MGCP
gateway<br>
Call goes to a CTI Route Point which forwards onto
Unity Connection 7 Call Handler<br>
Call Handler announces "Welcome to the Slough
Helpline you will now be placed in a queue"<br>
Call is transferred (release to switch) to an
Attendant console Pilot Point (so we can queue
calls)<br>
Pilot point addresses four 7942 phones in a circular
pattern<br>
User expects to see "Slough" come up as the Caller
ID<br>
<br>
The same would happen for the other geographic
regions but the call would come in via a different
DDI number eg : 01234 567891<br>
<br>
Is this possible?<br>
Thanks,<br>
Damian</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" style="text-align: center;"
align="center">
<hr width="100%" align="center" size="1">
</div>
<p class="MsoNormal"><a moz-do-not-send="true"
rel="nofollow" target="_blank"
href="http://dimensiondata.stream57.com/04141pm/"><span
style="text-decoration: none;"><img
moz-do-not-send="true" id="_x0000_i1026"
src="http://image.exct.net/lib/feed16797d620d/i/2/8c665b10-9.gif"
alt="DDIPT" border="0"></span></a></p>
<p><strong>Disclaimer: This e-mail communication and any
attachments may contain confidential and privileged
information and is for use by the designated
addressee(s) named above only. If you are not the
intended addressee, you are hereby notified that you
have received this communication in error and that any
use or reproduction of this email or its contents is
strictly prohibited and may be unlawful. If you have
received this communication in error, please notify us
immediately by replying to this message and deleting
it from your computer. Thank you. </strong></p>
</div>
<div>
<p class="MsoNormal"><span><font color="#666666"><br>
<br>
NOTICE: This email message is for the sole use of
the intended recipient(s) and may contain
confidential and privileged information. Any
unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended
recipient, please contact the sender by reply email
and destroy all copies of the original message.</font></span></p>
<font color="#666666"><br>
</font></div>
</div>
</div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
This body part will be downloaded on demand.</pre>
</blockquote>
</body>
</html>