ruby-agi 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/examples/call_log.rb +18 -0
  2. metadata +2 -1
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # File : call_log.rb
4
+ # Purpose: log caller and calleridname in syslog as warning message
5
+ # Author: Mohammad Khan, info@beeplove.com
6
+ # Liscense: GNU GENERAL PUBLIC LICENSE
7
+ #
8
+
9
+
10
+ require 'syslog'
11
+ require 'rubygems'
12
+ require_gem 'ruby-agi'
13
+
14
+
15
+ log = Syslog.open("call_log.rb")
16
+ agi = AGI.new
17
+
18
+ log.warning("#{agi.callerid} <#{agi.calleridname}>")
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: ruby-agi
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
6
+ version: 1.0.1
7
7
  date: 2006-01-08 00:00:00 -05:00
8
8
  summary: Ruby Language API for Asterisk
9
9
  require_paths:
@@ -39,6 +39,7 @@ files:
39
39
  - lib/ruby-agi/error.rb
40
40
  - lib/ruby-agi/return_status.rb
41
41
  - lib/ruby-agi.rb
42
+ - examples/call_log.rb
42
43
  - Release-Notes
43
44
  test_files: []
44
45