Disable external calls for some extentions

Hi Everyone,

I am new to freepbx and was wondering if anyone can help me out,

I need to setup 3 extensions but I only want them to dial other extensions on the network and not make any external telephone calls.

Hope someone can help me.

Kind Regards

Craig.

You can use the Custom context module to do that. Create a new custom context, deny all outbound routes and then change the context on those 3 extensions to the new custom context.

If you find that custom contexts is too difficult to work with (or you just don’t like the idea of using an unsupported module) there is another way to restrict calls, as described in this post:

http://www.freepbx.org/forum/freepbx/users/a-different-approach-to-placing-outgoing-calling-restrictions-on-certain-extensi

@wiseoldowl, this could solve this problem that I am facing?

The problem is how to create a dial permission no local numbers (2XXXXXXXX) and also have the usual internal features, like voice mail, DND, speed dial, etc?

After the search I realize that I need to use the contexts, and in the extensions.conf create the context “Nacional”.

Ok, after I include the “includes” to be able to use the internal features.

So do you agree with my dialplan? Or I have too many Includes on it? This kind of users can only dial the numbers that start with with 2x and the speed dial numbers.

[nacional]
include => from-internal-custom
include => app-dialvm
include => app-vmmain
include => app-speeddial
include => app-queueprio
include => vmblast-grp
include => app-languages
include => app-callwaiting-cwoff
include => app-callwaiting-cwon
include => ext-paging
include => ext-queues
include => ext-meetme
include => app-dnd-off
include => app-dnd-on
include => app-dnd-toggle
include => ext-dnd-hints
include => app-daynight
include => app-fmf-toggle
include => ext-findmefollow
include => fmgrps
include => app-calltrace
include => app-directory
include => app-echo-test
include => app-speakextennum
include => app-speakingclock
include => app-recordings
include => app-cf-busy-off
include => app-cf-busy-off-any
include => app-cf-busy-on
include => app-cf-off
include => app-cf-off-any
include => app-cf-on
include => app-cf-unavailable-off
include => app-cf-unavailable-on
include => app-blacklist
include => ext-group
include => grps
include => app-pbdirectory
include => app-gabcast
include => app-dictate-record
include => app-dictate-send
include => app-userlogonoff
include => app-pickup
include => app-zapbarge
include => app-chanspy
include => ext-test
include => ext-local
exten => _02xxxxxxxx,1,Dial(SIP/siptest/${EXTEN})
exten => _02xxxxxxxx,n,Congestion()
exten => _02xxxxxxxx,n,Hangup()

Thanks