[asterisk-users] AGI with System() ?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Oct 14 07:50:43 CDT 2007


On Sun, Oct 14, 2007 at 05:43:27AM -0700, Dominic Son wrote:
> Ok, this is what worked:
> EXEC System "rm -rf /var/lib/asterisk/sounds/blah.gsm"
> the -rf eliminates the hassle.. a dream come true it worked !

-r sure wasn't needed . -f then? But this is the default of rm. The
shell got in your way?


EXEC System "/bin/rm /var/lib/asterisk/sounds/blah.gsm"

And still, getting a System through Asterisk is an overkill and
introduces an extra layer of complication and inefficiency. Use you
language's equivalent of system(3) .

-- 
               Tzafrir Cohen       
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list