[asterisk-users] URgent - capturing 'answered'

Zarko Zivanovic outlaw011 at gmail.com
Tue Jul 27 04:15:30 CDT 2010


No, neither that didnt work.

Even this:

# Create a new file and write to it
File.open('log.txt', 'w') do |f2|
# use "\n" for two lines of text
   f2.puts "Created by Satish\nThank God!\n my variables are '$loc',
'$agi.get_variable(EXTEN)', '$variable1', '$variable2' "
end


                        $my.query("UPDATE call_log SET endtime = NOW() WHERE
id = #{call_log_id}")


- query gets executed, but log.txt wasnt created.

Not to mention that I still didnt manage to catch who answered the call.


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Edwards
Sent: Monday, July 26, 2010 8:16 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] URgent - capturing 'answered'

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

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5315 (20100726) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5315 (20100726) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 




More information about the asterisk-users mailing list