Skip to content

Instantly share code, notes, and snippets.

@gemasergey
Created October 14, 2012 19:51
Show Gist options
  • Save gemasergey/3889622 to your computer and use it in GitHub Desktop.
Save gemasergey/3889622 to your computer and use it in GitHub Desktop.
Outbound call Originate
Starting Adhearsion server at /root/rbox
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: OS: linux-gnu - RUBY: ruby 1.9.3
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: Environment: {"rvm_bin_path"=>"/usr/local/rvm/bin", "GEM_HOME"=>"/usr/local/rvm/gems/ruby-1.9.3-p194", "TERM"=>"xterm", "SHELL"=>"/bin/bash", "IRBRC"=>"/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc", "SSH_CLIENT"=>"192.168.2.44 43339 22", "OLDPWD"=>"/root", "MY_RUBY_HOME"=>"/usr/local/rvm/rubies/ruby-1.9.3-p194", "SSH_TTY"=>"/dev/pts/0", "USER"=>"root", "__array_start"=>"0", "rvm_path"=>"/usr/local/rvm", "escape_flag"=>"1", "rvm_prefix"=>"/usr/local", "MAIL"=>"/var/mail/root", "PATH"=>"/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PWD"=>"/root/rbox", "LANG"=>"ru_UA.UTF-8", "_second"=>"1", "rvm_version"=>"1.16.6 (stable)", "SHLVL"=>"1", "HOME"=>"/root", "LANGUAGE"=>"ru_UA:ru", "_first"=>"0", "LOGNAME"=>"root", "GEM_PATH"=>"/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global", "SSH_CONNECTION"=>"192.168.2.44 43339 192.168.2.55 22", "RUBY_VERSION"=>"ruby-1.9.3-p194", "_"=>"/usr/local/rvm/gems/ruby-1.9.3-p194/bin/ahn", "_ORIGINAL_GEM_PATH"=>"/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global", "BUNDLE_GEMFILE"=>"/root/rbox/Gemfile", "BUNDLE_BIN_PATH"=>"/usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/bin/bundle", "RUBYOPT"=>"-I/usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib -rbundler/setup"}
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: # ******* Configuration for adhearsion_activerecord **************
# Database adapter. It should be an adapter supported by ActiveRecord [AHN_ADHEARSION_ACTIVERECORD_ADAPTER]
config.adhearsion_activerecord.adapter = "mysql2"
# Database to connect to. [AHN_ADHEARSION_ACTIVERECORD_DATABASE]
config.adhearsion_activerecord.database = "callcener"
# host where the database is installed [AHN_ADHEARSION_ACTIVERECORD_HOST]
config.adhearsion_activerecord.host = "localhost"
# paths to model files to load [AHN_ADHEARSION_ACTIVERECORD_MODEL_PATHS]
config.adhearsion_activerecord.model_paths = []
# valid password [AHN_ADHEARSION_ACTIVERECORD_PASSWORD]
config.adhearsion_activerecord.password = "1221"
# port where the database is listening [AHN_ADHEARSION_ACTIVERECORD_PORT]
config.adhearsion_activerecord.port = 3306
# valid db username [AHN_ADHEARSION_ACTIVERECORD_USERNAME]
config.adhearsion_activerecord.username = "root"
# ******* Configuration for punchblock **************
# The domain at which to address calls [AHN_PUNCHBLOCK_CALLS_DOMAIN]
config.punchblock.calls_domain = nil
# The amount of time to wait for a connection [AHN_PUNCHBLOCK_CONNECTION_TIMEOUT]
config.punchblock.connection_timeout = 60
# The default TTS voice to use. [AHN_PUNCHBLOCK_DEFAULT_VOICE]
config.punchblock.default_voice = nil
# Host punchblock needs to connect (where rayo/asterisk/freeswitch is located) [AHN_PUNCHBLOCK_HOST]
config.punchblock.host = "127.0.0.1"
# The media engine to use. Defaults to platform default. [AHN_PUNCHBLOCK_MEDIA_ENGINE]
config.punchblock.media_engine = nil
# The domain at which to address mixers [AHN_PUNCHBLOCK_MIXERS_DOMAIN]
config.punchblock.mixers_domain = nil
# Authentication credentials [AHN_PUNCHBLOCK_PASSWORD]
config.punchblock.password = "*********"
# Platform punchblock shall use to connect to the Telephony provider. Currently supported values:
# - :xmpp
# - :asterisk
# - :freeswitch [AHN_PUNCHBLOCK_PLATFORM]
config.punchblock.platform = :asterisk
# Port punchblock needs to connect [AHN_PUNCHBLOCK_PORT]
config.punchblock.port = 5038
# The number of times to (re)attempt connection to the server [AHN_PUNCHBLOCK_RECONNECT_ATTEMPTS]
config.punchblock.reconnect_attempts = Infinity
# Delay between connection attempts [AHN_PUNCHBLOCK_RECONNECT_TIMER]
config.punchblock.reconnect_timer = 5
# The root domain at which to address the server [AHN_PUNCHBLOCK_ROOT_DOMAIN]
config.punchblock.root_domain = nil
# Authentication credentials [AHN_PUNCHBLOCK_USERNAME]
config.punchblock.username = "ahn"
# ******* Configuration for platform **************
# Active environment. Supported values: development, production, staging, test [AHN_PLATFORM_ENVIRONMENT]
config.platform.environment = :development
# Folder to include the own libraries to be used. Adhearsion loads any ruby file
# located into this folder during the bootstrap process. Set to nil if you do not
# want these files to be loaded. This folder is relative to the application root folder. [AHN_PLATFORM_LIB]
config.platform.lib = "lib"
# Log configuration [AHN_PLATFORM_LOGGING]
config.platform.logging
# A log formatter to apply to all active outputters. If nil, the Adhearsion default formatter will be used. [AHN_PLATFORM_LOGGING_FORMATTER]
config.platform.logging.formatter = nil
# Supported levels (in increasing severity) -- :trace < :debug < :info < :warn < :error < :fatal [AHN_PLATFORM_LOGGING_LEVEL]
config.platform.logging.level = :trace
# An array of log outputters to use. The default is to log to stdout and log/adhearsion.log.
# Each item must be either a string to use as a filename, or a valid Logging appender (see http://github.com/TwP/logging) [AHN_PLATFORM_LOGGING_OUTPUTTERS]
config.platform.logging.outputters = ["log/adhearsion.log"]
# Adhearsion process name, useful to make it easier to find in the process list
# Pro tip: set this to your application's name and you can do "killall myapp"
# Does not work under JRuby. [AHN_PLATFORM_PROCESS_NAME]
config.platform.process_name = "ahn"
# Adhearsion application root folder [AHN_PLATFORM_ROOT]
config.platform.root = "/root/rbox"
[2012-10-12 08:02:16] TRACE Adhearsion::Initializer: Gem versions: ["rake 0.9.2.2", "i18n 0.6.1", "multi_json 1.3.6", "activesupport 3.2.8", "builder 3.0.3", "activemodel 3.2.8", "arel 3.0.2", "tzinfo 0.3.33", "activerecord 3.2.8", "adhearsion-loquacious 1.9.3", "bundler 1.2.1", "timers 1.0.1", "celluloid 0.11.1", "countdownlatch 1.0.0", "deep_merge 1.0.0", "ffi 1.1.5", "future-resource 1.0.0", "connection_pool 0.9.2", "girl_friday 0.10.0", "has-guarded-handlers 1.3.1", "little-plugger 1.1.3", "logging 1.8.0", "coderay 1.0.7", "method_source 0.8", "slop 3.3.3", "pry 0.9.10", "eventmachine 1.0.0", "nokogiri 1.5.5", "niceogiri 1.0.2", "blather 0.8.1", "nio4r 0.4.0", "celluloid-io 0.11.0", "ruby_ami 1.2.1", "json 1.7.5", "ruby_fs 1.0.0", "ruby_speech 1.0.0", "state_machine 1.1.2", "punchblock 1.4.1", "thor 0.16.0", "adhearsion 2.1.2", "adhearsion-activerecord 0.2.0", "adhearsion-asterisk 1.2.1", "mysql2 0.3.11"]
[2012-10-12 08:02:17] INFO Adhearsion::Initializer: Setting RAILS_ENV to "development"
[2012-10-12 08:02:19] INFO Adhearsion::Console: Launching Adhearsion Console
[2012-10-12 08:02:19] INFO Adhearsion::PunchblockPlugin::Initializer: Starting connection to server
AHN> [2012-10-12 08:02:19] DEBUG Celluloid: Starting up...
[2012-10-12 08:02:19] DEBUG Celluloid: Starting up...
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Asterisk Call Manager/1.1
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Asterisk Call Manager/1.1
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Stream::Connected:0x8b87a4c>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Stream::Connected:0x8ca4e20>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [SEND]: Action: login
ActionID: e5513a9c-4e05-4d5e-825b-a9885b936211
Username: ahn
Secret: dtxyjcnm
Events: On
[2012-10-12 08:02:19] DEBUG Celluloid: [SEND] Action: login
ActionID: e5513a9c-4e05-4d5e-825b-a9885b936211
Username: ahn
Secret: dtxyjcnm
Events: On
[2012-10-12 08:02:19] DEBUG Celluloid: [SEND] Action: login
ActionID: 9f4c9975-8b0d-46f3-9f9f-a253653514b3
Username: ahn
Secret: dtxyjcnm
Events: On
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Response: Success
ActionID: e5513a9c-4e05-4d5e-825b-a9885b936211
Message: Authentication accepted
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Response: Success
ActionID: 9f4c9975-8b0d-46f3-9f9f-a253653514b3
Message: Authentication accepted
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"e5513a9c-4e05-4d5e-825b-a9885b936211", "Message"=>"Authentication accepted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"9f4c9975-8b0d-46f3-9f9f-a253653514b3", "Message"=>"Authentication accepted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="FullyBooted", headers={"Privilege"=>"system,all", "Status"=>"Fully Booted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="FullyBooted", headers={"Privilege"=>"system,all", "Status"=>"Fully Booted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Response headers={"ActionID"=>"9f4c9975-8b0d-46f3-9f9f-a253653514b3", "Message"=>"Authentication accepted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"e5513a9c-4e05-4d5e-825b-a9885b936211", "Message"=>"Authentication accepted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [QUEUE]: Action: events
ActionID: 5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622
EventMask: Off
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="FullyBooted", headers={"Privilege"=>"system,all", "Status"=>"Fully Booted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Event name="FullyBooted", headers={"Privilege"=>"system,all", "Status"=>"Fully Booted"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [SEND]: Action: events
ActionID: 5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622
EventMask: Off
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [QUEUE]: Action: command
ActionID: d222a2a9-fe53-4b36-96b0-b6eed5329960
Command: dialplan add extension 1,1,AGI,agi:async into adhearsion-redirect
[2012-10-12 08:02:19] DEBUG Celluloid: [SEND] Action: events
ActionID: 5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622
EventMask: Off
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [QUEUE]: Action: command
ActionID: 9cb42447-8eae-4159-b26a-f415af5d2374
Command: dialplan show adhearsion-redirect
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Response: Success
ActionID: 5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622
Events: Off
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622", "Events"=>"Off"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"5c1fc7d7-2c81-4d2e-826e-f5e71a3e6622", "Events"=>"Off"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:19] INFO Adhearsion::PunchblockPlugin::Initializer: Connected to Punchblock server
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [SEND]: Action: command
ActionID: d222a2a9-fe53-4b36-96b0-b6eed5329960
Command: dialplan add extension 1,1,AGI,agi:async into adhearsion-redirect
[2012-10-12 08:02:19] DEBUG Celluloid: [SEND] Action: command
ActionID: d222a2a9-fe53-4b36-96b0-b6eed5329960
Command: dialplan add extension 1,1,AGI,agi:async into adhearsion-redirect
[2012-10-12 08:02:19] INFO Adhearsion::Process: Transitioning from booting to running with 0 active calls due to booted event.
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Response: Follows
Privilege: Command
ActionID: d222a2a9-fe53-4b36-96b0-b6eed5329960
Extension '1,1,AGI(agi:async)' added into 'adhearsion-redirect' context
--END COMMAND--
[2012-10-12 08:02:19] INFO Adhearsion::Initializer: Adhearsion v2.1.2 initialized in "development"!
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"Privilege"=>"Command", "ActionID"=>"d222a2a9-fe53-4b36-96b0-b6eed5329960", "Extension '1,1,AGI(agi"=>"async)' added into 'adhearsion-redirect' context\n--END COMMAND--"}, text_body="Extension '1,1,AGI(agi:async)' added into 'adhearsion-redirect' context", events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"Privilege"=>"Command", "ActionID"=>"d222a2a9-fe53-4b36-96b0-b6eed5329960", "Extension '1,1,AGI(agi"=>"async)' added into 'adhearsion-redirect' context\n--END COMMAND--"}, text_body="Extension '1,1,AGI(agi:async)' added into 'adhearsion-redirect' context", events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [SEND]: Action: command
ActionID: 9cb42447-8eae-4159-b26a-f415af5d2374
Command: dialplan show adhearsion-redirect
[2012-10-12 08:02:19] DEBUG Celluloid: [SEND] Action: command
ActionID: 9cb42447-8eae-4159-b26a-f415af5d2374
Command: dialplan show adhearsion-redirect
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] Response: Follows
Privilege: Command
ActionID: 9cb42447-8eae-4159-b26a-f415af5d2374
[ Context 'adhearsion-redirect' created by 'pbx_config' ]
'1' => 1. AGI(agi:async) [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] --END COMMAND--
[2012-10-12 08:02:19] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"Privilege"=>"Command", "ActionID"=>"9cb42447-8eae-4159-b26a-f415af5d2374"}, text_body="[ Context 'adhearsion-redirect' created by 'pbx_config' ]\n '1' => 1. AGI(agi:async) [pbx_config]\n\n-= 1 extension (1 priority) in 1 context. =-", events=nil, action=nil>
[2012-10-12 08:02:19] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"Privilege"=>"Command", "ActionID"=>"9cb42447-8eae-4159-b26a-f415af5d2374"}, text_body="[ Context 'adhearsion-redirect' created by 'pbx_config' ]\n '1' => 1. AGI(agi:async) [pbx_config]\n\n-= 1 extension (1 priority) in 1 context. =-", events=nil, action=nil>
[2012-10-12 08:02:49] DEBUG Celluloid: [RECV] Event: Registry
Privilege: system,all
ChannelType: SIP
Domain: 192.168.2.112
Status: Registered
[2012-10-12 08:02:49] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Registry", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Domain"=>"192.168.2.112", "Status"=>"Registered"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:49] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Registry", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Domain"=>"192.168.2.112", "Status"=>"Registered"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:53] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/rivas
PeerStatus: Registered
Address: 192.168.2.112:5060
[2012-10-12 08:02:53] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/rivas", "PeerStatus"=>"Registered", "Address"=>"192.168.2.112:5060"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:02:53] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/rivas", "PeerStatus"=>"Registered", "Address"=>"192.168.2.112:5060"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/rivas-0000000b
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 0933011050
CallerIDName: 0933011050
AccountCode:
Exten: 7867399
Context: from-ahn
Uniqueid: 1350018180.11
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Variable: SIPURI
Value: sip:0933011050@192.168.2.112:5060
Uniqueid: 1350018180.11
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Variable: SIPDOMAIN
Value: 192.168.2.55
Uniqueid: 1350018180.11
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Variable: SIPCALLID
Value: 02dc4a21293835cc2f3065c3421853e7@192.168.2.112:5060
Uniqueid: 1350018180.11
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPCALLID", "Value"=>"02dc4a21293835cc2f3065c3421853e7@192.168.2.112:5060", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000b
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018180.11
Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Context: from-ahn
Extension: 7867399
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018180.11
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000b
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"SIPCALLID", "Value"=>"02dc4a21293835cc2f3065c3421853e7@192.168.2.112:5060", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000b", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018180.11", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b"
[2012-10-12 08:03:00] INFO Adhearsion::Router: Call 5eb2f01d-215f-40e2-9cea-dec7cfb7738b selected route "default" (Main)
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: da96946f-9a6a-47b6-b6eb-92447bf379c1
Channel: SIP/rivas-0000000b
Command: EXEC RINGING
CommandID: f660a7d8-23da-4b75-a641-1dbb2196b66c
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: da96946f-9a6a-47b6-b6eb-92447bf379c1
Channel: SIP/rivas-0000000b
Command: EXEC RINGING
CommandID: f660a7d8-23da-4b75-a641-1dbb2196b66c
[2012-10-12 08:03:00] DEBUG Celluloid: [SEND] Action: agi
ActionID: da96946f-9a6a-47b6-b6eb-92447bf379c1
Channel: SIP/rivas-0000000b
Command: EXEC RINGING
CommandID: f660a7d8-23da-4b75-a641-1dbb2196b66c
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] Response: Success
ActionID: da96946f-9a6a-47b6-b6eb-92447bf379c1
Message: Added AGI command to queue
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"da96946f-9a6a-47b6-b6eb-92447bf379c1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"da96946f-9a6a-47b6-b6eb-92447bf379c1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000b
CommandId: 391905472
Command: EXEC RINGING
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000b
CommandId: 391905472
Command: EXEC RINGING
ResultCode: 200
Result: Success
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000b
CommandID: f660a7d8-23da-4b75-a641-1dbb2196b66c
Result: 200%20result%3D0%0A
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"391905472", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"391905472", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"391905472", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000b", "CommandID"=>"f660a7d8-23da-4b75-a641-1dbb2196b66c", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"391905472", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000b", "CommandID"=>"f660a7d8-23da-4b75-a641-1dbb2196b66c", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000b", :commandid=>"391905472", :command=>"EXEC RINGING"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000b", :commandid=>"391905472", :command=>"EXEC RINGING", :resultcode=>"200", :result=>"Success"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000b", :commandid=>"f660a7d8-23da-4b75-a641-1dbb2196b66c", :result=>"200%20result%3D0%0A"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:00] INFO Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: calller ID is 0933011050
[2012-10-12 08:03:00] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000b", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018180.11", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b"
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Executing command #<Punchblock::Command::Reject reason=:busy, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 2b89999b-ec19-44db-b3f6-c2d8d890b308
Channel: SIP/rivas-0000000b
Command: EXEC Busy
CommandID: 0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 2b89999b-ec19-44db-b3f6-c2d8d890b308
Channel: SIP/rivas-0000000b
Command: EXEC Busy
CommandID: 0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1
[2012-10-12 08:03:01] DEBUG Celluloid: [SEND] Action: agi
ActionID: 2b89999b-ec19-44db-b3f6-c2d8d890b308
Channel: SIP/rivas-0000000b
Command: EXEC Busy
CommandID: 0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Response: Success
ActionID: 2b89999b-ec19-44db-b3f6-c2d8d890b308
Message: Added AGI command to queue
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"2b89999b-ec19-44db-b3f6-c2d8d890b308", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"2b89999b-ec19-44db-b3f6-c2d8d890b308", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm17
PeerStatus: Registered
Address: 192.168.2.33:5110
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000b
CommandId: 146865799
Command: EXEC Busy
Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000b
ChannelState: 7
ChannelStateDesc: Busy
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018180.11
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000b
CommandId: 146865799
Command: EXEC Busy
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000b
CommandID: 0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1
Result: 200%20result%3D-1%0A
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"146865799", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"146865799", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"146865799", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b", "CommandId"=>"146865799", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000b", "CommandID"=>"0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000b", "CommandID"=>"0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000b
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018180.11
Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Context: from-ahn
Extension: h
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018180.11
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000b
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000b
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000b
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018180.11
Event: Hangup
Privilege: call,all
Channel: SIP/rivas-0000000b
Uniqueid: 1350018180.11
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Cause: 0
Cause-txt: Unknown
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000b", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "Uniqueid"=>"1350018180.11", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000b", :commandid=>"146865799", :command=>"EXEC Busy"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000b", :channelstate=>"7", :channelstatedesc=>"Busy", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"", :connectedlinename=>"", :uniqueid=>"1350018180.11"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000b"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000b", :commandid=>"146865799", :command=>"EXEC Busy", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000b", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018180.11"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000b", :commandid=>"0320e1f1-7a9e-47ec-b17d-73fdedaa4ad1", :result=>"200%20result%3D-1%0A"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000b", "Uniqueid"=>"1350018180.11", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000b", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018180.11"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::OutboundCall: : Executing command #<Punchblock::Command::Dial to="SIP/0933011050@gsm17", from="gsm17 <gsm17>", join=nil, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000b"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newexten", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000b", :context=>"from-ahn", :extension=>"h", :priority=>"1", :application=>"AGI", :appdata=>"agi:async", :uniqueid=>"1350018180.11"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm18
PeerStatus: Registered
Address: 192.168.2.33:5112
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000b", :env=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000b%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018180.11%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000b"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000b", :uniqueid=>"1350018180.11", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"<unknown>", :connectedlinename=>"<unknown>", :cause=>"0", :cause_txt=>"Unknown"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000b", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018180.11"}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="5eb2f01d-215f-40e2-9cea-dec7cfb7738b", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:01] INFO Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Call ended
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [QUEUE]: Action: originate
ActionID: 1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=2a016376-eae5-4c5b-97b5-ad065328958f
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [SEND]: Action: originate
ActionID: 1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=2a016376-eae5-4c5b-97b5-ad065328958f
[2012-10-12 08:03:01] DEBUG Celluloid: [SEND] Action: originate
ActionID: 1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=2a016376-eae5-4c5b-97b5-ad065328958f
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/gsm17-0000000c
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: incoming-peers
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: SIPCALLID
Value: 6287100c1ce67aa45de1c87f7a6c5805@192.168.2.55:5060
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: punchblock_call_id
Value: 2a016376-eae5-4c5b-97b5-ad065328958f
Uniqueid: 1350018181.12
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-0000000c
Uniqueid: 1350018181.12
AccountCode:
OldAccountCode:
Event: NewCallerid
Privilege: call,all
Channel: SIP/gsm17-0000000c
CallerIDNum: gsm17
CallerIDName: gsm17
Uniqueid: 1350018181.12
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] Response: Success
ActionID: 1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045
Message: Originate successfully queued
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::Call: 5eb2f01d-215f-40e2-9cea-dec7cfb7738b: Finished executing controller #<Main call=5eb2f01d-215f-40e2-9cea-dec7cfb7738b, metadata={}>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"SIPCALLID", "Value"=>"6287100c1ce67aa45de1c87f7a6c5805@192.168.2.55:5060", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"punchblock_call_id", "Value"=>"2a016376-eae5-4c5b-97b5-ad065328958f", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"SIPCALLID", "Value"=>"6287100c1ce67aa45de1c87f7a6c5805@192.168.2.55:5060", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018181.12", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"punchblock_call_id", "Value"=>"2a016376-eae5-4c5b-97b5-ad065328958f", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018181.12", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:01] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"punchblock_call_id", :value=>"2a016376-eae5-4c5b-97b5-ad065328958f", :uniqueid=>"1350018181.12"}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:02] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-0000000c
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018181.12
[2012-10-12 08:03:02] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:02] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:02] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :channelstate=>"5", :channelstatedesc=>"Ringing", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018181.12"}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:02] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Ringing headers_hash={}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-0000000c
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: punchblock_call_id
Value: 2a016376-eae5-4c5b-97b5-ad065328958f
Uniqueid: 1350018181.12
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-0000000c
Uniqueid: 1350018181.12
AccountCode:
OldAccountCode:
Event: OriginateResponse
Privilege: call,all
ActionID: 1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045
Response: Success
Channel: SIP/gsm17-0000000c
Context:
Exten:
Reason: 4
Uniqueid: 1350018181.12
CallerIDNum: gsm17
CallerIDName: gsm17
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"punchblock_call_id", "Value"=>"2a016376-eae5-4c5b-97b5-ad065328958f", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"punchblock_call_id", "Value"=>"2a016376-eae5-4c5b-97b5-ad065328958f", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045", "Response"=>"Success", "Channel"=>"SIP/gsm17-0000000c", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018181.12", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-0000000c
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000c%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018181.12%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000c%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018181.12%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"1c9eaf6e-59c7-489e-ac55-ed7e9b1b1045", "Response"=>"Success", "Channel"=>"SIP/gsm17-0000000c", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018181.12", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000c%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018181.12%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :channelstate=>"6", :channelstatedesc=>"Up", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018181.12"}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:08] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="NewAccountCode", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :uniqueid=>"1350018181.12", :accountcode=>"", :oldaccountcode=>""}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:08] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Answered headers_hash={}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:08] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Executing command #<Punchblock::Component::Asterisk::AGI::Command name="EXEC queue", params_array=["priority", "", "", "", "", ""], target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:08] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-0000000c", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018181.12", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0"
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: e8c02c67-3d61-4c33-803d-89a87ac94de3
Channel: SIP/gsm17-0000000c
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: a73ee2f9-d13b-4788-91e3-8a01f2583b7f
[2012-10-12 08:03:08] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"punchblock_call_id", :value=>"2a016376-eae5-4c5b-97b5-ad065328958f", :uniqueid=>"1350018181.12"}, target_call_id="2a016376-eae5-4c5b-97b5-ad065328958f", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: e8c02c67-3d61-4c33-803d-89a87ac94de3
Channel: SIP/gsm17-0000000c
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: a73ee2f9-d13b-4788-91e3-8a01f2583b7f
[2012-10-12 08:03:08] INFO Adhearsion::Router: Call 6b182ad5-1f65-45f5-82d8-1786f5b694f0 selected route "default" (Main)
[2012-10-12 08:03:08] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:08] DEBUG Celluloid: [SEND] Action: agi
ActionID: e8c02c67-3d61-4c33-803d-89a87ac94de3
Channel: SIP/gsm17-0000000c
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: a73ee2f9-d13b-4788-91e3-8a01f2583b7f
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Response: Success
ActionID: e8c02c67-3d61-4c33-803d-89a87ac94de3
Message: Added AGI command to queue
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-0000000c
CommandId: 41412198
Command: EXEC queue "priority" "" "" "" "" ""
Event: Join
Privilege: call,all
Channel: SIP/gsm17-0000000c
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Queue: priority
Position: 1
Count: 1
Uniqueid: 1350018181.12
Event: MusicOnHold
Privilege: call,all
State: Start
Channel: SIP/gsm17-0000000c
UniqueID: 1350018181.12
Class: default
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"e8c02c67-3d61-4c33-803d-89a87ac94de3", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "CommandId"=>"41412198", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"e8c02c67-3d61-4c33-803d-89a87ac94de3", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "UniqueID"=>"1350018181.12", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "CommandId"=>"41412198", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-0000000c", "UniqueID"=>"1350018181.12", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2
Channel: SIP/gsm17-0000000c
Command: EXEC RINGING
CommandID: a1e8d700-742b-4f31-b300-c906ff3e1f2f
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2
Channel: SIP/gsm17-0000000c
Command: EXEC RINGING
CommandID: a1e8d700-742b-4f31-b300-c906ff3e1f2f
[2012-10-12 08:03:08] DEBUG Celluloid: [SEND] Action: agi
ActionID: e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2
Channel: SIP/gsm17-0000000c
Command: EXEC RINGING
CommandID: a1e8d700-742b-4f31-b300-c906ff3e1f2f
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Response: Success
ActionID: e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2
Message: Added AGI command to queue
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"e6fd6487-c3d8-4ca4-bf98-2c650b5bafd2", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm19
PeerStatus: Registered
Address: 192.168.2.33:5114
[2012-10-12 08:03:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:12] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm21
PeerStatus: Registered
Address: 192.168.2.33:5118
[2012-10-12 08:03:12] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:12] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:13] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm20
PeerStatus: Registered
Address: 192.168.2.33:5116
[2012-10-12 08:03:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: RTPAUDIOQOS
Value: ssrc=171147634;themssrc=1627873167;lp=0;rxjitter=0.000037;rxcount=373;txjitter=0.000000;txcount=364;rlp=0;rtt=0.000000
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1350018181.12
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=171147634;themssrc=1627873167;lp=0;rxjitter=0.000037;rxcount=373;txjitter=0.000000;txcount=364;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=171147634;themssrc=1627873167;lp=0;rxjitter=0.000037;rxcount=373;txjitter=0.000000;txcount=364;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] Event: QueueCallerAbandon
Privilege: agent,all
Queue: priority
Uniqueid: 1350018181.12
Position: 1
OriginalPosition: 1
HoldTime: 7
Event: Leave
Privilege: call,all
Channel: SIP/gsm17-0000000c
Queue: priority
Count: 0
Position: 1
Uniqueid: 1350018181.12
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: QUEUEPOSITION
Value: 1
Uniqueid: 1350018181.12
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-0000000c
CommandId: 41412198
Command: EXEC queue "priority" "" "" "" "" ""
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/gsm17-0000000c
CommandID: a73ee2f9-d13b-4788-91e3-8a01f2583b7f
Result: 200%20result%3D-1%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-0000000c
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000c
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018181.12
Event: Hangup
Privilege: call,all
Channel: SIP/gsm17-0000000c
Uniqueid: 1350018181.12
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Cause: 16
Cause-txt: Normal Clearing
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018181.12", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"7"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018181.12", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"7"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000c", "CommandId"=>"41412198", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-0000000c", "CommandID"=>"a73ee2f9-d13b-4788-91e3-8a01f2583b7f", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000c", "CommandId"=>"41412198", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000c"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-0000000c", "CommandID"=>"a73ee2f9-d13b-4788-91e3-8a01f2583b7f", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000c"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000c", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018181.12"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000c", "Uniqueid"=>"1350018181.12", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/gsm17-0000000c", :commandid=>"41412198", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Join", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :queue=>"priority", :position=>"1", :count=>"1", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="MusicOnHold", attributes_hash={:privilege=>"call,all", :state=>"Start", :channel=>"SIP/gsm17-0000000c", :uniqueid=>"1350018181.12", :class=>"default"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"RTPAUDIOQOSJITTER", :value=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"RTPAUDIOQOS", :value=>"ssrc=171147634;themssrc=1627873167;lp=0;rxjitter=0.000037;rxcount=373;txjitter=0.000000;txcount=364;rlp=0;rtt=0.000000", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"RTPAUDIOQOSLOSS", :value=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"RTPAUDIOQOSRTT", :value=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Leave", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :queue=>"priority", :count=>"0", :position=>"1", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"QUEUEPOSITION", :value=>"1", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-0000000c", :commandid=>"41412198", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/gsm17-0000000c", :commandid=>"a73ee2f9-d13b-4788-91e3-8a01f2583b7f", :result=>"200%20result%3D-1%0A"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-0000000c"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000c", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018181.12"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000c", :uniqueid=>"1350018181.12", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :cause=>"16", :cause_txt=>"Normal Clearing"}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:16] INFO Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Call ended
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-0000000c", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018181.12", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="6b182ad5-1f65-45f5-82d8-1786f5b694f0"
[2012-10-12 08:03:16] INFO Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: calller ID is gsm17 <SIP
[2012-10-12 08:03:16] INFO Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Call was hung up
[2012-10-12 08:03:16] DEBUG Adhearsion::Call: 6b182ad5-1f65-45f5-82d8-1786f5b694f0: Finished executing controller #<Main call=6b182ad5-1f65-45f5-82d8-1786f5b694f0, metadata={}>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/rivas-0000000d
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 0933011050
CallerIDName: 0933011050
AccountCode:
Exten: 7867399
Context: from-ahn
Uniqueid: 1350018204.13
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Variable: SIPURI
Value: sip:0933011050@192.168.2.112:5060
Uniqueid: 1350018204.13
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Variable: SIPDOMAIN
Value: 192.168.2.55
Uniqueid: 1350018204.13
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Variable: SIPCALLID
Value: 43b95d9516bf475d39d675b43d2bc787@192.168.2.112:5060
Uniqueid: 1350018204.13
Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000d
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018204.13
Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Context: from-ahn
Extension: 7867399
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018204.13
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000d
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPCALLID", "Value"=>"43b95d9516bf475d39d675b43d2bc787@192.168.2.112:5060", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"SIPCALLID", "Value"=>"43b95d9516bf475d39d675b43d2bc787@192.168.2.112:5060", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000d", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018204.13", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1"
[2012-10-12 08:03:24] INFO Adhearsion::Router: Call aa0c5656-4383-4840-bae3-71ebf5c3f9a1 selected route "default" (Main)
[2012-10-12 08:03:24] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 57176923-1fe7-4dec-9612-63876b8c0cb8
Channel: SIP/rivas-0000000d
Command: EXEC RINGING
CommandID: e0c003ce-4718-4628-937c-1d9210e3806d
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 57176923-1fe7-4dec-9612-63876b8c0cb8
Channel: SIP/rivas-0000000d
Command: EXEC RINGING
CommandID: e0c003ce-4718-4628-937c-1d9210e3806d
[2012-10-12 08:03:24] DEBUG Celluloid: [SEND] Action: agi
ActionID: 57176923-1fe7-4dec-9612-63876b8c0cb8
Channel: SIP/rivas-0000000d
Command: EXEC RINGING
CommandID: e0c003ce-4718-4628-937c-1d9210e3806d
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] Response: Success
ActionID: 57176923-1fe7-4dec-9612-63876b8c0cb8
Message: Added AGI command to queue
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"57176923-1fe7-4dec-9612-63876b8c0cb8", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"57176923-1fe7-4dec-9612-63876b8c0cb8", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000d
CommandId: 2092303856
Command: EXEC RINGING
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000d
CommandId: 2092303856
Command: EXEC RINGING
ResultCode: 200
Result: Success
[2012-10-12 08:03:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"2092303856", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000d
CommandID: e0c003ce-4718-4628-937c-1d9210e3806d
Result: 200%20result%3D0%0A
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000d", "CommandID"=>"e0c003ce-4718-4628-937c-1d9210e3806d", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"2092303856", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"2092303856", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"2092303856", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000d", "CommandID"=>"e0c003ce-4718-4628-937c-1d9210e3806d", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000d", :commandid=>"2092303856", :command=>"EXEC RINGING", :resultcode=>"200", :result=>"Success"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000d", :commandid=>"2092303856", :command=>"EXEC RINGING"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000d", :commandid=>"e0c003ce-4718-4628-937c-1d9210e3806d", :result=>"200%20result%3D0%0A"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] INFO Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: calller ID is 0933011050
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000d", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018204.13", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1"
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Executing command #<Punchblock::Command::Reject reason=:busy, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 2e7dc200-9d2f-46f3-b070-7b9453b3a0f1
Channel: SIP/rivas-0000000d
Command: EXEC Busy
CommandID: 5717cb4c-0adc-4c71-a1cf-c7a2002ca779
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 2e7dc200-9d2f-46f3-b070-7b9453b3a0f1
Channel: SIP/rivas-0000000d
Command: EXEC Busy
CommandID: 5717cb4c-0adc-4c71-a1cf-c7a2002ca779
[2012-10-12 08:03:25] DEBUG Celluloid: [SEND] Action: agi
ActionID: 2e7dc200-9d2f-46f3-b070-7b9453b3a0f1
Channel: SIP/rivas-0000000d
Command: EXEC Busy
CommandID: 5717cb4c-0adc-4c71-a1cf-c7a2002ca779
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Response: Success
ActionID: 2e7dc200-9d2f-46f3-b070-7b9453b3a0f1
Message: Added AGI command to queue
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"2e7dc200-9d2f-46f3-b070-7b9453b3a0f1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"2e7dc200-9d2f-46f3-b070-7b9453b3a0f1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000d
CommandId: 258158794
Command: EXEC Busy
Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000d
ChannelState: 7
ChannelStateDesc: Busy
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018204.13
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000d
CommandId: 258158794
Command: EXEC Busy
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000d
CommandID: 5717cb4c-0adc-4c71-a1cf-c7a2002ca779
Result: 200%20result%3D-1%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000d
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"258158794", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"258158794", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"258158794", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000d", "CommandID"=>"5717cb4c-0adc-4c71-a1cf-c7a2002ca779", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d", "CommandId"=>"258158794", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000d", "CommandID"=>"5717cb4c-0adc-4c71-a1cf-c7a2002ca779", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018204.13
Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Context: from-ahn
Extension: h
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018204.13
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000d
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000d
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000d
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018204.13
Event: Hangup
Privilege: call,all
Channel: SIP/rivas-0000000d
Uniqueid: 1350018204.13
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Cause: 0
Cause-txt: Unknown
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "Uniqueid"=>"1350018204.13", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000d", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000d", :channelstate=>"7", :channelstatedesc=>"Busy", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"", :connectedlinename=>"", :uniqueid=>"1350018204.13"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000d"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000d", :commandid=>"258158794", :command=>"EXEC Busy"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000d", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018204.13"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000d", :commandid=>"258158794", :command=>"EXEC Busy", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000d"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000d", "Uniqueid"=>"1350018204.13", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000d", :commandid=>"5717cb4c-0adc-4c71-a1cf-c7a2002ca779", :result=>"200%20result%3D-1%0A"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::OutboundCall: : Executing command #<Punchblock::Command::Dial to="SIP/0933011050@gsm17", from="gsm17 <gsm17>", join=nil, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000d", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018204.13"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newexten", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000d", :context=>"from-ahn", :extension=>"h", :priority=>"1", :application=>"AGI", :appdata=>"agi:async", :uniqueid=>"1350018204.13"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000d", :env=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000d%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018204.13%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000d"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000d", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018204.13"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000d", :uniqueid=>"1350018204.13", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"<unknown>", :connectedlinename=>"<unknown>", :cause=>"0", :cause_txt=>"Unknown"}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="aa0c5656-4383-4840-bae3-71ebf5c3f9a1", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] INFO Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Call ended
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [QUEUE]: Action: originate
ActionID: 16f0d435-0bc1-4670-8fea-0a360e71ca62
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=90e8c1c5-578b-4f74-8f2d-6b2c45b29295
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [SEND]: Action: originate
ActionID: 16f0d435-0bc1-4670-8fea-0a360e71ca62
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=90e8c1c5-578b-4f74-8f2d-6b2c45b29295
[2012-10-12 08:03:25] DEBUG Celluloid: [SEND] Action: originate
ActionID: 16f0d435-0bc1-4670-8fea-0a360e71ca62
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=90e8c1c5-578b-4f74-8f2d-6b2c45b29295
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/gsm17-0000000e
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: incoming-peers
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: SIPCALLID
Value: 0ffe02be35811e3d2294896829e38259@192.168.2.55:5060
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: punchblock_call_id
Value: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295
Uniqueid: 1350018205.14
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-0000000e
Uniqueid: 1350018205.14
AccountCode:
OldAccountCode:
Event: NewCallerid
Privilege: call,all
Channel: SIP/gsm17-0000000e
CallerIDNum: gsm17
CallerIDName: gsm17
Uniqueid: 1350018205.14
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Response: Success
ActionID: 16f0d435-0bc1-4670-8fea-0a360e71ca62
Message: Originate successfully queued
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"16f0d435-0bc1-4670-8fea-0a360e71ca62", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"SIPCALLID", "Value"=>"0ffe02be35811e3d2294896829e38259@192.168.2.55:5060", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"punchblock_call_id", "Value"=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::Call: aa0c5656-4383-4840-bae3-71ebf5c3f9a1: Finished executing controller #<Main call=aa0c5656-4383-4840-bae3-71ebf5c3f9a1, metadata={}>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"16f0d435-0bc1-4670-8fea-0a360e71ca62", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018205.14", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"SIPCALLID", "Value"=>"0ffe02be35811e3d2294896829e38259@192.168.2.55:5060", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"punchblock_call_id", "Value"=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018205.14", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"punchblock_call_id", :value=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", :uniqueid=>"1350018205.14"}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-0000000e
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018205.14
[2012-10-12 08:03:25] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :channelstate=>"5", :channelstatedesc=>"Ringing", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018205.14"}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:25] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Ringing headers_hash={}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-0000000e
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: punchblock_call_id
Value: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295
Uniqueid: 1350018205.14
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-0000000e
Uniqueid: 1350018205.14
AccountCode:
OldAccountCode:
Event: OriginateResponse
Privilege: call,all
ActionID: 16f0d435-0bc1-4670-8fea-0a360e71ca62
Response: Success
Channel: SIP/gsm17-0000000e
Context:
Exten:
Reason: 4
Uniqueid: 1350018205.14
CallerIDNum: gsm17
CallerIDName: gsm17
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"punchblock_call_id", "Value"=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"16f0d435-0bc1-4670-8fea-0a360e71ca62", "Response"=>"Success", "Channel"=>"SIP/gsm17-0000000e", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018205.14", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"punchblock_call_id", "Value"=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-0000000e
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000e%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018205.14%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000e%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018205.14%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"16f0d435-0bc1-4670-8fea-0a360e71ca62", "Response"=>"Success", "Channel"=>"SIP/gsm17-0000000e", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018205.14", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-0000000e%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018205.14%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :channelstate=>"6", :channelstatedesc=>"Up", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018205.14"}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:33] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Answered headers_hash={}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:33] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="NewAccountCode", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :uniqueid=>"1350018205.14", :accountcode=>"", :oldaccountcode=>""}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:33] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Executing command #<Punchblock::Component::Asterisk::AGI::Command name="EXEC queue", params_array=["priority", "", "", "", "", ""], target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:33] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-0000000e", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018205.14", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="18b5574c-80ce-4e35-b24e-02b9921435cd"
[2012-10-12 08:03:33] DEBUG Adhearsion::OutboundCall: 90e8c1c5-578b-4f74-8f2d-6b2c45b29295: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"punchblock_call_id", :value=>"90e8c1c5-578b-4f74-8f2d-6b2c45b29295", :uniqueid=>"1350018205.14"}, target_call_id="90e8c1c5-578b-4f74-8f2d-6b2c45b29295", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1
Channel: SIP/gsm17-0000000e
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: 45814bdd-d804-4f96-9eee-c7f02d90aedd
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1
Channel: SIP/gsm17-0000000e
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: 45814bdd-d804-4f96-9eee-c7f02d90aedd
[2012-10-12 08:03:33] DEBUG Celluloid: [SEND] Action: agi
ActionID: 6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1
Channel: SIP/gsm17-0000000e
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: 45814bdd-d804-4f96-9eee-c7f02d90aedd
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] Response: Success
ActionID: 6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1
Message: Added AGI command to queue
[2012-10-12 08:03:33] INFO Adhearsion::Router: Call 18b5574c-80ce-4e35-b24e-02b9921435cd selected route "default" (Main)
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-0000000e
CommandId: 713219414
Command: EXEC queue "priority" "" "" "" "" ""
Event: Join
Privilege: call,all
Channel: SIP/gsm17-0000000e
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Queue: priority
Position: 1
Count: 1
Uniqueid: 1350018205.14
Event: MusicOnHold
Privilege: call,all
State: Start
Channel: SIP/gsm17-0000000e
UniqueID: 1350018205.14
Class: default
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"6c2f51bd-f8a4-4a6c-ae0a-4415f7be99c1", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "CommandId"=>"713219414", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "UniqueID"=>"1350018205.14", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "CommandId"=>"713219414", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-0000000e", "UniqueID"=>"1350018205.14", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 10807c2f-034a-4edc-bd94-64dc24238baa
Channel: SIP/gsm17-0000000e
Command: EXEC RINGING
CommandID: ec5a51f5-4743-444d-884e-a337eef0b459
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 10807c2f-034a-4edc-bd94-64dc24238baa
Channel: SIP/gsm17-0000000e
Command: EXEC RINGING
CommandID: ec5a51f5-4743-444d-884e-a337eef0b459
[2012-10-12 08:03:33] DEBUG Celluloid: [SEND] Action: agi
ActionID: 10807c2f-034a-4edc-bd94-64dc24238baa
Channel: SIP/gsm17-0000000e
Command: EXEC RINGING
CommandID: ec5a51f5-4743-444d-884e-a337eef0b459
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] Response: Success
ActionID: 10807c2f-034a-4edc-bd94-64dc24238baa
Message: Added AGI command to queue
[2012-10-12 08:03:33] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"10807c2f-034a-4edc-bd94-64dc24238baa", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:33] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"10807c2f-034a-4edc-bd94-64dc24238baa", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: RTPAUDIOQOS
Value: ssrc=1624724721;themssrc=680927265;lp=0;rxjitter=0.000057;rxcount=458;txjitter=0.000000;txcount=443;rlp=0;rtt=0.000000
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1350018205.14
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=1624724721;themssrc=680927265;lp=0;rxjitter=0.000057;rxcount=458;txjitter=0.000000;txcount=443;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=1624724721;themssrc=680927265;lp=0;rxjitter=0.000057;rxcount=458;txjitter=0.000000;txcount=443;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] Event: QueueCallerAbandon
Privilege: agent,all
Queue: priority
Uniqueid: 1350018205.14
Position: 1
OriginalPosition: 1
HoldTime: 9
Event: Leave
Privilege: call,all
Channel: SIP/gsm17-0000000e
Queue: priority
Count: 0
Position: 1
Uniqueid: 1350018205.14
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: QUEUEPOSITION
Value: 1
Uniqueid: 1350018205.14
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-0000000e
CommandId: 713219414
Command: EXEC queue "priority" "" "" "" "" ""
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/gsm17-0000000e
CommandID: 45814bdd-d804-4f96-9eee-c7f02d90aedd
Result: 200%20result%3D-1%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-0000000e
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-0000000e
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018205.14
Event: Hangup
Privilege: call,all
Channel: SIP/gsm17-0000000e
Uniqueid: 1350018205.14
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Cause: 16
Cause-txt: Normal Clearing
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018205.14", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"9"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018205.14", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"9"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000e", "CommandId"=>"713219414", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-0000000e", "CommandID"=>"45814bdd-d804-4f96-9eee-c7f02d90aedd", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000e", "CommandId"=>"713219414", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000e"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-0000000e", "CommandID"=>"45814bdd-d804-4f96-9eee-c7f02d90aedd", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-0000000e"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-0000000e", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018205.14"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-0000000e", "Uniqueid"=>"1350018205.14", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Join", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :queue=>"priority", :position=>"1", :count=>"1", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/gsm17-0000000e", :commandid=>"713219414", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="MusicOnHold", attributes_hash={:privilege=>"call,all", :state=>"Start", :channel=>"SIP/gsm17-0000000e", :uniqueid=>"1350018205.14", :class=>"default"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"RTPAUDIOQOSJITTER", :value=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"RTPAUDIOQOS", :value=>"ssrc=1624724721;themssrc=680927265;lp=0;rxjitter=0.000057;rxcount=458;txjitter=0.000000;txcount=443;rlp=0;rtt=0.000000", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"RTPAUDIOQOSRTT", :value=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"RTPAUDIOQOSLOSS", :value=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Leave", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :queue=>"priority", :count=>"0", :position=>"1", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"QUEUEPOSITION", :value=>"1", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-0000000e", :commandid=>"713219414", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/gsm17-0000000e", :commandid=>"45814bdd-d804-4f96-9eee-c7f02d90aedd", :result=>"200%20result%3D-1%0A"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-0000000e"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-0000000e", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018205.14"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-0000000e", :uniqueid=>"1350018205.14", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :cause=>"16", :cause_txt=>"Normal Clearing"}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="18b5574c-80ce-4e35-b24e-02b9921435cd", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:03:42] INFO Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Call ended
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-0000000e", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018205.14", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="18b5574c-80ce-4e35-b24e-02b9921435cd"
[2012-10-12 08:03:42] INFO Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: calller ID is gsm17 <SIP
[2012-10-12 08:03:42] INFO Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Call was hung up
[2012-10-12 08:03:42] DEBUG Adhearsion::Call: 18b5574c-80ce-4e35-b24e-02b9921435cd: Finished executing controller #<Main call=18b5574c-80ce-4e35-b24e-02b9921435cd, metadata={}>
[2012-10-12 08:03:56] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm17
PeerStatus: Registered
Address: 192.168.2.33:5110
[2012-10-12 08:03:56] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:56] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:56] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm18
PeerStatus: Registered
Address: 192.168.2.33:5112
[2012-10-12 08:03:56] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:03:56] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:04] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm19
PeerStatus: Registered
Address: 192.168.2.33:5114
[2012-10-12 08:04:04] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:04] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/rivas-0000000f
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 0933011050
CallerIDName: 0933011050
AccountCode:
Exten: 7867399
Context: from-ahn
Uniqueid: 1350018246.15
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Variable: SIPURI
Value: sip:0933011050@192.168.2.112:5060
Uniqueid: 1350018246.15
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Variable: SIPDOMAIN
Value: 192.168.2.55
Uniqueid: 1350018246.15
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Variable: SIPCALLID
Value: 075e221337466d0d168aee4c6151ca6d@192.168.2.112:5060
Uniqueid: 1350018246.15
Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000f
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018246.15
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPURI", "Value"=>"sip:0933011050@192.168.2.112:5060", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPCALLID", "Value"=>"075e221337466d0d168aee4c6151ca6d@192.168.2.112:5060", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "AccountCode"=>"", "Exten"=>"7867399", "Context"=>"from-ahn", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPDOMAIN", "Value"=>"192.168.2.55", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Context: from-ahn
Extension: 7867399
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018246.15
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000f
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"SIPCALLID", "Value"=>"075e221337466d0d168aee4c6151ca6d@192.168.2.112:5060", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"4", "ChannelStateDesc"=>"Ring", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Context"=>"from-ahn", "Extension"=>"7867399", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%207867399%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:06] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000f", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018246.15", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce"
[2012-10-12 08:04:06] INFO Adhearsion::Router: Call edf30e5c-b05a-41e6-9e1c-7856b3013bce selected route "default" (Main)
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 01cc5b8e-9775-4013-a937-84c5da196957
Channel: SIP/rivas-0000000f
Command: EXEC RINGING
CommandID: 129977f7-11b4-4f98-b802-d948488a3cd7
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 01cc5b8e-9775-4013-a937-84c5da196957
Channel: SIP/rivas-0000000f
Command: EXEC RINGING
CommandID: 129977f7-11b4-4f98-b802-d948488a3cd7
[2012-10-12 08:04:07] DEBUG Celluloid: [SEND] Action: agi
ActionID: 01cc5b8e-9775-4013-a937-84c5da196957
Channel: SIP/rivas-0000000f
Command: EXEC RINGING
CommandID: 129977f7-11b4-4f98-b802-d948488a3cd7
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Response: Success
ActionID: 01cc5b8e-9775-4013-a937-84c5da196957
Message: Added AGI command to queue
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"01cc5b8e-9775-4013-a937-84c5da196957", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"01cc5b8e-9775-4013-a937-84c5da196957", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000f
CommandId: 618116854
Command: EXEC RINGING
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000f
CommandId: 618116854
Command: EXEC RINGING
ResultCode: 200
Result: Success
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"618116854", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"618116854", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"618116854", "Command"=>"EXEC RINGING"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000f
CommandID: 129977f7-11b4-4f98-b802-d948488a3cd7
Result: 200%20result%3D0%0A
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"618116854", "Command"=>"EXEC RINGING", "ResultCode"=>"200", "Result"=>"Success"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000f", "CommandID"=>"129977f7-11b4-4f98-b802-d948488a3cd7", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000f", "CommandID"=>"129977f7-11b4-4f98-b802-d948488a3cd7", "Result"=>"200%20result%3D0%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000f", :commandid=>"618116854", :command=>"EXEC RINGING"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000f", :commandid=>"618116854", :command=>"EXEC RINGING", :resultcode=>"200", :result=>"Success"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000f", :commandid=>"129977f7-11b4-4f98-b802-d948488a3cd7", :result=>"200%20result%3D0%0A"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Offer to="7867399", from="0933011050 <SIP/0933011050>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/rivas-0000000f", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018246.15", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"0933011050", :x_agi_calleridname=>"0933011050", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"7867399", :x_agi_rdnis=>"unknown", :x_agi_context=>"from-ahn", :x_agi_extension=>"7867399", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1279943824"}, call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce"
[2012-10-12 08:04:07] INFO Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: calller ID is 0933011050
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Executing command #<Punchblock::Command::Reject reason=:busy, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 1b70aafe-9bf8-48b2-a39f-9157eb1ee219
Channel: SIP/rivas-0000000f
Command: EXEC Busy
CommandID: f75e058d-99eb-4031-b091-49ccd816ce24
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 1b70aafe-9bf8-48b2-a39f-9157eb1ee219
Channel: SIP/rivas-0000000f
Command: EXEC Busy
CommandID: f75e058d-99eb-4031-b091-49ccd816ce24
[2012-10-12 08:04:07] DEBUG Celluloid: [SEND] Action: agi
ActionID: 1b70aafe-9bf8-48b2-a39f-9157eb1ee219
Channel: SIP/rivas-0000000f
Command: EXEC Busy
CommandID: f75e058d-99eb-4031-b091-49ccd816ce24
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Response: Success
ActionID: 1b70aafe-9bf8-48b2-a39f-9157eb1ee219
Message: Added AGI command to queue
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"1b70aafe-9bf8-48b2-a39f-9157eb1ee219", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"1b70aafe-9bf8-48b2-a39f-9157eb1ee219", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000f
CommandId: 513915566
Command: EXEC Busy
Event: Newstate
Privilege: call,all
Channel: SIP/rivas-0000000f
ChannelState: 7
ChannelStateDesc: Busy
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1350018246.15
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000f
CommandId: 513915566
Command: EXEC Busy
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/rivas-0000000f
CommandID: f75e058d-99eb-4031-b091-49ccd816ce24
Result: 200%20result%3D-1%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000f
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"513915566", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"513915566", "Command"=>"EXEC Busy"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"513915566", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "ChannelState"=>"7", "ChannelStateDesc"=>"Busy", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"", "ConnectedLineName"=>"", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000f", "CommandID"=>"f75e058d-99eb-4031-b091-49ccd816ce24", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f", "CommandId"=>"513915566", "Command"=>"EXEC Busy", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/rivas-0000000f", "CommandID"=>"f75e058d-99eb-4031-b091-49ccd816ce24", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018246.15
Event: Newexten
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Context: from-ahn
Extension: h
Priority: 1
Application: AGI
AppData: agi:async
Uniqueid: 1350018246.15
Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/rivas-0000000f
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/rivas-0000000f
Event: VarSet
Privilege: dialplan,all
Channel: SIP/rivas-0000000f
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018246.15
Event: Hangup
Privilege: call,all
Channel: SIP/rivas-0000000f
Uniqueid: 1350018246.15
CallerIDNum: 0933011050
CallerIDName: 0933011050
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Cause: 0
Cause-txt: Unknown
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newexten", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Context"=>"from-ahn", "Extension"=>"h", "Priority"=>"1", "Application"=>"AGI", "AppData"=>"agi:async", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/rivas-0000000f", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/rivas-0000000f"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "Uniqueid"=>"1350018246.15", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/rivas-0000000f", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018246.15"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/rivas-0000000f", "Uniqueid"=>"1350018246.15", "CallerIDNum"=>"0933011050", "CallerIDName"=>"0933011050", "ConnectedLineNum"=>"<unknown>", "ConnectedLineName"=>"<unknown>", "Cause"=>"0", "Cause-txt"=>"Unknown"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000f", :commandid=>"513915566", :command=>"EXEC Busy"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000f", :channelstate=>"7", :channelstatedesc=>"Busy", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"", :connectedlinename=>"", :uniqueid=>"1350018246.15"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000f", :commandid=>"513915566", :command=>"EXEC Busy", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/rivas-0000000f", :commandid=>"f75e058d-99eb-4031-b091-49ccd816ce24", :result=>"200%20result%3D-1%0A"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000f"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::OutboundCall: : Executing command #<Punchblock::Command::Dial to="SIP/0933011050@gsm17", from="gsm17 <gsm17>", join=nil, headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000f", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018246.15"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newexten", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000f", :context=>"from-ahn", :extension=>"h", :priority=>"1", :application=>"AGI", :appdata=>"agi:async", :uniqueid=>"1350018246.15"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/rivas-0000000f", :env=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Frivas-0000000f%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018246.15%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%200933011050%0Aagi_calleridname%3A%200933011050%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%207867399%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20from-ahn%0Aagi_extension%3A%20h%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1279943824%0A%0A"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/rivas-0000000f"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/rivas-0000000f", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018246.15"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/rivas-0000000f", :uniqueid=>"1350018246.15", :calleridnum=>"0933011050", :calleridname=>"0933011050", :connectedlinenum=>"<unknown>", :connectedlinename=>"<unknown>", :cause=>"0", :cause_txt=>"Unknown"}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="edf30e5c-b05a-41e6-9e1c-7856b3013bce", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:07] INFO Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Call ended
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [QUEUE]: Action: originate
ActionID: 1148928a-4e2d-45b6-82b4-9ca38bc2fb2a
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=a8eedec8-52ed-44c0-944f-33efd9779175
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [SEND]: Action: originate
ActionID: 1148928a-4e2d-45b6-82b4-9ca38bc2fb2a
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=a8eedec8-52ed-44c0-944f-33efd9779175
[2012-10-12 08:04:07] DEBUG Celluloid: [SEND] Action: originate
ActionID: 1148928a-4e2d-45b6-82b4-9ca38bc2fb2a
Async: true
Application: AGI
Data: agi:async
Channel: SIP/0933011050@gsm17
Callerid: gsm17 <gsm17>
Variable: punchblock_call_id=a8eedec8-52ed-44c0-944f-33efd9779175
[2012-10-12 08:04:07] DEBUG Adhearsion::Call: edf30e5c-b05a-41e6-9e1c-7856b3013bce: Finished executing controller #<Main call=edf30e5c-b05a-41e6-9e1c-7856b3013bce, metadata={}>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Event: Newchannel
Privilege: call,all
Channel: SIP/gsm17-00000010
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: incoming-peers
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: SIPCALLID
Value: 64c5b887043a742469a0200324d90d3e@192.168.2.55:5060
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: punchblock_call_id
Value: a8eedec8-52ed-44c0-944f-33efd9779175
Uniqueid: 1350018247.16
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-00000010
Uniqueid: 1350018247.16
AccountCode:
OldAccountCode:
Event: NewCallerid
Privilege: call,all
Channel: SIP/gsm17-00000010
CallerIDNum: gsm17
CallerIDName: gsm17
Uniqueid: 1350018247.16
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] Response: Success
ActionID: 1148928a-4e2d-45b6-82b4-9ca38bc2fb2a
Message: Originate successfully queued
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"1148928a-4e2d-45b6-82b4-9ca38bc2fb2a", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"SIPCALLID", "Value"=>"64c5b887043a742469a0200324d90d3e@192.168.2.55:5060", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"punchblock_call_id", "Value"=>"a8eedec8-52ed-44c0-944f-33efd9779175", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newchannel", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"0", "ChannelStateDesc"=>"Down", "CallerIDNum"=>"", "CallerIDName"=>"", "AccountCode"=>"", "Exten"=>"", "Context"=>"incoming-peers", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018247.16", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"1148928a-4e2d-45b6-82b4-9ca38bc2fb2a", "Message"=>"Originate successfully queued"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"SIPCALLID", "Value"=>"64c5b887043a742469a0200324d90d3e@192.168.2.55:5060", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"punchblock_call_id", "Value"=>"a8eedec8-52ed-44c0-944f-33efd9779175", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewCallerid", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "Uniqueid"=>"1350018247.16", "CID-CallingPres"=>"0 (Presentation Allowed, Not Screened)"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:07] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"punchblock_call_id", :value=>"a8eedec8-52ed-44c0-944f-33efd9779175", :uniqueid=>"1350018247.16"}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:08] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-00000010
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018247.16
[2012-10-12 08:04:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"5", "ChannelStateDesc"=>"Ringing", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:08] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :channelstate=>"5", :channelstatedesc=>"Ringing", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018247.16"}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:08] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Ringing headers_hash={}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:08] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm21
PeerStatus: Registered
Address: 192.168.2.33:5118
[2012-10-12 08:04:08] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:08] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:09] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm20
PeerStatus: Registered
Address: 192.168.2.33:5116
[2012-10-12 08:04:09] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:09] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] Event: Newstate
Privilege: call,all
Channel: SIP/gsm17-00000010
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: punchblock_call_id
Value: a8eedec8-52ed-44c0-944f-33efd9779175
Uniqueid: 1350018247.16
Event: NewAccountCode
Privilege: call,all
Channel: SIP/gsm17-00000010
Uniqueid: 1350018247.16
AccountCode:
OldAccountCode:
Event: OriginateResponse
Privilege: call,all
ActionID: 1148928a-4e2d-45b6-82b4-9ca38bc2fb2a
Response: Success
Channel: SIP/gsm17-00000010
Context:
Exten:
Reason: 4
Uniqueid: 1350018247.16
CallerIDNum: gsm17
CallerIDName: gsm17
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"punchblock_call_id", "Value"=>"a8eedec8-52ed-44c0-944f-33efd9779175", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Newstate", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "ChannelState"=>"6", "ChannelStateDesc"=>"Up", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"punchblock_call_id", "Value"=>"a8eedec8-52ed-44c0-944f-33efd9779175", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"1148928a-4e2d-45b6-82b4-9ca38bc2fb2a", "Response"=>"Success", "Channel"=>"SIP/gsm17-00000010", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018247.16", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] Event: AsyncAGI
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-00000010
Env: agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-00000010%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018247.16%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A
[2012-10-12 08:04:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="NewAccountCode", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "AccountCode"=>"", "OldAccountCode"=>""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="OriginateResponse", headers={"Privilege"=>"call,all", "ActionID"=>"1148928a-4e2d-45b6-82b4-9ca38bc2fb2a", "Response"=>"Success", "Channel"=>"SIP/gsm17-00000010", "Context"=>"", "Exten"=>"", "Reason"=>"4", "Uniqueid"=>"1350018247.16", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-00000010", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-00000010%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018247.16%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-00000010", "Env"=>"agi_request%3A%20async%0Aagi_channel%3A%20SIP%2Fgsm17-00000010%0Aagi_language%3A%20ru%0Aagi_type%3A%20SIP%0Aagi_uniqueid%3A%201350018247.16%0Aagi_version%3A%201.8.13.1~dfsg-1%0Aagi_callerid%3A%20gsm17%0Aagi_calleridname%3A%20gsm17%0Aagi_callingpres%3A%200%0Aagi_callingani2%3A%200%0Aagi_callington%3A%200%0Aagi_callingtns%3A%200%0Aagi_dnid%3A%20unknown%0Aagi_rdnis%3A%20unknown%0Aagi_context%3A%20incoming-peers%0Aagi_extension%3A%20%0Aagi_priority%3A%201%0Aagi_enhanced%3A%200.0%0Aagi_accountcode%3A%20%0Aagi_threadid%3A%20-1280189584%0A%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:14] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Newstate", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :channelstate=>"6", :channelstatedesc=>"Up", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :uniqueid=>"1350018247.16"}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:14] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="NewAccountCode", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :uniqueid=>"1350018247.16", :accountcode=>"", :oldaccountcode=>""}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:14] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Answered headers_hash={}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:14] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Executing command #<Punchblock::Component::Asterisk::AGI::Command name="EXEC queue", params_array=["priority", "", "", "", "", ""], target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:04:14] DEBUG Adhearsion::Call: : Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-00000010", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018247.16", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8"
[2012-10-12 08:04:14] INFO Adhearsion::Router: Call 13cfd8f7-e482-4ba8-b25e-1308e2548fd8 selected route "default" (Main)
[2012-10-12 08:04:14] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Executing command #<Punchblock::Command::Accept headers_hash={}, target_call_id=nil, component_id=nil, target_mixer_name=nil, state_name=:new>
[2012-10-12 08:04:15] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="OriginateResponse", attributes_hash={:privilege=>"call,all", :actionid=>"1148928a-4e2d-45b6-82b4-9ca38bc2fb2a", :response=>"Success", :channel=>"SIP/gsm17-00000010", :context=>"", :exten=>"", :reason=>"4", :uniqueid=>"1350018247.16", :calleridnum=>"gsm17", :calleridname=>"gsm17"}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: 9435b59d-5758-4d51-8b4e-ad7ffebc69b9
Channel: SIP/gsm17-00000010
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: dd31ab02-9850-4590-8c85-cb38d2b63fd4
[2012-10-12 08:04:15] DEBUG Adhearsion::OutboundCall: a8eedec8-52ed-44c0-944f-33efd9779175: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"punchblock_call_id", :value=>"a8eedec8-52ed-44c0-944f-33efd9779175", :uniqueid=>"1350018247.16"}, target_call_id="a8eedec8-52ed-44c0-944f-33efd9779175", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: 9435b59d-5758-4d51-8b4e-ad7ffebc69b9
Channel: SIP/gsm17-00000010
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: dd31ab02-9850-4590-8c85-cb38d2b63fd4
[2012-10-12 08:04:15] DEBUG Celluloid: [SEND] Action: agi
ActionID: 9435b59d-5758-4d51-8b4e-ad7ffebc69b9
Channel: SIP/gsm17-00000010
Command: EXEC queue "priority" "" "" "" "" ""
CommandID: dd31ab02-9850-4590-8c85-cb38d2b63fd4
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] Response: Success
ActionID: 9435b59d-5758-4d51-8b4e-ad7ffebc69b9
Message: Added AGI command to queue
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"9435b59d-5758-4d51-8b4e-ad7ffebc69b9", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"9435b59d-5758-4d51-8b4e-ad7ffebc69b9", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [QUEUE]: Action: agi
ActionID: bb30377d-d57e-48e9-a820-924035d0de1f
Channel: SIP/gsm17-00000010
Command: EXEC RINGING
CommandID: cab7cb56-aa42-43f1-a4b2-658e42e9a9c3
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [SEND]: Action: agi
ActionID: bb30377d-d57e-48e9-a820-924035d0de1f
Channel: SIP/gsm17-00000010
Command: EXEC RINGING
CommandID: cab7cb56-aa42-43f1-a4b2-658e42e9a9c3
[2012-10-12 08:04:15] DEBUG Celluloid: [SEND] Action: agi
ActionID: bb30377d-d57e-48e9-a820-924035d0de1f
Channel: SIP/gsm17-00000010
Command: EXEC RINGING
CommandID: cab7cb56-aa42-43f1-a4b2-658e42e9a9c3
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/gsm17-00000010
CommandId: 609476514
Command: EXEC queue "priority" "" "" "" "" ""
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-00000010", "CommandId"=>"609476514", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] Event: Join
Privilege: call,all
Channel: SIP/gsm17-00000010
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Queue: priority
Position: 1
Count: 1
Uniqueid: 1350018247.16
Event: MusicOnHold
Privilege: call,all
State: Start
Channel: SIP/gsm17-00000010
UniqueID: 1350018247.16
Class: default
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] Response: Success
ActionID: bb30377d-d57e-48e9-a820-924035d0de1f
Message: Added AGI command to queue
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] #<RubyAMI::Response headers={"ActionID"=>"bb30377d-d57e-48e9-a820-924035d0de1f", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"Start", "Channel"=>"SIP/gsm17-00000010", "CommandId"=>"609476514", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [RECV-ACTIONS]: #<RubyAMI::Response headers={"ActionID"=>"bb30377d-d57e-48e9-a820-924035d0de1f", "Message"=>"Added AGI command to queue"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-00000010", "UniqueID"=>"1350018247.16", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Join", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Queue"=>"priority", "Position"=>"1", "Count"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:15] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="MusicOnHold", headers={"Privilege"=>"call,all", "State"=>"Start", "Channel"=>"SIP/gsm17-00000010", "UniqueID"=>"1350018247.16", "Class"=>"default"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: RTPAUDIOQOS
Value: ssrc=440861080;themssrc=3158747606;lp=0;rxjitter=0.000020;rxcount=479;txjitter=0.000000;txcount=462;rlp=0;rtt=0.000000
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1350018247.16
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=440861080;themssrc=3158747606;lp=0;rxjitter=0.000020;rxcount=479;txjitter=0.000000;txcount=462;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOS", "Value"=>"ssrc=440861080;themssrc=3158747606;lp=0;rxjitter=0.000020;rxcount=479;txjitter=0.000000;txcount=462;rlp=0;rtt=0.000000", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSJITTER", "Value"=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSLOSS", "Value"=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] Event: QueueCallerAbandon
Privilege: agent,all
Queue: priority
Uniqueid: 1350018247.16
Position: 1
OriginalPosition: 1
HoldTime: 9
Event: Leave
Privilege: call,all
Channel: SIP/gsm17-00000010
Queue: priority
Count: 0
Position: 1
Uniqueid: 1350018247.16
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: QUEUEPOSITION
Value: 1
Uniqueid: 1350018247.16
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-00000010
CommandId: 609476514
Command: EXEC queue "priority" "" "" "" "" ""
ResultCode: 200
Result: Unknown Result
Event: AsyncAGI
Privilege: agi,all
SubEvent: Exec
Channel: SIP/gsm17-00000010
CommandID: dd31ab02-9850-4590-8c85-cb38d2b63fd4
Result: 200%20result%3D-1%0A
Event: AsyncAGI
Privilege: agi,all
SubEvent: End
Channel: SIP/gsm17-00000010
Event: VarSet
Privilege: dialplan,all
Channel: SIP/gsm17-00000010
Variable: AGISTATUS
Value: HANGUP
Uniqueid: 1350018247.16
Event: Hangup
Privilege: call,all
Channel: SIP/gsm17-00000010
Uniqueid: 1350018247.16
CallerIDNum: gsm17
CallerIDName: gsm17
ConnectedLineNum: gsm17
ConnectedLineName: gsm17
Cause: 16
Cause-txt: Normal Clearing
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018247.16", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"9"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"RTPAUDIOQOSRTT", "Value"=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="QueueCallerAbandon", headers={"Privilege"=>"agent,all", "Queue"=>"priority", "Uniqueid"=>"1350018247.16", "Position"=>"1", "OriginalPosition"=>"1", "HoldTime"=>"9"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Leave", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Queue"=>"priority", "Count"=>"0", "Position"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-00000010", "CommandId"=>"609476514", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"QUEUEPOSITION", "Value"=>"1", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AGIExec", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-00000010", "CommandId"=>"609476514", "Command"=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", "ResultCode"=>"200", "Result"=>"Unknown Result"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-00000010", "CommandID"=>"dd31ab02-9850-4590-8c85-cb38d2b63fd4", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"Exec", "Channel"=>"SIP/gsm17-00000010", "CommandID"=>"dd31ab02-9850-4590-8c85-cb38d2b63fd4", "Result"=>"200%20result%3D-1%0A"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-00000010"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="AsyncAGI", headers={"Privilege"=>"agi,all", "SubEvent"=>"End", "Channel"=>"SIP/gsm17-00000010"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="VarSet", headers={"Privilege"=>"dialplan,all", "Channel"=>"SIP/gsm17-00000010", "Variable"=>"AGISTATUS", "Value"=>"HANGUP", "Uniqueid"=>"1350018247.16"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Hangup", headers={"Privilege"=>"call,all", "Channel"=>"SIP/gsm17-00000010", "Uniqueid"=>"1350018247.16", "CallerIDNum"=>"gsm17", "CallerIDName"=>"gsm17", "ConnectedLineNum"=>"gsm17", "ConnectedLineName"=>"gsm17", "Cause"=>"16", "Cause-txt"=>"Normal Clearing"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"Start", :channel=>"SIP/gsm17-00000010", :commandid=>"609476514", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\""}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="MusicOnHold", attributes_hash={:privilege=>"call,all", :state=>"Start", :channel=>"SIP/gsm17-00000010", :uniqueid=>"1350018247.16", :class=>"default"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Join", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :queue=>"priority", :position=>"1", :count=>"1", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"RTPAUDIOQOS", :value=>"ssrc=440861080;themssrc=3158747606;lp=0;rxjitter=0.000020;rxcount=479;txjitter=0.000000;txcount=462;rlp=0;rtt=0.000000", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"RTPAUDIOQOSJITTER", :value=>"minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"RTPAUDIOQOSRTT", :value=>"minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"RTPAUDIOQOSLOSS", :value=>"minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Leave", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :queue=>"priority", :count=>"0", :position=>"1", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"QUEUEPOSITION", :value=>"1", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-00000010", :commandid=>"609476514", :command=>"EXEC queue \"priority\" \"\" \"\" \"\" \"\" \"\"", :resultcode=>"200", :result=>"Unknown Result"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"Exec", :channel=>"SIP/gsm17-00000010", :commandid=>"dd31ab02-9850-4590-8c85-cb38d2b63fd4", :result=>"200%20result%3D-1%0A"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AsyncAGI", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/gsm17-00000010"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/gsm17-00000010", :variable=>"AGISTATUS", :value=>"HANGUP", :uniqueid=>"1350018247.16"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="Hangup", attributes_hash={:privilege=>"call,all", :channel=>"SIP/gsm17-00000010", :uniqueid=>"1350018247.16", :calleridnum=>"gsm17", :calleridname=>"gsm17", :connectedlinenum=>"gsm17", :connectedlinename=>"gsm17", :cause=>"16", :cause_txt=>"Normal Clearing"}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::End reason=:hangup, headers_hash={}, target_call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8", component_id=nil, target_mixer_name=nil>
[2012-10-12 08:04:24] INFO Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Call ended
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Receiving message: #<Punchblock::Event::Offer to="", from="gsm17 <SIP/gsm17>", headers={:x_agi_request=>"async", :x_agi_channel=>"SIP/gsm17-00000010", :x_agi_language=>"ru", :x_agi_type=>"SIP", :x_agi_uniqueid=>"1350018247.16", :x_agi_version=>"1.8.13.1~dfsg-1", :x_agi_callerid=>"gsm17", :x_agi_calleridname=>"gsm17", :x_agi_callingpres=>"0", :x_agi_callingani2=>"0", :x_agi_callington=>"0", :x_agi_callingtns=>"0", :x_agi_dnid=>"unknown", :x_agi_rdnis=>"unknown", :x_agi_context=>"incoming-peers", :x_agi_extension=>"", :x_agi_priority=>"1", :x_agi_enhanced=>"0.0", :x_agi_accountcode=>"", :x_agi_threadid=>"-1280189584"}, call_id="13cfd8f7-e482-4ba8-b25e-1308e2548fd8"
[2012-10-12 08:04:24] INFO Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: calller ID is gsm17 <SIP
[2012-10-12 08:04:24] INFO Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Call was hung up
[2012-10-12 08:04:24] DEBUG Adhearsion::Call: 13cfd8f7-e482-4ba8-b25e-1308e2548fd8: Finished executing controller #<Main call=13cfd8f7-e482-4ba8-b25e-1308e2548fd8, metadata={}>
AHN> take
Please choose a call:
# (inbound/outbound) details
0: (o) 2a016376-eae5-4c5b-97b5-ad065328958f from gsm17 <gsm17> to SIP/0933011050@gsm17
1: (o) 90e8c1c5-578b-4f74-8f2d-6b2c45b29295 from gsm17 <gsm17> to SIP/0933011050@gsm17
2: (o) a8eedec8-52ed-44c0-944f-33efd9779175 from gsm17 <gsm17> to SIP/0933011050@gsm17
#> [2012-10-12 08:04:34] DEBUG Celluloid: [RECV] Event: Registry
Privilege: system,all
ChannelType: SIP
Domain: 192.168.2.112
Status: Registered
[2012-10-12 08:04:34] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="Registry", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Domain"=>"192.168.2.112", "Status"=>"Registered"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:34] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="Registry", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Domain"=>"192.168.2.112", "Status"=>"Registered"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:38] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/rivas
PeerStatus: Registered
Address: 192.168.2.112:5060
[2012-10-12 08:04:38] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/rivas", "PeerStatus"=>"Registered", "Address"=>"192.168.2.112:5060"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:38] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/rivas", "PeerStatus"=>"Registered", "Address"=>"192.168.2.112:5060"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:51] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm17
PeerStatus: Registered
Address: 192.168.2.33:5110
[2012-10-12 08:04:51] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:51] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm17", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5110"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:51] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm18
PeerStatus: Registered
Address: 192.168.2.33:5112
[2012-10-12 08:04:51] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:51] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm18", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5112"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:59] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm19
PeerStatus: Registered
Address: 192.168.2.33:5114
[2012-10-12 08:04:59] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:04:59] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm19", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5114"}, text_body=nil, events=nil, action=nil>
exit
AHN<2a016376-eae5-4c5b-97b5-ad065328958f> [2012-10-12 08:05:02] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Starting interactive controller
[2012-10-12 08:05:03] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm21
PeerStatus: Registered
Address: 192.168.2.33:5118
[2012-10-12 08:05:03] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:05:03] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm21", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5118"}, text_body=nil, events=nil, action=nil>
[2012-10-12 08:05:04] DEBUG Celluloid: [RECV] Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/gsm20
PeerStatus: Registered
Address: 192.168.2.33:5116
[2012-10-12 08:05:04] DEBUG Celluloid: [RECV] #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
exi[2012-10-12 08:05:04] TRACE RubyAMI::Client: [RECV-EVENTS]: #<RubyAMI::Event name="PeerStatus", headers={"Privilege"=>"system,all", "ChannelType"=>"SIP", "Peer"=>"SIP/gsm20", "PeerStatus"=>"Registered", "Address"=>"192.168.2.33:5116"}, text_body=nil, events=nil, action=nil>
AHN<2a016376-eae5-4c5b-97b5-ad065328958f> exit
[2012-10-12 08:05:06] DEBUG Adhearsion::OutboundCall: 2a016376-eae5-4c5b-97b5-ad065328958f: Finished executing controller #<Adhearsion::Console::InteractiveController call=2a016376-eae5-4c5b-97b5-ad065328958f, metadata={}>
[2012-10-12 08:05:06] DEBUG Adhearsion::Console: Restoring control of call to controllers
AHN> exit
[2012-10-12 08:05:07] INFO Celluloid: Terminating 14 actors...
[2012-10-12 08:05:07] DEBUG Celluloid: Finalizing stream
[2012-10-12 08:05:07] DEBUG Celluloid: Finalizing stream
[2012-10-12 08:05:07] INFO Adhearsion::Process: Transitioning from running to booting with 0 active calls due to reset event.
[2012-10-12 08:05:07] ERROR Adhearsion::PunchblockPlugin::Initializer: Connection lost. Attempting reconnect 1 of Infinity
[2012-10-12 08:05:07] INFO Celluloid: Shutdown completed cleanly
root@test-voip:~/rbox#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment