This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Message from Audix: | |
Received: by CKGIALX.com (Avaya(tm) Intuity AUDIX LX); Mon, 24 Nov 2008 16:15:59 -0500 (EST) | |
Message-ID: <[email protected]>; | |
From: "External Call" <[email protected]>; | |
To: 354@CKGIALX. | |
Date: Mon, 24 Nov 2008 16:15:59 -0500 (EST) | |
X-POP3-Rcpt: CKGIALX!354@CKGIALX | |
MIME-Version: 1.0 | |
Content-Type: image/tiff | |
Content-Description: Fax image (3 pages) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'configatron' | |
require 'net/pop' | |
require 'net/smtp' | |
require 'tmail' | |
require 'uuidtools' | |
$config = configatron.configure_from_yaml(File.expand_path(File.dirname(__FILE__) + "/config/config.yml")) | |
loop do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'configatron' | |
require 'net/pop' | |
require 'net/smtp' | |
require 'tmail' | |
require 'uuidtools' | |
$config = configatron.configure_from_yaml(File.expand_path(File.dirname(__FILE__) + "/config/config.yml")) | |
loop do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'net/http' | |
begin | |
http = Net::HTTP.new('localhost', 4567) | |
path = '/call' | |
data = 'destination=4155551212&source=303&serviceid=8051' | |
rescue => err | |
puts err | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Note: did not work with SQL Server, will work with Oracle, MySQL | |
#require AR | |
require 'rubygems' | |
require 'active_record' | |
# connect to the Database | |
ActiveRecord:: Base.establish_connection( | |
:adapter => "oracle", | |
:database => "172.30.10.140/xe", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost test]# ruby db_connection_test.rb | |
/usr/lib/ruby/gems/1.8/gems/activerecord-oracle-adapter-1.0.0.9250/lib/active_record/connection_adapters/oracle_adapter.rb:720:in `oracle_connection': Oracle/OCI libraries could not be loaded: /usr/lib/oracle/11.1.0.1/client/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied - /usr/lib/ruby/site_ruby/1.8/i386-linux/oci8lib.so (LoadError) | |
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `send' | |
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `connection=' | |
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:260:in `retrieve_connection' | |
from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection' | |
from / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Context created to support click-to-call functionality | |
; | |
;Context for the customer connection | |
[pbx_click_to_call] | |
exten => _X.,1,AGI(agi://localhost) | |
exten => _X.,n,Hangup | |
;Context for the agent connection | |
[local_click_to_call] | |
exten => _X.,1,Dial(SIP/${EXTEN}@avaya) | |
exten => _X.,n,Hangup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Context created to support click-to-call functionality | |
; | |
;Context for the customer connection | |
[pbx_click_to_call] | |
exten => _X.,1,AGI(agi://localhost) | |
exten => _X.,n,Hangup | |
;Context for the agent connection | |
[local_click_to_call] | |
exten => _X.,1,Dial(SIP/${EXTEN}@avaya) | |
exten => _X.,n,Hangup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; Context created to support click-to-call functionality | |
; | |
;Context for the customer connection | |
[pbx_click_to_call] | |
exten => _X.,1,AGI(agi://localhost) | |
exten => _X.,n,Hangup | |
;Context for the agent connection | |
[local_click_to_call] | |
exten => _X.,1,Dial(SIP/${EXTEN}@avaya) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asterisk = ManagerInterface.connect :host => "127.0.0.1", :username => "ami-test", :password => "test", :events => true | |
DEBUG ami: Sending AMI action: | |
>>> Action: login | |
>>> ActionID: JDzCkmk4-0FVm-iVwi-waBe-PE1gNuO77JUH | |
>>> Username: ami-test | |
>>> Secret: test | |
>>> Events: Off | |
>>> | |
INFO ami: Successful AMI connection into [email protected] |