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 'adhearsion' | |
require 'adhearsion/tasks' | |
desc "Writes a .gitignore file that ignores certain SCM annoyances such as log files" | |
task :gitignore do | |
ignore_file = "#{Dir.pwd}/.gitignore" | |
if File.exists? ignore_file | |
STDERR.puts "File #{ignore_file} already exists!" | |
else |
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
rubyforge (1.0.0) | |
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
# | |
# This file was generated by RubyGems. | |
# | |
# The application 'jicksta-adhearsion' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'rubygems' |
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
ERROR agi: #<RuntimeError: "DESC PCO_OUTBOUNDSERVICE" failed; does it exist?> | |
ERROR agi: (eval):3:in `describe' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:327:in `columns' | |
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1149:in `columns' | |
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1162:in `column_names' | |
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2472:in `inspect' | |
/Users/jsgoecke/Documents/Development/asserted-identity/dialplan.rb:4:in `load' | |
/opt/adhearsion/lib/adhearsion/voip/dial_plan.rb:39:in `instance_eval' | |
/opt/adhearsion/lib/adhearsion/voip/dial_plan.rb:39:in `run' | |
/opt/adhearsion/lib/adhearsion/voip/dial_plan.rb:100:in `handle' |
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
##Code | |
require 'rubygems' | |
require 'active_record' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'oracle', | |
:database => '10.0.1.22/xe', | |
:username => 'mine', | |
:password => 'mine') | |
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
ERROR agi: #<OCIError: ORA-01017: invalid username/password; logon denied> | |
ERROR agi: env.c:257:in oci8lib.so | |
/Library/Ruby/Site/1.8/oci8.rb:229:in `initialize' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:623:in `new' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:623:in `new_connection' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:659:in `initialize' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:35:in `new' | |
/Library/Ruby/Gems/1.8/gems/activerecord-oracle-adapter-1.0.0/lib/active_record/connection_adapters/oracle_adapter.rb:35:in `oracle_connection' | |
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in ` |
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
INVITE sip:[email protected] SIP/2.0 | |
Via: SIP/2.0/UDP 10.0.1.12:5060;branch=z9hG4bK36c829be;rport | |
From: "Test 9999" <sip:[email protected]>;tag=as327c486e | |
To: <sip:[email protected]> | |
Contact: <sip:[email protected]> | |
Call-ID: [email protected] | |
CSeq: 102 INVITE | |
User-Agent: Asterisk PBX | |
Max-Forwards: 70 | |
Date: Fri, 17 Oct 2008 18:12:44 GMT |
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
Sub Main() | |
' Presence Agent activation | |
frmInBoundDemo.PresenceInterfaceX1.Active | |
'Connection to services | |
frmInBoundDemo.PresenceInterfaceX1.ConnectToService (2001) | |
frmInBoundDemo.PresenceInterfaceX1.ConnectToService (2051) | |
End Sub |
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
if (pinst == (CPresenceInterfaceX *)0) { | |
pinst = new CPresenceInterfaceX; | |
RECT r; | |
pinst->Create ("Presence",0, r, this, 10000, NULL); | |
this->SetFocus(); | |
if ( m_debug == 1 ) { | |
logfile << "doAssign [" << agentid << ", " << passwd << "]: About to activate presence." << endl; | |
} | |
pinst->Active(); |
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
Private Sub ScheduleRecord(Date As Date, Comments As String, | |
Captured As Integer) | |
'This function allows the schedule of a record for an outbound service | |
'in order to be called subsequently. | |
'Indicates the scheduled date | |
PresenceInterfaceX.ScheduledDate = Date | |
'The contact is qualified as scheduled -Code 90- | |
PresenceInterfaceX.ContactCode = 90 | |
'Indicates whether the call is to be captured | |
'1 à Capture call |
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
@@mutex = Mutex.new | |
lookup = @@mutex.synchronize { @@cache[some_lookup] } |