Extension restriction

MageMinds

Joined
Jun 26, 2008
Messages
55
Likes
0
Points
0
#1
I'm looking to prevent a specific extension from using my trunks, I want that extension to only remain into the internal system. That extension is one of my friend over the Internet and I don't want him to place call using my PBX I only want to allow him to call me on my extension or even dialling every extension in the system that's okay for me.

Is there a context I can send that extension into that will allow me to achieve that? If not can someone help me create a custom context for that?

Thanks in advance.<br><br>Post edited by: MageMinds, at: 2008/07/02 23:05
 

MageMinds

Joined
Jun 26, 2008
Messages
55
Likes
0
Points
0
#2
I got it working, I had to install Custom Context module in FreePBX.

Code:
cd /var/www/html/admin/modules
wget http://www.zelie.com/~n3glv/asterisk/customcontexts-0.3.3.tgz
tar -xzvf customcontexts-0.3.3.tgz
rm -f customcontexts-0.3.3.tgz
Then in the Unembedded FreePBX in module admin you will see a local module to install.

In the module you create a new context, I called it from-internal-restricted and then you save it, after that you can allow or deny access to all the different FreePBX internal context. In my case I have only allowed ext-local and it work as I expect. Oh and don't forget to assign your new custom context to your restricted extension.

It appear to also have time custom contest, but haven tested it.
 

Members online

No members online now.

Forum statistics

Threads
30,952
Messages
130,980
Members
17,654
Latest member
janko67
Top