What about the situation where there is no voicemail box for an 
extension.  Is there a way to tell the difference between "the phone 
isn't registered" and "there is no phone at that extension"?

Doug Lytle wrote:
>> exten => s-CHANUNAVAIL,1,Voicemail(${ARG1}|b)
>> exten => s-CHANUNAVAIL,n,Hangup
>>   
> Checks for mailbox existence, if it doesn't exist, sends it to the 
> incoming context where further check of time of day and then on to the 
> operator.  If it does exist, return from the Gosub and continue processing:
> 
> exten => s-CHANUNAVAIL,1,Gosub(mailbox_exist,s,1)
> exten => s-CHANUNAVAIL,n,Playback(beep)
> exten => s-CHANUNAVAIL,n,Voicemail([EMAIL PROTECTED]|u)
> exten => s-CHANUNAVAIL,n,Hangup()
> 
> 
> [mailbox_exist]
> 
> exten => s,1,Set(_direct_vm=${ARG1})
> exten => s,n,MailboxExists([EMAIL PROTECTED])
> exten => s,n,Goto(s-${VMBOXEXISTSSTATUS},1)
> exten => s-FAILED,1,Answer()
> exten => s-FAILED,n,Wait(1)
> exten => s-FAILED,n,Playback(vm-theperson)
> exten => s-FAILED,n,SayDigits(${direct_vm})
> exten => s-FAILED,n,Playback(vm-nobox)
> exten => s-FAILED,n,Playback(pbx-transfer)
> exten => s-FAILED,n,Goto(incoming,s,1)
> exten => s-SUCCESS,1,Return()
> 
> 
> Doug
> 
> 


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to