[asterisk-users] URgent - capturing 'answered'

Steve Edwards asterisk.org at sedwards.com
Mon Jul 26 13:16:06 CDT 2010


On Mon, 26 Jul 2010, Zarko Zivanovic wrote:

> I did try what you said, but it didnt create any files:
>
> $message="/bin/echo my variables are '$loc', '$variable1', '$variable2' >>
> /tmp/variables.txt";
> system("$message");

I'm just a c weenie, but that syntax would execute a command named 
$message, not the value of the variable $message.

Would

 	system($message);

do what you want?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list