[Asterisk-Users] Realtime Database Lookup

Dan Journo danjourno at gmail.com
Tue Apr 4 07:21:53 MST 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060404/6fc3f8db/attachment.htm


More information about the asterisk-users mailing list