Split the contexts up even more. Keep in mind the SIP users you setup can all
start in a different context and you can have your incoming zap calls start in a
different context.
Ie, make a context that includes ability to dial internally and outside. Then
make another context that just inclu
Alvaro:
I dont think such a thing exists for a simple reason. I you think
things "right", you will be able to end with a good combination of
contexts.
In your case, having:
[internal]
include => invalid
exten => _XX,1,Dial(SIP/12345${EXTEN}) ; Short alias for internal lines
exten => _12345XX,1,
I've defined my dialplan as showed below. My internal lines are numbered
as 12345XX, and internal users can call another by the entire 7-digits
extension, or by just last 2 digits.
[invalid]
exten => _X.,1,Playback(pbx-invalid)
exten => _X.,2,Hangup()
[internal]
include => invalid
exten => _XX