[asterisk-users] Only secretary can call the boss, all others only reach the secretary when dial the boss extension

Matt mhoppes at gmail.com
Fri Mar 16 12:39:31 MST 2007


How about this?

We will assume the boss is named Andrew and is 101 and his secretary is 116.

;Boss Extension (Custom)
exten => 101/116,1,Dial(SIP/101,30,tr)
exten => 101/116,2,Goto(andrewvm,1)
exten => 101,1,SetCallerID("Andrew ${CALLERIDNAME}" <${CALLERIDNUM}>)
exten => 101,2,Dial(SIP/116,30,tr)
exten => 101,3,Goto(andrewvm,1)
exten =>
andrewvm,1,Background(/var/spool/asterisk/voicemail/default/101/unavail)
exten => andrewvm,2,Voicemail(s101 at default)

If a regular user or someone from outside calls 101, it goes to 116
(secretary)
If secretary calls 101 it goes through.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070316/31ae7fc7/attachment.htm


More information about the asterisk-users mailing list