<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 &#8220;greet.wav&#8221; message set and could use this file to play. However I don&#8217;t know how to do a &#8220;for&#8221; loop in the asterisk context.<BR>
<BR>
Here is the algorithm I am trying to follow:<BR>
<BR>
For i in [default]; &nbsp;&nbsp;&lt;-- default context of the voicemail.conf file<BR>
&nbsp;&nbsp;&nbsp;&nbsp;check if exist (/var/spool/asterisk/voicemail/device/$i/greet.wav); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;do Playback(/var/spool/asterisk/voicemail/device/$i/greet.wav); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;Wait(1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Playback(extension)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;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>