Skip to content

Instantly share code, notes, and snippets.

View wwalker's full-sized avatar

Wayne Walker wwalker

View GitHub Profile
deadlock 0x2b62a0ea2b70: sleep:- - /opt/depot/ruby-1.8.7-p160/lib/ruby/gems/1.8/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/manager_interface.rb:427
deadlock 0x2b629f04f358: sleep:- (main) - /opt/depot/ruby-1.8.7-p160/lib/ruby/1.8/monitor.rb:102
/opt/depot/ruby-1.8.7-p160/lib/ruby/1.8/monitor.rb:102:in `stop': Interrupt
from /opt/depot/ruby-1.8.7-p160/lib/ruby/1.8/monitor.rb:102:in `wait'
from /opt/depot/ruby-1.8.7-p160/lib/ruby/gems/1.8/gems/adhearsion-0.8.3/lib/adhearsion/foundation/future_resource.rb:16:in `resource'
from /opt/depot/ruby-1.8.7-p160/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /opt/depot/ruby-1.8.7-p160/lib/ruby/gems/1.8/gems/adhearsion-0.8.3/lib/adhearsion/foundation/future_resource.rb:15:in `resource'
from /opt/depot/ruby-1.8.7-p160/lib/ruby/gems/1.8/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/manager_interface.rb:587:in `response'
from /opt/depot/ruby-1.8.7-p160/lib/ruby/gems/1.8/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/manager_interface.rb:287:in `send_action_synchronously'
from sc.rb:10
[root@app1 ngrep-1.45]# ngrep -d lo port 5038
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip) and ( port 5038 )
####
T 127.0.0.1:5038 -> 127.0.0.1:57163 [AP]
Asterisk Call Manager/1.0..
##
T 127.0.0.1:57163 -> 127.0.0.1:5038 [AP]
Action: login..ActionID: bTd1OgKW-7Fce-Ziqp-lTbN-CpWIZXS2ovCx..Username: 247_manager..Secret: b0n3h34d..Events: Off....
##
[msgdemon@app1 tools]$ ruby sc.rb
DEBUG ami: Sending AMI action:
>>> Action: login
>>> ActionID: QRWHZJ5N-j7h9-HSbZ-wLmi-qOowehyfu0Vq
>>> Username: 247_manager
>>> Secret: b0n3h34d
>>> Events: Off
>>>
INFO ami: Successful AMI actions-only connection into [email protected]
DEBUG ami: Sending AMI action:
[root@bevo ~]# gem install addressable
Successfully installed addressable-2.1.0
1 gem installed
Installing ri documentation for addressable-2.1.0...
Installing RDoc documentation for addressable-2.1.0...
[root@bevo ~]# gem update merb
Updating installed gems
Updating merb
ERROR: While executing gem ... (Gem::InstallError)
data_objects requires addressable (~> 2.0.0, runtime)
[root@bevo ~]# gem update gem
Updating installed gems
Updating rubygems-update
Successfully installed rubygems-update-1.3.4
ERROR: While executing gem ... (NameError)
undefined local variable or method `remote_gemspecs' for #<Gem::Commands::UpdateCommand:0xb7d2690c>
[root@bevo ~]# gem --version
1.2.0
Processing ListsController#new (for 67.79.196.167 at 2009-06-01 15:25:31) [GET]
Parameters: {"controller"=>"lists", "action"=>"new"}
User Load (2.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 5) LIMIT 1
Customer Load (1.0ms) SELECT * FROM `customers` WHERE (`customers`.`id` = 2)
Customer Load (1.0ms) SELECT * FROM `customers`
Rendering template within layouts/application
Rendering lists/new
Rendered lists/_form (1.0ms)
Rendered layouts/_navigation (0.0ms)
Completed in 19ms (View: 7, DB: 4) | 200 OK [http://foo.com/lists/new]
<% form_for @tars_district_registration, :url => { :action => "update" } do |tars_district_registration_form| %>
<% tars_district_registration_form.fields_for :tars_attendees do |attendee_fields| %>
<% if attendee_fields.object.active? %>
First Name: <%= attendee_fields.text_field :first_name %>
Last Name: <%= attendee_fields.text_field :last_name %>
position: <%= attendee_fields.text_field :position %>
email: <%= attendee_fields.text_field :email %>
def specify
@tars_district_registration = TarsDistrictRegistration.find_by_id params[:id]
@tars_district_registration.tars_attendees << TarsAttendee.new
@tars_district_registration.tars_attendees << TarsAttendee.new
@tars_district_registration.tars_attendees << TarsAttendee.new
@tars_district_registration_id = params[:id]
respond_to do |format|
//Build an array of the options for calling
$call_options = array(array (
'exten' => '1000',
'priority' => '1',
'async' => 'true',
'variable' => 'destination=304'));
// Invoke the Adhearsion originate method via an HTTP POST of a JSON object
$ahn->invoke("call_into_context", 'SIP/303', 'inbound', $call_options);