Extensions for Hotel I know it's a topic already covered but [SOLVED]

Extensions for Hotel I know it’s a topic already covered but …

I wish that the extensions could not call the other extensions apart from the reception and everything is ok but I would like that if they dial a longer number of the extensions for example over 5 digits they can still make calls

for this purpose I created a context like this that allows you to call only one extension:

[from-room-phone]
exten => 16,1,Goto(from-internal,${EXTEN},1) ; assuming they press 0 for the front desk
exten => _[*0-9]!,1,Playback(ss-noservice) ; block everything
exten => h,1,Hangup()

But how can I tell him now that if the number dialed is over 5 digits he can call …?

Use rather the predial hook for internal calls, all external calls will not be intercepted.

I did something similar

for now I’m happy with this:
I call the extension I want and I call the mumber with over 3 digits …

[from-room-phone]
exten => 16,1,Goto(from-internal,${EXTEN},1) ; assuming they press 0 for the front desk
exten => _X,1,Playback(ss-noservice) ; block everything
exten => _XX,1,Playback(ss-noservice) ; block everything
exten => _XXX,1,Playback(ss-noservice) ; block everything
exten => _.,1,Goto(from-internal,${EXTEN},1) ; assuming they press 0 for the front desk
exten => h,1,Hangup()

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.