[asterisk-users] Rookie question, trying to learn

Randy Paries rtparies at gmail.com
Thu Aug 3 09:33:55 MST 2006


On 8/3/06, Marco Mouta <marco.mouta at gmail.com> wrote:
> Hi,
> Your Consultant has developed it with PHP scripts, so you must check those
> files in
>
> /var/lib/asterisk/agi-bin
>
> Your application logic is there.
>
> Hope it helps,
> Best regards,
> Marco Mouta
>
>
>


Marco (thanks for the response)

so if understand this correctly, i need to place these calls
ResponseTimeout(seconds)
and
use 'Set(TIMEOUT(digit)=timeout)'
in  my leavemsg.php
based on
#cat /etc/asterisk/extensions.conf
[leavemsg]
exten => lm,1,AGI(leavemsg.php)
exten => lm,2,DeadAGI(convert2mp3.php)
exten => lm,4,DeadAGI(setpriv.php)

So this is a stupid question

In my leavemsg.php i see things like
fwrite(STDOUT,"SET PRIORITY $priority\n");

so i assume he is building something on the fly

so if i want to add these commands , i would  do somthing like
fwrite(STDOUT,"ResponseTimeout(seconds)\n");

Am i on the write path?

Thanks



More information about the asterisk-users mailing list