[asterisk-users] Custom App

Sascha Ferley sascha.ferley at infineon.net
Sat Mar 6 16:09:06 CST 2010


Hi, 

Trying for figure out how to write a custom app for asterisk, without
neccisarrily having to utilize the AGI interface. I want to accomplish this
in the dial plan if possible.
What I am trying to do is to write a application which is like the directory
but runs through all the extensions.
My thought for this was to utilize the voicemail.conf [default] context, as
any of the voicemail users will have the ³greet.wav² message set and could
use this file to play. However I don¹t know how to do a ³for² loop in the
asterisk context.

Here is the algorithm I am trying to follow:

For i in [default];   <-- default context of the voicemail.conf file
    check if exist (/var/spool/asterisk/voicemail/device/$i/greet.wav);
    do Playback(/var/spool/asterisk/voicemail/device/$i/greet.wav);
    Wait(1)
    Playback(extension)
    SayDigits($i); 
Done

Can anyone give me any suggestion on how I may implement this?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100306/470a999c/attachment.htm 


More information about the asterisk-users mailing list