[Asterisk-Users] Write to text file in dialplan
Tzafrir Cohen
tzafrir at cohens.org.il
Fri Dec 2 02:03:26 MST 2005
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 | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir at cohens.org.il | | best
ICQ# 16849755 | | friend
More information about the asterisk-users
mailing list