[cisco-voip] Adding names for outside callers
Lelio Fulgenzi
lelio at uoguelph.ca
Thu May 7 19:14:26 EDT 2009
This is fantastic Nick. Thanks for sharing. I'm sure many of us will find this useful. Even if only to begin playing with this stuff and using the code you provided as a basis.
---
Lelio Fulgenzi, B.A.
Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1
(519) 824-4120 x56354 (519) 767-1060 FAX (JNHN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"Bad grammar makes me [sic]" - Tshirt
----- Original Message -----
From: "Nicholas Mooney" <Nicholas.Mooney at astrazeneca.com>
To: cisco-voip at puck.nether.net
Sent: Thursday, May 7, 2009 3:10:37 AM GMT -05:00 US/Canada Eastern
Subject: Re: [cisco-voip] Adding names for outside callers
Hi,
Found the solution to my problem in the end - with some help from Cisco.
The solution attached allows you to have a script that runs on your PSTN gateway that polls a www server for the name of any incoming caller's ANI. You need to build your own www site, script and database to return to the results - however you probably already have most of this in the form of an internal company phonelist. We are using CUCM 6 & 7 and a 2821 for the voice infrastructure, and IIS and SQL which is feed from Active Directory for the database infrastrucutre. It all works perfectly with about 3000 numbers in the database.
The functionality is enabled by a TCL script that goes on the PSTN gateway router. The script came from Cisco initially and works like this:
Router gets an incoming PSTN call that matches the DID dial peer.
Router executes the attached script (caller_name.tcl)
caller_name.tcl sends a www POST request with the parameter "ani" which is the caller's number / ani to your www server
you build a website at http://x.x.x.x/IPTelephony/Default.asp that takes the ani as a POST and looks it up in your corporate directory
your script at http://x.x.x.x/IPTelephony/Default.asp must return either the plain text-only name like "Joe Bloggs" or another string like "Unknown Caller" -- no html or anything else, just characters
the characters/string returned from the script is displayed on the screen of the IP Phones
You need to get the caller_name.tcl script and do this:
change x.x.x.x to the IP of your webserver
change y.y.y.y to the IP of your publisher
load the script into the TFTP root on your publisher
setup your x.x.x.x website and scripts and database (the hard bit)
add these commands to your gateway:
application
service caller tftp://y.y.y.y/caller_name.tcl
dial-peer voice 4000 pots
description Incoming PSTN Calls
service caller
incoming called-number 99999999..$
direct-inward-dial
and your done…
Also - if you use remote destinations / mobility / snr then the CUCM will overwrite whatever ANI response the tcl script gets. So if altering name is set for a remote destination (mobile phone) then it will overwrite whatever the gateway puts there.
Hope this helps someone --- it really should be a standard feature from Cisco but its not. It seems whenever I replace a PABX with a Cisco solution this is one of the first things users ask for - as most PABX's could have global name / outside number combinations in a directory or abbreviated numbering.
Nick.
From: Jason Burns [mailto:burns.jason at gmail.com]
Sent: Friday, 28 November 2008 2:59 PM
To: Mooney, Nicholas
Cc: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] Adding names for outside callers
The Mobility feature in CallManager 6.X might do what you're looking for.
When the remote device associated with a particular user calls in, CallManager does know which user is making the inbound call. I don't know what the display info would be on these calls though.
On Thu, Nov 27, 2008 at 9:40 PM, Mooney, Nicholas < Nicholas.Mooney at astrazeneca.com > wrote:
Hi
We have a requirement for our staff with mobile/cell phones calling to CallManager to have their name displayed when the phone is ringing, along with their number.
I know it can be achieved on ARC Enterprise if you add the external numbers to phone book, but we need it display on all general SCCP handsets (such 7942).
Any ideas? Can the names be added on the gateway (h.323) or through a translation pattern or a TCL script?
Up to 500 names/numbers would be needed.
Regards,
Nick
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip
_______________________________________________ cisco-voip mailing list 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/20090507/570f91a5/attachment.html>
More information about the cisco-voip
mailing list