<HTML>
<HEAD>
<TITLE>Custom App</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><DEFANGED_SPAN STYLE='font-size:11pt'>Hi, <BR>
<BR>
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.<BR>
What I am trying to do is to write a application which is like the directory but runs through all the extensions. <BR>
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.<BR>
<BR>
Here is the algorithm I am trying to follow:<BR>
<BR>
For i in [default]; <-- default context of the voicemail.conf file<BR>
check if exist (/var/spool/asterisk/voicemail/device/$i/greet.wav); <BR>
do Playback(/var/spool/asterisk/voicemail/device/$i/greet.wav); <BR>
Wait(1)<BR>
Playback(extension)<BR>
SayDigits($i); <BR>
Done<BR>
<BR>
Can anyone give me any suggestion on how I may implement this?<BR>
<BR>
Thanks<BR>
</DEFANGED_SPAN></FONT>
</BODY>
</HTML>