I'm not exactly sure what you are looking for, but I know you can use GotoIf
to do conditionals based off criteria in the astdb.
Kyle
On 4/4/06, Dan Journo <danjourno@gmail.com> wrote:>
> Hi,
>
> Please take a look at the following extensions.conf:-
>
> exten => _11XXXX,1,NoCDR()
> exten => _11XXXX,2,Dial(SIP/${EXTEN},10)
> exten => _11XXXX,3,VoiceMail()
>
> I'm already using realtime for some extensions/users/voicemail.
>
> Is there any way to do the following at point 3?:-
>
> Lookup the realtime users db and read the MailBox column for that buddy.
> If the mailbox column is empty, play a message saying "Sorry, no one
is
> available."
> If the column has data in it, do the following:-
>
> exten => _11XXXX,3,VoiceMail(MailBoxID)
>
> Many thanks
>
> Dan Journo
> http://www.TextOver.com
>
>
> _______________________________________________
> --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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060404/3b4fba5b/attachment.htm