[asterisk-users] AGI with System() ?

Dominic Son dominicson at gmail.com
Sat Oct 13 18:35:28 CDT 2007


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...

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)"
> >
> > through AGI
>
> agi show exec
>  Usage: EXEC <application> <options>
>         Executes <application> with given <options>.
>
> So I'd try
> EXEC System rm foo
> or
> EXEC System rm\ foo
>
> But I don't understand why you would want to do that instead of
> just running the command in your script.
>
> 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
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list