Open Source Training Seminar


Not Logged in - No Account?

Logging in allows you to post to forums, track new posts, subscribe to threads, pm (private message) other members, and receive periodic news letters. Once logged in this message disappears. No account? Create one by registering here. Lost your password, request a new password. We respect your privacy and collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for details.


extension to extension call block

tellajit's picture

Hi,

I have 20 extensions on my freepbx, some starts with 1501, 1502 etc and some starts with 1601, 1602 etc.. I want to block call between them so that they can not call each other. 150X ext can not call 160X ext and 160X ext can not call 150X ext.

Please help on this.


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Open extensions_custom.conf

jmullinix's picture

Open extensions_custom.conf in the config editor. Add the from-group-15 and from-group-16 contexts to the bottom of the file. Make them look like this.

[from-group-15]

exten => _16XX,1,playback(ss-noservice)
exten => _16XX,n,Hangup()
include => from-internal

[from-group-16]

exten => _15XX,1,Playback(ss-noservice)
exten => _15XX,n,Hangup()
include => from-internal

That should do it.


__________________

John Mullinix, Cohutta.Com, Inc.
1-706-632-3343 -- sip://17066323343@qth.cohutta.org
Looking for Dundi peers in Baltimore, MD and Lake Wales, FL USA


extension to extension call block

tellajit's picture

Hi,

I tried this but doesnt work.please help


This won't work, of course,

dinhtrung's picture

This won't work, of course, because asterisk will use the longest match patterns. For example, you've got extension 1501, 1502 and 1603, 1604. You can do like this:
- Change the context field of 1501, 1502 to from-internal-15x
- Change context of 1603, 1604 to from-internal-16x
- Add these context into extension_custom.conf
[from-internal-15x]
exten => _150X, 1, goto(from-internal, ${EXTEN}, 1)

[from-internal-16x]
exten => _160X, 1, goto(from-internal, ${EXTEN}, 1)

That should solve the problem.


__________________

QiS Technologies, ltd


extension to extension call block

tellajit's picture

Hi,

Thanks for your reply

I tried this and reload but they are still able yto call each other.

Please help