04-11-2012 11:44 AM - edited 03-14-2019 09:41 AM
Hi,
I am trying to make a script which would allow calls from only certain phone numbers.
Like e.g. some mobile phones have this option of blocking or not accepting any call from some specific numbers.
Any ideas on how this can be done.
Thanks and best regards,
04-11-2012 11:56 AM
Collect the caller ID, strip off the NPA (area code), and compare it to an XML document.
If you are blocking or allowing entire NPAs (area codes) and your calls come in via a toll free number, have your telco put on NPA blocking instead.
04-11-2012 01:47 PM
Hi,
I would not even allow calls from blacklisted numbers reach my UCCX, as they would eat up precious bandwidth for the sole reason (of being disconnected very soon). So do your blacklisting at the network edge, ie on your voice gateways, or CUCM's.
G.
Sent from Cisco Technical Support iPad App
04-12-2012 03:01 AM
Hi,
I do this today with XML doc lookup but its only used for nuisance callers.
@gergely . How are you blocking on the network edge? I know on p2p voice gateways you can reject but this has never worked for me and I am not sure if it's an option in cucm.
Regards
Jon
Sent from Cisco Technical Support iPad App
04-12-2012 06:15 AM
Hi,
a common setup:
voice translation-rule 1 rule 1 reject /9193927393/ ! ! voice translation-profile call_block translate calling 1 ! ! dial-peer voice 100 pots call-block translation-profile incoming call_block call-block disconnect-cause incoming call-reject incoming called-number port 1/1:23
Read the whole document:
Of course, the above example does not work with MGCP.
CUCM: it's a bit tricky, but if you happen to have CUCM 8.x you can use the External Routing Rules (CURRI or what they call it now I don't know). Basically it's an XML telling CallManager who to allow.
G.
04-12-2012 06:30 AM
Hi G.
Thanks for that. All my VGW are running SIP so i tried the reject rule but it never seems to work. In the same translation rule i translate the number to prefix a 90 which seems to work....... . I checked the ANI on a debug and im matching the right digits....
In any case, i will look into this External Routing Rules, cheers!
/Jon
04-12-2012 07:09 AM
You can now do this with Translation patterns in CUCM 8.X
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide