On Thu, Dec 01, 2005 at 04:43:25PM -0800, Innocent Evil wrote: > Sorry, to misinterpret. > I also never tried this. > > Let me make a simple AGI script that will do this > > > > #!/usr/bin/env ruby > > message = ARGV.shift > $stderr.puts "\n#{Time.now} #{message}" > > > just put the above lines in a file in agi-bin direcotry say, 'Echo' > and call it like this > exten => s,7,AGI(Echo|"Executing <context>, <extension>, <priority>") > > this will put the message in standard error, you will see it in your CLI > screen of asterisk.
But will run ruby, rather than simply /bin/sh (for every call) as in the System() case. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users