Is there any way to detect if a user has a mailbox? I want to send all call which match _14XXX to voicemail except if the user doesn't have a voicemail box. Thanks Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050404/ef600a88/attachment.htm
> Is there any way to detect if a user has a > mailbox? I want to send all call which match _14XXX to > voicemail except if the user doesn't have a voicemail box...This is what I have: _3XXX,1,Dial(SIP/${EXTEN}) _3XXX,2,Voicemail(${EXTEN}) _3XXX,3,Hangup _3XXX,102,Voicemail(${EXTEN}) _3XXX,103,Playback(invalid) _3XXX,104,Hangup SIP client is called. If it is not logged in, calls it's voicemail. If voicemail doesn't exist, plays back invalid. If SIP client is busy, goes to voicemail as well. Nabeel
See the "MailboxExists" application. If the mailbox exists, it branches to context n+101. -----Original Message----- From: Tim Connolly [mailto:tim@timsnet.com] Sent: Monday, April 04, 2005 10:26 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Voicemailbox detection: Is there any way to detect if a user has a mailbox? I want to send all call which match _14XXX to voicemail except if the user doesn't have a voicemail box... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050405/470f82a0/attachment.htm
On Apr 5, 2005 12:26 PM, Tim Connolly <tim@timsnet.com> wrote:> > > Is there any way to detect if a user has a mailbox? I want to > send all call which match _14XXX to voicemail except if the user doesn't > have a voicemail box?Have you looked at the MailboxExists app? What you want could be done quite easily. The following is from memory, but it should be close enough: exten => _14XXX,1,MailboxExists(${EXTEN}@default) exten => _14XXX,2,Here goes the stuff if there's no mailbox exten => _14XXX,102,Voicemail(u${EXTEN}) -Shaun