Skip to main content

Block from IVR Option

Posted by etornetworks on Wed, 01/10/2018

I have a paging system setup inside as an extension- anyone that dials this extension can page into the loud speaker system.

The problem is, someone from the outside is calling in!

How can I specify a particular 3 digit extension to be dropped when dialed from in the IVR?


Submitted by netriplex on Wed, 01/10/2018 Permalink

You cannot as far as I am aware.

Typically we would setup a paging system as a special line and attach it to a feature code (which can be disabled from IVRs and are disabled by default from IVRs actually).

Submitted by volodya on Thu, 01/11/2018 Permalink

Hello,

Alternatively, if you really want to keep using User Extension for your paging system, you can perform following steps:

1. Clone User extension script (default is tl-stdexten).
2. Modify clone script. You can add caller's ID number check to see if the call goes from inside of the system or from carrier. Based on that pass or reject it.
3. Modify User extension. Set your custom script on Advanced tab.

Submitted by etornetworks on Thu, 01/11/2018 Permalink

Is there a way to have a custom field on the IVR?
as an example- if inbound caller enters extension 222, it will go back to an autoattendant or another extension?

i only see the pre-defined feilds matching the keys available on a phone.

Submitted by volodya on Thu, 01/11/2018 Permalink

You can add as many custom numbers or patterns, separated with comma in "Additional allowed dialing pattern(s)" field on Options tab as you need. Each of them will get "Goto(from-inside-test,${EXTEN},1)" dialplan string in IVR's context.

For even more customizability you can use /etc/asterisk/user_extensions.include dialplan file. It is ment for user custom dialplan and is not getting overwritten on system updates. Following three lines will allow IVR test in tenant test to execute simple custon dialplan when user will dial 440. Please be sure to test system behavior in your particular case if you will decide to override User extensions or Feature Codes while they are being allowed to dial.

[test-test]
exten => 440,1,NoOp(You dialed 440 in test IVR)
exten => 440,n,Hangup

Submitted by eeman on Wed, 02/07/2018 Permalink

actually, much simpler, dont use a user extension for your overhead paging. Use a special line. Map a feature code to the special line using a very simple script to dial the device (why would you want FM/FM, forwading, voicemail and other crap on a paging extension anyway). Disallow the IVR to call feature codes.

Solved.