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([EMAIL PROTECTED])

If a regular user or someone from outside calls 101, it goes to 116
(secretary)
If secretary calls 101 it goes through.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to