![]() ![]() P = the Multicast UDP port from which to receive the RTP stream. I = the Multicast IP Address from which to receive an RTP stream No change made.In the CUCM, create an IP Phone Service in the menu Device / Device Settings / Phone services. Local newHeader = string.gsub(string.lower(header), "sip\:restricted", replacementNumber) replace the word unavailable with the user defined replacement number Local newHeader = string.gsub(string.lower(header), "sip\:unavailable", replacementNumber)Įlse if string.find(string.lower(header), "sip\:restricted") replace the word unavailable with the user defined replacement numbe Trace.format("Found string unavailable in %s", fields) Trace.format("New %s Field: %s", fields, newHeader)Įlse if string.find(string.lower(header), "sip\:unavailable") Local newHeader = string.gsub(string.lower(header), "sip\:anonymous", replacementNumber) replace the word anonymous with the user defined replacement number Trace.format("Header: %s %s", fields, string.lower(header)) Trace.format("Found string anonymous in %s", fields) If string.find(string.lower(header), "sip\:anonymous") Trace.format("Field %s: %s", fields, header) Trace.format("Field %s not found", fields) loop though the header fields to inspect and replace any instance of 'anonymous' with the specified replacement number Trace.format("Fields/Count: %s, %s, %s, %s, %s", fields, fields, fields, fields, numberOfFields) Set the header values to inspect for anonymous caller Trace.format("Replacement Number: %s", replacementNumber) set the string to replace the anonymous, unavailable or restricted strings in the INVITE message change to trace.enable() to have trace output in SDIįunction M.inbound_INVITE(msg) -capture inbound INVITE messages Email the trace file, current SIP trunk script (if changes were made), and a description of the issue that includes the date, time, calling/called numbers and the result to Dan Keller for review to Script:.When configuring this script, set the “LUA Instruction Threshold” to 1500.Place a couple of calls into the trunk to demonstrate the issue.Change the “trace.disable()” to “trace.enable()”.If the script does not behave as expected:.This script is entirely authored and supported by Dan Keller at Cisco Systems, and I thank and appreciate all his efforts supporting this feature and script.The Script is not officially supported by Cisco TAC, Cisco Systems, or any of it’s affiliates (TAC will assist on a best-effort basis).The script is a proof of concept script and should be tested prior to deployment into a production environment.Most folks expect that a call from an unknown caller to show as private, so this bahavoir is more in line with normal expectations. The biggest benefit to the new script in my opinion is that the display on the phone for allowed anonymous calls in most cases will be “private”. This new updated script however, removes the unroutable string completely, allowing Call Manager to route or block based on a route pattern in the partition. The original script basically replaced this with a specific string of digits that you would choose. Due to this, when routing based on ANI, and the ANI was “anonymous” or “unavailable”, Call Manager would not accept the call. In CUCM 8.5 and previous, digit analysis did not handle non-numeric dial strings. I had previously posted a script that would still allow you to block specific calls, while still having the flexibility to allow or block “Anonymous” or restricted calls. So, for example, if you wanted to route all calls from a specific customer, to a specific employee or Call Handler etc., this would give you that ability. This is a follow-up of sorts to a previous blog I posted on how to route calls into your Cisco Call Manager based on the calling ANI, or in layman’s terms, the caller-id of the ingress call. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |