[asterisk-users] AGI with System() ?
Philipp Kempgen
philipp.kempgen at amooma.de
Sat Oct 13 19:15:05 CDT 2007
Dominic Son wrote:
> tried both as suggested...though AGI says it's succesful:
>
> AGI Rx << EXEC System rm /var/lib/asterisk/sounds/abandons.gsm
> AGI Tx >> 200 result=0
>
> the abandons.gsm file is still there...
Umm, then I don't know what's going wrong.
> i have to delete it through my agi because i'm recording sounds, and i
> want users to hear their recording and redo it if they choose to.
>
> so there's a 'RECORD FILE', but not a 'DELETE FILE' .. : T
>
> On 10/13/07, Philipp Kempgen <philipp.kempgen at amooma.de> wrote:
>> Dominic Son wrote:
>>
>>> Uuugh..for the life of me, i cannot delete sound files using
>>> "EXEC System(rm /var/lib/asterisk/sounds/blah.gsm)"
>> But I don't understand why you would want to do that instead of
>> just running the command in your script.
You did not get my point. Why not just do something like
unlink('/var/lib/asterisk/sounds/abandons.gsm');
or
exec('rm -f '.escapeShellArg('/var/lib/asterisk/sounds/abandons.gsm'));
in your script? (examples are for PHP)
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
More information about the asterisk-users
mailing list