Connecting to database specified by database.yml  (16.7ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::AgentsController#terminate_active_call as HTML Parameters: {"id"=>"bogus_id"} Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents` Completed 500 Internal Server Error in 44ms  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (40.7ms) BEGIN Processing by Telephony::CallCentersController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (5.8ms) SAVEPOINT active_record_1  (5.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 10.8ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) BEGIN Processing by Telephony::PlayableListenersController#index as HTML Filter chain halted as :validate_playable rendered or redirected Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::PlayableListenersController#create as HTML Filter chain halted as :validate_csr rendered or redirected Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::Providers::Twilio::MusicsController#hold as HTML Completed 200 OK in 71ms (Views: 70.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#index as HTML Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Parameters: {"csr_id"=>"123"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Filter chain halted as :validate_params rendered or redirected Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Filter chain halted as :validate_params rendered or redirected Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::WidgetController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by AnonymousController#index as HTML Parameters: {"ToState"=>"California", "CalledState"=>"California", "Direction"=>"inbound", "FromState"=>"CA", "AccountSid"=>"ACFAKEACCOUNTSID", "Caller"=>"+15555551235", "CallerZip"=>"94108", "CallerCountry"=>"US", "From"=>"+15555551235", "FromCity"=>"SAN FRANCISCO", "CallerCity"=>"SAN FRANCISCO", "To"=>"+15555551235", "FromZip"=>"94108", "FromCountry"=>"US", "ToCity"=>"", "CallStatus"=>"ringing", "CalledCity"=>"", "CallerState"=>"CA", "CalledZip"=>"", "ToZip"=>"", "ToCountry"=>"US", "CallSid"=>"CAFAKECALLSID", "CalledCountry"=>"US", "Called"=>"+15555551234", "ApiVersion"=>"2010-04-01", "ApplicationSid"=>"APFAKEAPPLICATIONSID"} Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by AnonymousController#index as HTML Parameters: {"foo"=>"bar"} Filter chain halted as :verify_twilio_request rendered or redirected Completed 401 Unauthorized in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/join_conference - Twilio::REST::RequestError - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/join_conference - Timeout::Error - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/complete_hold - Twilio::REST::RequestError - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Failed attempt to buy a phone number in area code '500': Exception  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/dial - Twilio::REST::RequestError - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.3ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playable_listeners' doesn't exist: SHOW FULL FIELDS FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversation_events' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversation_events`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started POST "/zestphone/providers/twilio/inbound_calls" for 127.0.0.1 at 2014-02-10 11:50:34 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#create as HTML Parameters: {"From"=>"555-555-1234", "To"=>"555-555-1235"} Mysql2::Error: Table 'telephony_test.telephony_blacklisted_numbers' doesn't exist: SHOW FULL FIELDS FROM `telephony_blacklisted_numbers` Completed 500 Internal Server Error in 88ms  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_blacklisted_numbers' doesn't exist: SHOW FULL FIELDS FROM `telephony_blacklisted_numbers`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_calls' doesn't exist: SHOW FULL FIELDS FROM `telephony_calls`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started GET "/zestphone/providers/twilio/inbound_calls/wait_music" for 127.0.0.1 at 2014-02-10 11:50:34 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#wait_music as HTML Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started GET "/zestphone/providers/twilio/inbound_calls/wait_music" for 127.0.0.1 at 2014-02-10 11:50:34 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#wait_music as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_agents' doesn't exist: SHOW FULL FIELDS FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_conversations' doesn't exist: SHOW FULL FIELDS FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Mysql2::Error: Table 'telephony_test.telephony_playables' doesn't exist: SHOW FULL FIELDS FROM `telephony_playables`  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::AgentsController#terminate_active_call as HTML Parameters: {"id"=>"bogus_id"} Telephony::Agent Load (39.1ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 0 LIMIT 1 Completed 400 Bad Request in 118ms (Views: 0.3ms | ActiveRecord: 57.4ms)  (0.1ms) ROLLBACK  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (36.0ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#terminate_active_call as HTML Parameters: {"id"=>"123"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 1 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 1, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (2.2ms) UPDATE `telephony_agents` SET `phone_type` = 'invalid', `updated_at` = '2014-02-10 18:59:35', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#update as HTML Parameters: {"csr_phone_type"=>"invalid", "csr_type"=>"B", "csr_id"=>"1", "id"=>"1"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 62ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (11.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 2, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `phone_type` = 'invalid', `updated_at` = '2014-02-10 18:59:35', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#update as HTML Parameters: {"csr_phone_type"=>"invalid", "csr_type"=>"B", "csr_id"=>"2", "id"=>"2"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 400 Bad Request in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#status as HTML Parameters: {"event"=>"not_available", "id"=>"123"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 4 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:35', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 4 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#status as HTML Parameters: {"event"=>"not_available", "id"=>"123"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 5 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:35', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 5 LIMIT 1  (0.1ms) ROLLBACK  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#show_by_csr_id as HTML Parameters: {"csr_id"=>"123"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:35', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#index as HTML Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` IS NULL LIMIT 1 Telephony::Agent Load (0.3ms) SELECT id, csr_id, csr_type, status, name, phone_ext, phone_number FROM `telephony_agents`  Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, '---\n- 11\n- 12\n', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::AgentsController#index as HTML Parameters: {"csr_id"=>"123"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT id, csr_id, csr_type, status, name, phone_ext, phone_number FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` IN (11, 12) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::CallCentersController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Hold failed. Please try again in a few seconds. - Some error - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"hold"} Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Hold failed. Please try again in a few seconds. - Some error - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"hold"} Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#hold as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Hold failed. Please try again in a few seconds. - Cannot transition state via :initiate_hold from :initiated (Reason(s): State cannot transition via "initiate hold") - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"hold"} Completed 500 Internal Server Error in 5ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#resume as JS Parameters: {"id"=>"1"}  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#resume as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Resume failed. Please try again in a few seconds. - Some error - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"resume"} Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#resume as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Resume failed. Please try again in a few seconds. - Some error - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"resume"} Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::ConversationsController#resume as JS Parameters: {"id"=>"1"}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Resume failed. Please try again in a few seconds. - Cannot transition state via :initiate_resume from :initiated (Reason(s): State cannot transition via "initiate resume") - {"id"=>"1", "controller"=>"telephony/conversations", "action"=>"resume"} Completed 500 Internal Server Error in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:36', 1, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::ConversationsController#search as JS  (1.0ms) SELECT COUNT(*) FROM `telephony_conversations` Telephony::Conversation Load (0.6ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (1) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (1) ORDER BY id Completed 200 OK in 121ms (Views: 94.1ms | ActiveRecord: 23.4ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 3, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"3", "from_type"=>"csr"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:36', 3, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:36') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (13, NULL, 2, '2014-02-10 18:59:36', '123-123-1233', 3, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:36') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 2, '2014-02-10 18:59:36', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_conversations`.`id` = 2 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 2 LIMIT 1 Telephony::Call Load (0.7ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (2) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (13) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 2, 'connecting', '2014-02-10 18:59:36', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 2 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_calls`.`id` = 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 2 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 2 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (2) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (13) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (1, 'connecting', 2, 'connecting', '2014-02-10 18:59:36', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 13\n csr_id: 3\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 2 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 13 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 2 LIMIT 1 Twilio provider - Failed to create a call - Twilio::REST::RequestError - The phone number you are attempting to call, 1231231233, is not valid. Call failed. Please try again in a few seconds. - Failed to create a call - The phone number you are attempting to call, 1231231233, is not valid. - {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"3", "from_type"=>"csr", "controller"=>"telephony/conversations", "action"=>"create"} Completed 500 Internal Server Error in 246ms (Views: 0.3ms | ActiveRecord: 7.2ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) ROLLBACK  (11.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 4, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"4", "from_type"=>"csr"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:36', 4, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:36') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (14, NULL, 3, '2014-02-10 18:59:36', '123-123-1233', 4, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:36') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 3, '2014-02-10 18:59:36', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_conversations`.`id` = 3 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 3 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (3) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (14) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 3, 'connecting', '2014-02-10 18:59:36', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 3 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_calls`.`id` = 3 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 3 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 3 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (3) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (14) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (3, 'connecting', 3, 'connecting', '2014-02-10 18:59:36', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 14\n csr_id: 4\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 3 ORDER BY id LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 14 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 3 LIMIT 1 Twilio provider - Failed to create a call - Twilio::REST::RequestError - The phone number you are attempting to call, 1231231233, is not valid. Call failed. Please try again in a few seconds. - Failed to create a call - The phone number you are attempting to call, 1231231233, is not valid. - {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"4", "from_type"=>"csr", "controller"=>"telephony/conversations", "action"=>"create"} Completed 500 Internal Server Error in 51ms (Views: 0.4ms | ActiveRecord: 6.5ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_calls`   (0.1ms) ROLLBACK  (11.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 5, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"5", "from_type"=>"csr"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:36', 5, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:36') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (15, NULL, 4, '2014-02-10 18:59:36', '123-123-1233', 5, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:36') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 4, '2014-02-10 18:59:36', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_conversations`.`id` = 4 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 4 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (4) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (15) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 4, 'connecting', '2014-02-10 18:59:36', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 4 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_calls`.`id` = 5 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 4 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 4 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (4) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (15) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (5, 'connecting', 4, 'connecting', '2014-02-10 18:59:36', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 15\n csr_id: 5\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 4 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 15 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'CA82a249c5e139dfaa08aa489a712853e8', `updated_at` = '2014-02-10 18:59:36' WHERE `telephony_calls`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 4 ORDER BY id Completed 200 OK in 53ms (Views: 0.2ms | ActiveRecord: 7.6ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 6, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"6", "from_type"=>"csr"} Call failed. Please try again in a few seconds. - Call failed - {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"6", "from_type"=>"csr", "controller"=>"telephony/conversations", "action"=>"create"} Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 7, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"7", "from_type"=>"csr"} Call failed. Please try again in a few seconds. - Call failed - {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"7", "from_type"=>"csr", "controller"=>"telephony/conversations", "action"=>"create"} Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 1, 1, '2014-02-10 18:59:36')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#index as HTML Parameters: {"playable_id"=>"1"} Telephony::PlayableListener Load (0.4ms) SELECT `telephony_playable_listeners`.* FROM `telephony_playable_listeners` WHERE `telephony_playable_listeners`.`playable_id` = 1 ORDER BY created_at DESC LIMIT 5 OFFSET 0 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 2, 2, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#index as HTML Parameters: {"playable_id"=>"2"} Telephony::PlayableListener Load (0.4ms) SELECT `telephony_playable_listeners`.* FROM `telephony_playable_listeners` WHERE `telephony_playable_listeners`.`playable_id` = 2 ORDER BY created_at DESC LIMIT 5 OFFSET 0 Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 3, 3, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#index as HTML Parameters: {"playable_id"=>"3"} Telephony::PlayableListener Load (0.4ms) SELECT `telephony_playable_listeners`.* FROM `telephony_playable_listeners` WHERE `telephony_playable_listeners`.`playable_id` = 3 ORDER BY created_at DESC LIMIT 5 OFFSET 0 Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-09 18:59:36', 4, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 17:59:36', 5, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 15:59:36', 6, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#index as HTML Parameters: {"playable_id"=>"1"} Telephony::PlayableListener Load (0.4ms) SELECT `telephony_playable_listeners`.* FROM `telephony_playable_listeners` WHERE `telephony_playable_listeners`.`playable_id` = 1 ORDER BY created_at DESC LIMIT 5 OFFSET 0 Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::PlayableListenersController#index as HTML Filter chain halted as :validate_playable rendered or redirected Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 7, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 8, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 9, 2, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 10, 2, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 11, 3, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#recent as HTML Parameters: {"playable_ids"=>["1", "2"]} Telephony::PlayableListener Load (2.9ms)  SELECT * FROM (SELECT * FROM telephony_playable_listeners WHERE playable_id IN ('1','2') ORDER BY created_at DESC) AS playable_listeners GROUP BY playable_listeners.playable_id  Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 12, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 13, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 14, 2, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 15, 2, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 16, 3, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#recent as HTML Parameters: {"playable_ids"=>["1", "2", "3", "4", "5"]} Telephony::PlayableListener Load (0.5ms)  SELECT * FROM (SELECT * FROM telephony_playable_listeners WHERE playable_id IN ('1','2','3','4','5') ORDER BY created_at DESC) AS playable_listeners GROUP BY playable_listeners.playable_id  Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 2, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#create as HTML Parameters: {"playable_id"=>"1", "csr_id"=>"102"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 102, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 2, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#create as HTML Parameters: {"playable_id"=>"1", "csr_id"=>"102"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 102, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM `telephony_playable_listeners`  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 2, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::PlayableListenersController#create as HTML Parameters: {"playable_id"=>"1", "csr_id"=>"102"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-10 18:59:36', 102, 1, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 3ms (Views: 0.5ms | ActiveRecord: 0.5ms) Telephony::PlayableListener Load (0.3ms) SELECT `telephony_playable_listeners`.* FROM `telephony_playable_listeners` ORDER BY `telephony_playable_listeners`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::PlayableListenersController#create as HTML Filter chain halted as :validate_csr rendered or redirected Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:36', 2, 2, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 5, '2014-02-10 18:59:36', '562-555-5555', 1, NULL, 'sid-1', 'in_progress', NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:36', 8, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (18, NULL, 5, '2014-02-10 18:59:36', '562-555-5555', 2, NULL, 'sid-2', 'in_conference', NULL, '2014-02-10 18:59:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Providers::Twilio::CallsController#complete_hold as HTML Parameters: {"id"=>"7"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 5 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_calls`.`id` = 7 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (7, 'in_progress_hold', 5, 'initiating_hold', '2014-02-10 18:59:37', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 5 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 5 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 18 LIMIT 1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_conversations`.`id` = 5 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 5 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (5) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (18) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 5, 'in_progress_hold', '2014-02-10 18:59:37', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 18\n csr_id: 8\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 135ms (Views: 28.0ms | ActiveRecord: 4.3ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 7 LIMIT 1  (0.1ms) ROLLBACK  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 3, 3, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 6, '2014-02-10 18:59:37', '562-555-5555', 3, NULL, 'sid-3', 'in_progress', NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 9, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (19, NULL, 6, '2014-02-10 18:59:37', '562-555-5555', 4, NULL, 'sid-4', 'in_conference', NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Providers::Twilio::CallsController#complete_hold as HTML Parameters: {"id"=>"9"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 9 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 6 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_calls`.`id` = 9 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (9, 'in_progress_hold', 6, 'initiating_hold', '2014-02-10 18:59:37', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 6 LIMIT 1 Telephony::Call Load (0.6ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 6 ORDER BY id Telephony::Agent Load (0.5ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 19 LIMIT 1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_conversations`.`id` = 6 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 6 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (6) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (19) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 6, 'in_progress_hold', '2014-02-10 18:59:37', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 19\n csr_id: 9\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 32ms (Views: 1.3ms | ActiveRecord: 5.0ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 9 LIMIT 1  (0.1ms) ROLLBACK  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 4, 4, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 7, '2014-02-10 18:59:37', '562-555-5555', 5, NULL, 'sid-5', 'in_progress', NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 10, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (20, NULL, 7, '2014-02-10 18:59:37', '562-555-5555', 6, NULL, 'sid-6', 'in_conference', NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Providers::Twilio::CallsController#complete_hold as HTML Parameters: {"id"=>"11"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 11 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 7 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_calls`.`id` = 11 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (11, 'in_progress_hold', 7, 'initiating_hold', '2014-02-10 18:59:37', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 7 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 7 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 20 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:37' WHERE `telephony_conversations`.`id` = 7 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 7 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (7) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (20) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 7, 'in_progress_hold', '2014-02-10 18:59:37', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 20\n csr_id: 10\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:37')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 79ms (Views: 2.1ms | ActiveRecord: 4.4ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 11 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 7 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::Providers::Twilio::MusicsController#hold as HTML Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 0, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-csr_id", "csr_id"=>"csr_id", "csr_type"=>"A", "csr_name"=>"csr_name", "csr_phone_number"=>"555-555-1234", "csr_phone_ext"=>"csr_phone_ext"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 0 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 21 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 38ms (Views: 0.3ms | ActiveRecord: 1.5ms) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` ORDER BY `telephony_agents`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 0, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-csr_id", "csr_id"=>"csr_id", "csr_type"=>"A", "csr_name"=>"csr_name", "csr_phone_number"=>"555-555-1234", "csr_phone_ext"=>"csr_phone_ext"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 0 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 22 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-csr_id", "csr_id"=>"csr_id", "csr_type"=>"A", "csr_name"=>"csr_name", "csr_phone_number"=>"555-555-1234", "csr_phone_ext"=>"csr_phone_ext"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 11 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 23 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-12", "csr_id"=>"12", "csr_type"=>"A", "csr_name"=>"csr_name", "csr_phone_number"=>"555-555-1234", "csr_phone_ext"=>"csr_phone_ext"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 24 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 33ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 13, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-13", "csr_id"=>"13"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 13 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 25 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 25  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.5ms) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 25 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 14, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#authenticate as HTML Parameters: {"socket_id"=>"1234.5678", "channel_name"=>"presence-14", "csr_id"=>"14", "csr_default_status"=>"not_available"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 14 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 26 LIMIT 1 FOR UPDATE  (0.5ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 2.2ms) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 26 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:37', 15, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Telephony::Signals::Agents::PresencesController#create as HTML Parameters: {"presence"=>{"time_ms"=>"9223372036854775705", "events"=>[{"name"=>"member_added", "channel"=>"presence-15", "user_id"=>"27"}]}} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 27 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 27  (0.3ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 9223372036854775705, `updated_at` = '2014-02-10 18:59:37', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 91ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#index as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Parameters: {"csr_id"=>"123"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Filter chain halted as :validate_params rendered or redirected Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::TwilioClientController#token as HTML Filter chain halted as :validate_params rendered or redirected Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Telephony::WidgetController#index as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by AnonymousController#index as HTML Parameters: {"ToState"=>"California", "CalledState"=>"California", "Direction"=>"inbound", "FromState"=>"CA", "AccountSid"=>"ACFAKEACCOUNTSID", "Caller"=>"+15555551235", "CallerZip"=>"94108", "CallerCountry"=>"US", "From"=>"+15555551235", "FromCity"=>"SAN FRANCISCO", "CallerCity"=>"SAN FRANCISCO", "To"=>"+15555551235", "FromZip"=>"94108", "FromCountry"=>"US", "ToCity"=>"", "CallStatus"=>"ringing", "CalledCity"=>"", "CallerState"=>"CA", "CalledZip"=>"", "ToZip"=>"", "ToCountry"=>"US", "CallSid"=>"CAFAKECALLSID", "CalledCountry"=>"US", "Called"=>"+15555551234", "ApiVersion"=>"2010-04-01", "ApplicationSid"=>"APFAKEAPPLICATIONSID"} Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by AnonymousController#index as HTML Parameters: {"foo"=>"bar"} Filter chain halted as :verify_twilio_request rendered or redirected Completed 401 Unauthorized in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-05 18:59:37', 5, 5, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 6, 6, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 7, 7, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 8, 8, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 9, 9, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 10, 10, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 11, 11, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 12, 12, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations`   (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-05 18:59:37', 13, 13, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 14, 14, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 15, 15, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 16, 16, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 17, 17, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 18, 18, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 19, 19, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 20, 20, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'terminated'  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-05 18:59:37', 21, 21, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 22, 22, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 23, 23, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 24, 24, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 25, 25, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 26, 26, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 27, 27, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 28, 28, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (17.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE (`telephony_conversations`.`created_at` BETWEEN '2014-02-08 18:59:37' AND '2014-02-10 18:59:37')  (0.1ms) ROLLBACK  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-05 18:59:37', 29, 29, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 30, 30, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 31, 31, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 32, 32, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 33, 33, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 34, 34, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 35, 35, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 36, 36, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'terminated' AND (`telephony_conversations`.`created_at` BETWEEN '2014-02-08 18:59:37' AND '2014-02-10 18:59:37')  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-05 18:59:37', 37, 37, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 38, 38, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-06 18:59:37', 39, 39, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 40, 40, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 41, 41, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 42, 42, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 43, 43, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 44, 44, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations`   (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:37', 45, 45, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-11 18:59:37', 46, 46, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-12 18:59:37', 47, 47, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-13 18:59:37', 48, 48, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 51, '2014-02-10 18:59:38', '562-555-5555', 7, NULL, 'sid-7', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (13, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 51, '2014-02-10 18:59:38', '562-555-5555', 8, NULL, 'sid-8', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (14, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 51, NULL, '2014-02-10 18:59:38', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.6ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 1 OFFSET 0 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (51) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (51) ORDER BY id Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (13, 14) Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (13, 14)  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `telephony_conversations` LIMIT 10 OFFSET 0) subquery_for_count   (0.4ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 51  (0.2ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 51  (0.4ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 13  (0.1ms) ROLLBACK  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 49, 49, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-11 18:59:38', 50, 50, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-12 18:59:38', 51, 51, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-13 18:59:38', 52, 52, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 55, '2014-02-10 18:59:38', '562-555-5555', 9, NULL, 'sid-9', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (15, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 55, '2014-02-10 18:59:38', '562-555-5555', 10, NULL, 'sid-10', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (16, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 55, NULL, '2014-02-10 18:59:38', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 1 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (55) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (55) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (15, 16) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (15, 16)  (0.4ms) ROLLBACK  (11.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 53, 53, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-11 18:59:38', 54, 54, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-12 18:59:38', 55, 55, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-13 18:59:38', 56, 56, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 59, '2014-02-10 18:59:38', '562-555-5555', 11, NULL, 'sid-11', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (17, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 59, '2014-02-10 18:59:38', '562-555-5555', 12, NULL, 'sid-12', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (18, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 59, NULL, '2014-02-10 18:59:38', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 1 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (59) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (59) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (17, 18) Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (17, 18)  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `telephony_conversations` LIMIT 10 OFFSET 0) subquery_for_count  Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (59, 58, 57, 56) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (59, 58, 57, 56) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (17, 18) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (17, 18)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 321, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 57, 57, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 58, 58, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 60, NULL, '2014-02-10 18:59:38', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (28, NULL, 60, '2014-02-10 18:59:38', '562-555-5555', 13, NULL, 'sid-13', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (19, '2014-02-10 18:59:38', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:38', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 321 LIMIT 1 Telephony::Conversation Load (2.9ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 28)) ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0  (0.9ms) SELECT COUNT(DISTINCT `telephony_conversations`.`id`) FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (60) AND (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 28))  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 59, 123, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 16, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (29, NULL, 62, '2014-02-10 18:59:38', '562-555-5555', 14, NULL, 'sid-14', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 62, '2014-02-10 18:59:38', '562-555-5555', 15, NULL, 'sid-15', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 60, 123, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 17, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (30, NULL, 63, '2014-02-10 18:59:38', '562-555-5555', 16, NULL, 'sid-16', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 63, '2014-02-10 18:59:38', '562-555-5555', 17, NULL, 'sid-17', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 61, 59, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 18, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (31, NULL, 64, '2014-02-10 18:59:38', '562-555-5555', 18, NULL, 'sid-18', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 64, '2014-02-10 18:59:38', '562-555-5555', 19, NULL, 'sid-19', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (2.3ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '123' OR telephony_conversations.id = '123' OR telephony_calls.number like '%123%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0  (0.8ms) SELECT COUNT(DISTINCT `telephony_conversations`.`id`) FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (62, 63) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '123' OR telephony_conversations.id = '123' OR telephony_calls.number like '%123%')))  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 62, 60, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 65, '2014-02-10 18:59:38', '555-555-1111', 20, NULL, 'sid-20', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 65, '2014-02-10 18:59:38', '333-333-1111', 21, NULL, 'sid-21', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 63, 61, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.7ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0  (0.6ms) SELECT COUNT(DISTINCT `telephony_conversations`.`id`) FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (65) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) Telephony::Conversation Load (0.6ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 1 OFFSET 0 SQL (0.8ms) SELECT `telephony_conversations`.`id` AS t0_r0, `telephony_conversations`.`state` AS t0_r1, `telephony_conversations`.`loan_id` AS t0_r2, `telephony_conversations`.`transfer_to` AS t0_r3, `telephony_conversations`.`transfer_type` AS t0_r4, `telephony_conversations`.`created_at` AS t0_r5, `telephony_conversations`.`updated_at` AS t0_r6, `telephony_conversations`.`transfer_ext` AS t0_r7, `telephony_conversations`.`transfer_id` AS t0_r8, `telephony_conversations`.`initiator_id` AS t0_r9, `telephony_conversations`.`transfer_status` AS t0_r10, `telephony_conversations`.`caller_id` AS t0_r11, `telephony_conversations`.`number` AS t0_r12, `telephony_conversations`.`conversation_type` AS t0_r13, `telephony_conversations`.`transferee_id` AS t0_r14, `telephony_conversation_events`.`id` AS t1_r0, `telephony_conversation_events`.`type` AS t1_r1, `telephony_conversation_events`.`conversation_id` AS t1_r2, `telephony_conversation_events`.`conversation_state` AS t1_r3, `telephony_conversation_events`.`call_id` AS t1_r4, `telephony_conversation_events`.`call_state` AS t1_r5, `telephony_conversation_events`.`created_at` AS t1_r6, `telephony_conversation_events`.`updated_at` AS t1_r7, `telephony_conversation_events`.`message_data` AS t1_r8, `telephony_calls`.`id` AS t2_r0, `telephony_calls`.`sid` AS t2_r1, `telephony_calls`.`created_at` AS t2_r2, `telephony_calls`.`updated_at` AS t2_r3, `telephony_calls`.`state` AS t2_r4, `telephony_calls`.`connected_at` AS t2_r5, `telephony_calls`.`terminated_at` AS t2_r6, `telephony_calls`.`conversation_id` AS t2_r7, `telephony_calls`.`participant_id` AS t2_r8, `telephony_calls`.`participant_type` AS t2_r9, `telephony_calls`.`number` AS t2_r10, `telephony_calls`.`agent_id` AS t2_r11, `telephony_playables`.`id` AS t3_r0, `telephony_playables`.`call_id` AS t3_r1, `telephony_playables`.`url` AS t3_r2, `telephony_playables`.`start_time` AS t3_r3, `telephony_playables`.`duration` AS t3_r4, `telephony_playables`.`created_at` AS t3_r5, `telephony_playables`.`updated_at` AS t3_r6, `telephony_playables`.`type` AS t3_r7, `telephony_playables`.`csr_id` AS t3_r8, `voicemails_telephony_calls`.`id` AS t4_r0, `voicemails_telephony_calls`.`call_id` AS t4_r1, `voicemails_telephony_calls`.`url` AS t4_r2, `voicemails_telephony_calls`.`start_time` AS t4_r3, `voicemails_telephony_calls`.`duration` AS t4_r4, `voicemails_telephony_calls`.`created_at` AS t4_r5, `voicemails_telephony_calls`.`updated_at` AS t4_r6, `voicemails_telephony_calls`.`type` AS t4_r7, `voicemails_telephony_calls`.`csr_id` AS t4_r8 FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (65) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 64, 62, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 19, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (32, NULL, 67, '2014-02-10 18:59:38', '562-555-5555', 22, NULL, 'sid-22', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 67, '2014-02-10 18:59:38', '562-555-5555', 23, NULL, 'sid-23', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 65, 63, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 20, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (33, NULL, 68, '2014-02-10 18:59:38', '562-555-5555', 24, NULL, 'sid-24', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 68, '2014-02-10 18:59:38', '562-555-5555', 25, NULL, 'sid-25', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 66, 64, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 21, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (34, NULL, 69, '2014-02-10 18:59:38', '562-555-5555', 26, NULL, 'sid-26', 'not_initiated', NULL, '2014-02-10 18:59:38') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 69, '2014-02-10 18:59:38', '562-555-5555', 27, NULL, 'sid-27', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.8ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '69' OR telephony_conversations.id = '69' OR telephony_calls.number like '%69%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 SQL (0.8ms) SELECT `telephony_conversations`.`id` AS t0_r0, `telephony_conversations`.`state` AS t0_r1, `telephony_conversations`.`loan_id` AS t0_r2, `telephony_conversations`.`transfer_to` AS t0_r3, `telephony_conversations`.`transfer_type` AS t0_r4, `telephony_conversations`.`created_at` AS t0_r5, `telephony_conversations`.`updated_at` AS t0_r6, `telephony_conversations`.`transfer_ext` AS t0_r7, `telephony_conversations`.`transfer_id` AS t0_r8, `telephony_conversations`.`initiator_id` AS t0_r9, `telephony_conversations`.`transfer_status` AS t0_r10, `telephony_conversations`.`caller_id` AS t0_r11, `telephony_conversations`.`number` AS t0_r12, `telephony_conversations`.`conversation_type` AS t0_r13, `telephony_conversations`.`transferee_id` AS t0_r14, `telephony_conversation_events`.`id` AS t1_r0, `telephony_conversation_events`.`type` AS t1_r1, `telephony_conversation_events`.`conversation_id` AS t1_r2, `telephony_conversation_events`.`conversation_state` AS t1_r3, `telephony_conversation_events`.`call_id` AS t1_r4, `telephony_conversation_events`.`call_state` AS t1_r5, `telephony_conversation_events`.`created_at` AS t1_r6, `telephony_conversation_events`.`updated_at` AS t1_r7, `telephony_conversation_events`.`message_data` AS t1_r8, `telephony_calls`.`id` AS t2_r0, `telephony_calls`.`sid` AS t2_r1, `telephony_calls`.`created_at` AS t2_r2, `telephony_calls`.`updated_at` AS t2_r3, `telephony_calls`.`state` AS t2_r4, `telephony_calls`.`connected_at` AS t2_r5, `telephony_calls`.`terminated_at` AS t2_r6, `telephony_calls`.`conversation_id` AS t2_r7, `telephony_calls`.`participant_id` AS t2_r8, `telephony_calls`.`participant_type` AS t2_r9, `telephony_calls`.`number` AS t2_r10, `telephony_calls`.`agent_id` AS t2_r11, `telephony_playables`.`id` AS t3_r0, `telephony_playables`.`call_id` AS t3_r1, `telephony_playables`.`url` AS t3_r2, `telephony_playables`.`start_time` AS t3_r3, `telephony_playables`.`duration` AS t3_r4, `telephony_playables`.`created_at` AS t3_r5, `telephony_playables`.`updated_at` AS t3_r6, `telephony_playables`.`type` AS t3_r7, `telephony_playables`.`csr_id` AS t3_r8, `voicemails_telephony_calls`.`id` AS t4_r0, `voicemails_telephony_calls`.`call_id` AS t4_r1, `voicemails_telephony_calls`.`url` AS t4_r2, `voicemails_telephony_calls`.`start_time` AS t4_r3, `voicemails_telephony_calls`.`duration` AS t4_r4, `voicemails_telephony_calls`.`created_at` AS t4_r5, `voicemails_telephony_calls`.`updated_at` AS t4_r6, `voicemails_telephony_calls`.`type` AS t4_r7, `voicemails_telephony_calls`.`csr_id` AS t4_r8 FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (69) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '69' OR telephony_conversations.id = '69' OR telephony_calls.number like '%69%'))) ORDER BY telephony_conversations.created_at DESC  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 67, 65, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (35, NULL, 70, '2014-02-10 18:59:38', '555-555-1111', 28, NULL, 'sid-28', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 70, '2014-02-10 18:59:38', '333-333-1111', 29, NULL, 'sid-29', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 68, 66, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 71, '2014-02-10 18:59:38', '555-555-1111', 30, NULL, 'sid-30', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 Telephony::Conversation Load (0.8ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 35)) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0  (0.8ms) SELECT COUNT(DISTINCT `telephony_conversations`.`id`) FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (70) AND (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 35)) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) Telephony::Conversation Load (0.7ms) SELECT DISTINCT `telephony_conversations`.id FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 35)) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC LIMIT 1 OFFSET 0 SQL (1.0ms) SELECT `telephony_conversations`.`id` AS t0_r0, `telephony_conversations`.`state` AS t0_r1, `telephony_conversations`.`loan_id` AS t0_r2, `telephony_conversations`.`transfer_to` AS t0_r3, `telephony_conversations`.`transfer_type` AS t0_r4, `telephony_conversations`.`created_at` AS t0_r5, `telephony_conversations`.`updated_at` AS t0_r6, `telephony_conversations`.`transfer_ext` AS t0_r7, `telephony_conversations`.`transfer_id` AS t0_r8, `telephony_conversations`.`initiator_id` AS t0_r9, `telephony_conversations`.`transfer_status` AS t0_r10, `telephony_conversations`.`caller_id` AS t0_r11, `telephony_conversations`.`number` AS t0_r12, `telephony_conversations`.`conversation_type` AS t0_r13, `telephony_conversations`.`transferee_id` AS t0_r14, `telephony_conversation_events`.`id` AS t1_r0, `telephony_conversation_events`.`type` AS t1_r1, `telephony_conversation_events`.`conversation_id` AS t1_r2, `telephony_conversation_events`.`conversation_state` AS t1_r3, `telephony_conversation_events`.`call_id` AS t1_r4, `telephony_conversation_events`.`call_state` AS t1_r5, `telephony_conversation_events`.`created_at` AS t1_r6, `telephony_conversation_events`.`updated_at` AS t1_r7, `telephony_conversation_events`.`message_data` AS t1_r8, `telephony_calls`.`id` AS t2_r0, `telephony_calls`.`sid` AS t2_r1, `telephony_calls`.`created_at` AS t2_r2, `telephony_calls`.`updated_at` AS t2_r3, `telephony_calls`.`state` AS t2_r4, `telephony_calls`.`connected_at` AS t2_r5, `telephony_calls`.`terminated_at` AS t2_r6, `telephony_calls`.`conversation_id` AS t2_r7, `telephony_calls`.`participant_id` AS t2_r8, `telephony_calls`.`participant_type` AS t2_r9, `telephony_calls`.`number` AS t2_r10, `telephony_calls`.`agent_id` AS t2_r11, `telephony_playables`.`id` AS t3_r0, `telephony_playables`.`call_id` AS t3_r1, `telephony_playables`.`url` AS t3_r2, `telephony_playables`.`start_time` AS t3_r3, `telephony_playables`.`duration` AS t3_r4, `telephony_playables`.`created_at` AS t3_r5, `telephony_playables`.`updated_at` AS t3_r6, `telephony_playables`.`type` AS t3_r7, `telephony_playables`.`csr_id` AS t3_r8, `voicemails_telephony_calls`.`id` AS t4_r0, `voicemails_telephony_calls`.`call_id` AS t4_r1, `voicemails_telephony_calls`.`url` AS t4_r2, `voicemails_telephony_calls`.`start_time` AS t4_r3, `voicemails_telephony_calls`.`duration` AS t4_r4, `voicemails_telephony_calls`.`created_at` AS t4_r5, `voicemails_telephony_calls`.`updated_at` AS t4_r6, `voicemails_telephony_calls`.`type` AS t4_r7, `voicemails_telephony_calls`.`csr_id` AS t4_r8 FROM `telephony_conversations` LEFT OUTER JOIN `telephony_conversation_events` ON `telephony_conversation_events`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` LEFT OUTER JOIN `telephony_playables` ON `telephony_playables`.`call_id` = `telephony_calls`.`id` AND `telephony_playables`.`type` IN ('Telephony::Recording') LEFT OUTER JOIN `telephony_playables` `voicemails_telephony_calls` ON `voicemails_telephony_calls`.`call_id` = `telephony_calls`.`id` AND `voicemails_telephony_calls`.`type` IN ('Telephony::Voicemail') WHERE `telephony_conversations`.`id` IN (70) AND (telephony_conversations.id in (SELECT conversation_id FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 35)) AND (telephony_conversations.id in (SELECT telephony_conversations.id FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE (telephony_conversations.loan_id = '555-555-1111' OR telephony_conversations.id = '555-555-1111' OR telephony_calls.number like '%555-555-1111%'))) ORDER BY telephony_conversations.created_at DESC  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-01 19:30:00', 69, 67, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-03 05:31:00', 70, 68, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-10 20:31:00', 71, 69, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 00:32:00', 72, 70, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.7ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `telephony_conversations` WHERE (telephony_conversations.created_at >= '2012-12-02 19:30:00') AND (telephony_conversations.created_at <= '2012-12-11 19:30:00') LIMIT 10 OFFSET 0) subquery_for_count   (0.1ms) ROLLBACK  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-01 19:30:00', 73, 71, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-03 05:31:00', 74, 72, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-10 20:31:00', 75, 73, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 00:32:00', 76, 74, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `telephony_conversations` WHERE (telephony_conversations.created_at >= '2012-12-11 00:32:00') LIMIT 10 OFFSET 0) subquery_for_count  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 77, 75, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 80, '2014-02-10 18:59:38', '562-555-5555', 31, NULL, 'sid-31', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 78, 76, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 81, '2014-02-10 18:59:38', '562-555-5555', 32, NULL, 'sid-32', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:38', 79, 77, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 82, '2014-02-10 18:59:38', '562-555-5555', 33, NULL, 'sid-33', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 1, 78, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 1, 79, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 2, 80, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 2, 81, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 2, 82, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', NULL, 83, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 02:30:00', 3, 84, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-11-10 02:30:00', 3, 85, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) AS count_all, initiator_id AS initiator_id FROM `telephony_conversations` WHERE (initiator_id IS NOT NULL) AND (created_at > '2012-11-11 02:30:00') GROUP BY initiator_id  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-01 19:30:00', 5, 86, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-03 05:31:00', 10, 87, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-10 20:31:00', 20, 88, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 00:32:00', 30, 89, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) AS count_all, initiator_id AS initiator_id FROM `telephony_conversations` WHERE (initiator_id IS NOT NULL) AND (created_at BETWEEN '2012-12-03 08:00:00' and '2012-12-11 07:59:59') GROUP BY initiator_id  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-01 19:30:00', 5, 90, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-03 05:31:00', 10, 91, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-10 20:31:00', 20, 92, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 00:32:00', 30, 93, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) AS count_all, initiator_id AS initiator_id FROM `telephony_conversations` WHERE (initiator_id IS NOT NULL) AND (created_at BETWEEN '2012-12-03 00:00:00' and '2012-12-10 00:00:00') GROUP BY initiator_id  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-01 19:30:00', 5, 94, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-03 05:31:00', 10, 95, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-09 23:50:40', 20, 96, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2012-12-11 00:32:00', 30, 97, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2012-12-11 02:30:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SELECT COUNT(*) AS count_all, initiator_id AS initiator_id FROM `telephony_conversations` WHERE (initiator_id IS NOT NULL) AND (created_at BETWEEN '2012-12-03 00:00:00' and '2012-12-10 00:00:00') GROUP BY initiator_id  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 22, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 50, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 36 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'offline', `updated_at` = '2014-02-10 18:59:38', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 36  (0.4ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 100, `updated_at` = '2014-02-10 18:59:38', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 36 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 23, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 50, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 37 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'offline', `updated_at` = '2014-02-10 18:59:38', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 37  (0.3ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 100, `updated_at` = '2014-02-10 18:59:38', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 37 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 24, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 150, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 38 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 38 LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:38', 25, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 150, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 39 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 39 LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/join_conference - Twilio::REST::RequestError - something  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/join_conference - Timeout::Error - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/complete_hold - Twilio::REST::RequestError - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Failed attempt to buy a phone number in area code '500': Exception  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('5005550006', 'outbound', '2014-02-10 18:59:38', 80, 98, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 103, '2014-02-10 18:59:38', '562-555-5555', 34, NULL, 'sid-34', 'not_initiated', NULL, '2014-02-10 18:59:38')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `sid` = 'CA80bd3c0ee925c800ea461f81012edb24', `updated_at` = '2014-02-10 18:59:38' WHERE `telephony_calls`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Twilio provider - Failed to redirect sid to http://example.com:8080/zestphone/providers/twilio/calls/call_id/dial - Twilio::REST::RequestError - something  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 29, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 31, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 32, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 33, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 34, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, '---\n- 11\n- 12\n', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 13, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 14, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT id, csr_id, csr_type, status, name, phone_ext, phone_number FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` IN (11, 12)  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, '--- []\n', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 13, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 14, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT id, csr_id, csr_type, status, name, phone_ext, phone_number FROM `telephony_agents`  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, '--- []\n', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 12, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 11, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 13, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 14, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 0 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT id, csr_id, csr_type, status, name, phone_ext, phone_number FROM `telephony_agents`   (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 35, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 35 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 36, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 36 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `name` = 'csr_name', `generate_caller_id` = 1, `phone_number` = '555-555-1234', `phone_ext` = 'csr_phone_ext', `sip_number` = '432', `call_center_name` = 'other_location', `phone_type` = 'sip', `transferable_agents` = '---\n- 1\n- 2\n', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_agents`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 61 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 123, 'A', NULL, 'csr_name', 'csr_phone_ext', '555-555-1234', 'phone', NULL, 'offline', 0, '--- []\n', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 37, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 38, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 39, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 1234, `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 65 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 40, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 1234, `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 66 LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 41, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 1234, `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 67 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 42, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 43, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 44, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 81, 99, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (70, NULL, 104, '2014-02-10 18:59:39', '562-555-5555', 35, NULL, 'sid-35', 'terminated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 70 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 70 LIMIT 1 FOR UPDATE Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 70 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1  (0.3ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 70  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 70 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 45, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 82, 100, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (71, NULL, 105, '2014-02-10 18:53:39', '562-555-5555', 36, NULL, 'sid-36', 'in_progress', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 71 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 105 LIMIT 1 FOR UPDATE Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 42 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:39', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 42 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 105 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 105 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (105) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (71) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (42, 'terminated', 105, 'initiated', '2014-02-10 18:59:39', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 71\n csr_id: 45\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:39') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 105 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 105 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_conversations`.`id` = 105 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 105 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (105) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (71) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 105, 'terminated', '2014-02-10 18:59:39', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 42 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 46, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 83, 101, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (72, NULL, 106, '2014-02-10 18:55:39', '562-555-5555', 37, NULL, 'sid-37', 'in_progress', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 72 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 43 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 47, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 84, 102, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (73, NULL, 107, '2014-02-10 18:59:39', '562-555-5555', 38, NULL, 'sid-38', 'in_progress', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 73 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 44 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 48, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 49, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 50, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 9223372036854775807, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 76 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 51, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 60, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 61, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 62, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 80 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 63, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'offline', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 81 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 64, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 82  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 82 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (60.0ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 65, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 83 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 66, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 84 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 67, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 68, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `updated_at` = '2014-02-10 18:59:39', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 85, 103, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 108, '2014-02-10 18:59:39', '222-222-2222', 39, NULL, 'sid-39', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = '2', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 45 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 86, 104, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 109, '2014-02-10 18:59:39', '555-555-5555', 40, NULL, 'sid-40', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `sid` = '1', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 46 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 87, 105, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 110, '2014-02-10 18:59:39', '222-222-2222', 41, NULL, 'sid-41', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = '1', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 47 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 88, 106, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 111, '2014-02-10 18:59:39', '562-555-5555', 42, NULL, 'sid-42', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = '1', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 48 LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 69, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 89, 107, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (87, NULL, 112, '2014-02-10 18:59:39', '562-555-5555', 43, NULL, 'sid-43', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:39', 70, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 90, 108, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (88, NULL, 113, '2014-02-10 18:59:39', '555-555-5555', 44, NULL, 'sid-44', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 91, 109, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 114, '2014-02-10 18:59:39', '562-555-5555', 45, NULL, 'sid-45', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 114, '2014-02-10 18:59:39', '562-555-5555', 46, NULL, 'sid-46', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 92, 110, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 115, '2014-02-10 18:59:39', '562-555-5555', 47, NULL, 'sid-47', 'not_initiated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 53 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 93, 111, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 116, '2014-02-10 18:59:39', '562-555-5555', 48, NULL, 'sid-48', 'terminated', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 54 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 94, 112, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 117, '2014-02-10 18:59:39', '562-555-5555', 49, NULL, 'sid-49', 'connecting', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:39', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:39' WHERE `telephony_calls`.`id` = 55 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 117 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (117) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (55, 'in_progress', 117, 'initiated', '2014-02-10 18:59:39', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 55 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:39', 95, 113, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 118, '2014-02-10 18:59:39', '562-555-5555', 50, NULL, 'sid-50', 'connecting', NULL, '2014-02-10 18:59:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:39', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 56 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 118 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (118) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (56, 'in_progress', 118, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 56 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 96, 114, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 119, '2014-02-10 18:59:40', '562-555-5555', 51, NULL, 'sid-51', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 57 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 119 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (119) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (57, 'terminated', 119, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 119 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 119 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 119 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 119 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (119) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 119, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 57 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 97, 115, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 120, '2014-02-10 18:59:40', '562-555-5555', 52, NULL, 'sid-52', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 58 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 120 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (120) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (58, 'terminated', 120, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 120 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 120 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 120 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 120 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (120) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 120, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 58 LIMIT 1  (0.2ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 98, 116, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 71, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (89, NULL, 121, '2014-02-10 18:59:40', '562-555-5555', 53, NULL, 'sid-53', 'in_progress', NULL, '2014-02-10 18:59:40') Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 89 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 121, '2014-02-10 18:59:40', '562-555-5555', 54, NULL, 'sid-54', 'in_progress', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:40', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 60 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (121) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (89) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (60, 'terminated', 121, 'in_progress', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 121 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 59 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (121) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (89) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (59, 'terminated', 121, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 89\n csr_id: 71\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 121 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 121 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 121 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (121) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (89) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 121, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 89 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'not_available', `updated_at` = '2014-02-10 18:59:40', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 89 LIMIT 1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 99, 117, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, 'one_step', NULL, '2014-02-10 18:59:40') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 122, '2014-02-10 18:59:40', '562-555-5555', 55, NULL, 'sid-55', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 61 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 122 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (122) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (61, 'terminated', 122, 'one_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 122 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 122 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 122 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 122 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (122) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 122, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 100, 118, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, 'two_step', NULL, '2014-02-10 18:59:40') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 123, '2014-02-10 18:59:40', '562-555-5555', 56, NULL, 'sid-56', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 123, '2014-02-10 18:59:40', '562-555-5555', 57, NULL, 'sid-57', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 62 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 62 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (123) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (62, 'terminated', 123, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 123 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 63 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (123) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (63, 'terminated', 123, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 123 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 123 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 123 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (123) ORDER BY id SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 123, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 101, 119, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, 'two_step', NULL, '2014-02-10 18:59:40') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 124, '2014-02-10 18:59:40', '562-555-5555', 58, NULL, 'sid-58', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 124, '2014-02-10 18:59:40', '562-555-5555', 59, NULL, 'sid-59', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 64 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 65 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (124) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (65, 'terminated', 124, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 124 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 64 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (124) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (64, 'terminated', 124, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 124 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 124 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 124 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (124) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 124, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 102, 120, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, 'two_step', NULL, '2014-02-10 18:59:40') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 125, '2014-02-10 18:59:40', '562-555-5555', 60, NULL, 'sid-60', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 125, '2014-02-10 18:59:40', '562-555-5555', 61, NULL, 'sid-61', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 72, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (90, NULL, 125, '2014-02-10 18:59:40', '562-555-5555', 62, NULL, 'sid-62', 'in_progress', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 66 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 66 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 125 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 125 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (125) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (90) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (66, 'terminated', 125, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 125 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 125 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 125 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 125 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (125) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (90) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 125, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 90\n csr_id: 72\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 90\n csr_id: 72\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 103, 121, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, 'two_step', NULL, '2014-02-10 18:59:40') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 126, '2014-02-10 18:59:40', '562-555-5555', 63, NULL, 'sid-63', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 126, '2014-02-10 18:59:40', '562-555-5555', 64, NULL, 'sid-64', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 73, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (91, NULL, 126, '2014-02-10 18:59:40', '562-555-5555', 65, NULL, 'sid-65', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 69 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 69 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (126) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (91) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (69, 'terminated', 126, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 126 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 126 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (126) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (91) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 126, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 91\n csr_id: 73\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 91\n csr_id: 73\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 70 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (126) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (91) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (70, 'terminated', 126, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 126 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 71 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (126) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (91) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (71, 'terminated', 126, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 91\n csr_id: 73\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 126 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 126 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 126 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (126) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (91) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 126, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 104, 122, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, 'two_step', NULL, '2014-02-10 18:59:40') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 127, '2014-02-10 18:59:40', '562-555-5555', 66, NULL, 'sid-66', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 127, '2014-02-10 18:59:40', '562-555-5555', 67, NULL, 'sid-67', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 74, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (92, NULL, 127, '2014-02-10 18:59:40', '562-555-5555', 68, NULL, 'sid-68', 'in_progress', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 72 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 73 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 127 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (127) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (92) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (73, 'terminated', 127, 'two_step_transferring', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 127 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 127 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 127 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 127 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (127) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (92) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 127, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 92\n csr_id: 74\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 92\n csr_id: 74\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 105, 123, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 75, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (93, NULL, 128, '2014-02-10 18:59:40', '562-555-5555', 69, NULL, 'sid-69', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 128, '2014-02-10 18:59:40', '562-555-5555', 70, NULL, 'sid-70', 'in_conference', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 76, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (94, NULL, 128, '2014-02-10 18:59:40', '562-555-5555', 71, NULL, 'sid-71', 'connecting', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 77 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (128) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (93, 94) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (77, 'terminated', 128, 'two_step_transferring', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 94\n csr_id: 76\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:40') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 128 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 128 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (128) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (93, 94) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 128, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 93\n csr_id: 75\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 94\n csr_id: 76\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 76 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (128) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (93, 94) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (76, 'terminated', 128, 'in_progress', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 128 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:40', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 75 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (128) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (93, 94) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (75, 'terminated', 128, 'in_progress', '2014-02-10 18:59:40', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 93\n csr_id: 75\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 128 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 128 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 128 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (128) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (93, 94) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 128, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 106, 124, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 107, 125, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 108, 126, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 109, 127, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 132, '2014-02-10 18:59:40', '555-555-5555', 75, NULL, 'sid-75', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 110, 128, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 133, '2014-02-10 18:59:40', '562-555-5555', 76, NULL, 'sid-76', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 78, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 111, 129, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (95, NULL, 134, '2014-02-10 18:59:40', '562-555-5555', 77, NULL, 'sid-77', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 112, 130, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 135, '2014-02-10 18:59:40', '562-555-5555', 78, NULL, 'sid-78', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 113, 131, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 136, '2014-02-10 18:59:40', '562-555-5555', 79, NULL, 'sid-79', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (82, '2014-02-10 18:59:40', NULL, 0, '2014-02-10 18:59:40', 'Telephony::Recording', '2014-02-10 18:59:40', 'recording_url')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 82 LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 82 ORDER BY `telephony_playables`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 114, 132, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 137, '2014-02-10 18:59:40', '562-555-5555', 80, NULL, 'sid-80', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (83, '2014-02-10 18:59:40', NULL, 0, '2014-02-10 18:59:40', 'Telephony::Recording', '2014-02-10 18:59:40', 'recording_url')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 83 LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 83 ORDER BY `telephony_playables`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 115, 133, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 138, '2014-02-10 18:59:40', '562-555-5555', 81, NULL, 'sid-81', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 84 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 84 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 84  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 116, 134, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 139, '2014-02-10 18:59:40', '562-555-5555', 82, NULL, 'sid-82', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 117, 135, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 140, '2014-02-10 18:59:40', '562-555-5555', 83, NULL, 'sid-83', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 118, 136, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 141, '2014-02-10 18:59:40', '562-555-5555', 84, NULL, 'sid-84', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:40', 79, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 119, 137, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (96, NULL, 142, '2014-02-10 18:59:40', '562-555-5555', 85, NULL, 'sid-85', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 120, 138, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 143, '2014-02-10 18:59:40', '562-555-5555', 86, NULL, 'sid-86', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 121, 139, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 144, '2014-02-10 18:59:40', '562-555-5555', 87, NULL, 'sid-87', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 122, 140, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 145, '2014-02-10 18:59:40', '562-555-5555', 88, NULL, 'sid-88', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 91 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 145 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (145) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (91, 'connecting', 145, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 123, 141, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 146, '2014-02-10 18:59:40', '562-555-5555', 89, NULL, 'sid-89', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 92 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 146 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (146) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (92, 'connecting', 146, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Connect Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Connect') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 124, 142, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 147, '2014-02-10 18:59:40', '562-555-5555', 90, NULL, 'sid-90', 'not_initiated', NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_calls`.`id` = 93 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (93, 'terminated', 147, 'initiated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:40') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 147 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 147 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:40' WHERE `telephony_conversations`.`id` = 147 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 147 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (147) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 147, 'terminated', '2014-02-10 18:59:40', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:40', 125, 143, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:40')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 148, '2014-02-10 18:59:41', '562-555-5555', 91, NULL, 'sid-91', 'not_initiated', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 94 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (94, 'terminated', 148, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 148 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 148 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 148 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 148 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (148) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 148, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Reject Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Reject') AND `telephony_conversation_events`.`call_id` = 94 ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 126, 144, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 149, '2014-02-10 18:59:41', '562-555-5555', 92, NULL, 'sid-92', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 95 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 149 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (149) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (95, 'terminated', 149, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 149 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 149 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 149 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 149 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (149) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 149, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 127, 145, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 150, '2014-02-10 18:59:41', '562-555-5555', 93, NULL, 'sid-93', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 96 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 150 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (150) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (96, 'terminated', 150, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 150 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 150 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 150 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 150 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (150) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 150, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::NoAnswer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::NoAnswer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 128, 146, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 151, '2014-02-10 18:59:41', '562-555-5555', 94, NULL, 'sid-94', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 97 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 151 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (151) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (97, 'terminated', 151, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Busy', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 151 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 151 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 151 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 151 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (151) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 151, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 129, 147, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 152, '2014-02-10 18:59:41', '562-555-5555', 95, NULL, 'sid-95', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 98 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 152 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (152) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (98, 'terminated', 152, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Busy', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 152 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 152 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 152 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 152 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (152) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 152, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Busy Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Busy') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 130, 148, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 153, '2014-02-10 18:59:41', '562-555-5555', 96, NULL, 'sid-96', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 99 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 153 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (153) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (99, 'terminated', 153, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::CallFail', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 153 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 153 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 153 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 153 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (153) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 153, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 131, 149, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 154, '2014-02-10 18:59:41', '562-555-5555', 97, NULL, 'sid-97', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 100 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 154 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (154) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (100, 'terminated', 154, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::CallFail', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 154 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 154 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 154 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 154 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (154) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 154, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::CallFail Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::CallFail') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 132, 150, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 155, '2014-02-10 18:59:41', '562-555-5555', 98, NULL, 'sid-98', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:41', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 101 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 155 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (155) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (101, 'in_progress', 155, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 133, 151, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 156, '2014-02-10 18:59:41', '562-555-5555', 99, NULL, 'sid-99', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:41', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 102 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 156 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (156) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (102, 'in_progress', 156, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 134, 152, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 157, '2014-02-10 18:59:41', '562-555-5555', 100, NULL, 'sid-100', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:41', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 103 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 157 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (157) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (103, 'in_progress', 157, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Answer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Answer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 135, 153, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 158, '2014-02-10 18:59:41', '562-555-5555', 101, NULL, 'sid-101', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 104 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 158 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (158) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (104, 'in_conference', 158, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 136, 154, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 159, '2014-02-10 18:59:41', '562-555-5555', 102, NULL, 'sid-102', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 105 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 159 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (159) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (105, 'in_conference', 159, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Conference Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Conference') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 137, 155, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 160, '2014-02-10 18:59:41', '562-555-5555', 103, NULL, 'sid-103', 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 106 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 160 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (160) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (106, 'in_conference', 160, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 160 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 160 ORDER BY id  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 138, 156, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 161, '2014-02-10 18:59:41', '562-555-5555', 104, NULL, 'sid-104', 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 107 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 161 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (161) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (107, 'in_conference', 161, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 161 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 161 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Conference Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Conference') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 139, 157, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 162, '2014-02-10 18:59:41', '562-555-5555', 105, NULL, 'sid-105', 'in_progress_hold', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 108 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 162 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (162) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (108, 'in_conference', 162, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 162 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 162 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 140, 158, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 163, '2014-02-10 18:59:41', '562-555-5555', 106, NULL, 'sid-106', 'in_progress_hold', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 109 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 163 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (163) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (109, 'in_conference', 163, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 163 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 163 ORDER BY id  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Conference Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Conference') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 141, 159, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 164, '2014-02-10 18:59:41', '562-555-5555', 107, NULL, 'sid-107', 'in_conference', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 110 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (110, 'in_progress', 164, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 164 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 164 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 142, 160, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 165, '2014-02-10 18:59:41', '562-555-5555', 108, NULL, 'sid-108', 'in_conference', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 111 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (111, 'in_progress', 165, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 165 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 165 ORDER BY id  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::DialAgent Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::DialAgent') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 143, 161, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 166, '2014-02-10 18:59:41', '562-555-5555', 109, NULL, 'sid-109', 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (112, 'in_progress', 166, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 166 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 166 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 144, 162, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 167, '2014-02-10 18:59:41', '562-555-5555', 110, NULL, 'sid-110', 'in_progress_hold', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 113 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (113, 'in_progress', 167, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:41') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 167 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 167 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 145, 163, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 168, '2014-02-10 18:59:41', '562-555-5555', 111, NULL, 'sid-111', 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 114 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (114, 'in_progress_hold', 168, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 168 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 168 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 146, 164, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 169, '2014-02-10 18:59:41', '562-555-5555', 112, NULL, 'sid-112', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 115 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 169 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (169) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (115, 'terminated', 169, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 147, 165, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 170, '2014-02-10 18:59:41', '562-555-5555', 113, NULL, 'sid-113', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 116 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 170 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (170) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (116, 'terminated', 170, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 148, 166, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 171, '2014-02-10 18:59:41', '562-555-5555', 114, NULL, 'sid-114', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 117 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 171 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (171) ORDER BY id SQL (0.5ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (117, 'terminated', 171, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Terminate Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 149, 167, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 172, '2014-02-10 18:59:41', '562-555-5555', 115, NULL, 'sid-115', 'connecting', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 172, '2014-02-10 18:59:41', '562-555-5555', 116, NULL, NULL, 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 118 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (172) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (118, 'terminated', 172, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 172 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 119 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (172) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (119, 'terminated', 172, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 172 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 172 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 172 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (172) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 172, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 150, 168, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 173, '2014-02-10 18:59:41', '562-555-5555', 117, NULL, 'sid-116', 'in_progress', NULL, '2014-02-10 18:59:41') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:41', 80, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:41') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (97, NULL, 173, '2014-02-10 18:59:41', '562-555-5555', 118, NULL, 'sid-117', 'not_initiated', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 121 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 173 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 173 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (173) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (97) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (121, 'terminated', 173, 'one_step_transferring', '2014-02-10 18:59:41', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 97\n csr_id: 80\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 173 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 173 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 173 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 173 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (173) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (97) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 173, 'leaving_voicemail', '2014-02-10 18:59:41', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 97\n csr_id: 80\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 97\n csr_id: 80\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailOneStepTransfer', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 173 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 151, 169, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 174, '2014-02-10 18:59:41', '562-555-5555', 119, NULL, 'sid-118', 'in_progress', NULL, '2014-02-10 18:59:41') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:41', 81, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:41') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (98, NULL, 174, '2014-02-10 18:59:41', '562-555-5555', 120, NULL, 'sid-119', 'not_initiated', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 174, '2014-02-10 18:59:41', '562-555-5555', 121, NULL, 'sid-120', 'not_initiated', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 174 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 124 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 174 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (174) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (98) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (124, 'terminated', 174, 'one_step_transferring', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 174 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 174 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 174 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:41', 152, 170, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 175, '2014-02-10 18:59:41', '562-555-5555', 122, NULL, 'sid-121', 'in_progress', NULL, '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:41', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_calls`.`id` = 125 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 175 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (175) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (125, 'terminated', 175, 'initiated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 175 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 175 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:41' WHERE `telephony_conversations`.`id` = 175 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 175 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (175) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 175, 'terminated', '2014-02-10 18:59:41', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 175 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:42', 153, 171, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 176, '2014-02-10 18:59:42', '562-555-5555', 123, NULL, 'sid-122', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 126 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 176 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (176) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (126, 'terminated', 176, 'terminated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 176 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 176 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:42', 154, 172, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 177, '2014-02-10 18:59:42', '562-555-5555', 124, NULL, 'sid-123', 'not_initiated', NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 82, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (99, NULL, 177, '2014-02-10 18:59:42', '562-555-5555', 125, NULL, 'sid-124', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 177 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 177 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (177) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (99) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 177, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 128 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 177 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 177 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (177) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (99) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (128, 'connecting', 177, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 99\n csr_id: 82\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 128 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 177 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (177) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (99) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (128, 'terminated', 177, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 99\n csr_id: 82\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 177 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 177 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 177 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 177, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Rona Exists (0.4ms) SELECT 1 AS one FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Rona') AND `telephony_conversation_events`.`conversation_id` = 177 LIMIT 1  (0.1ms) ROLLBACK  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:42', 155, 173, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 178, '2014-02-10 18:59:42', '562-555-5555', 126, NULL, 'sid-125', 'not_initiated', NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 83, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (100, NULL, 178, '2014-02-10 18:59:42', '562-555-5555', 127, NULL, 'sid-126', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 178 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (178) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (100) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 178, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 129 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (178) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (100) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (129, 'terminated', 178, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 178 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 130 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (178) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (100) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (130, 'terminated', 178, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 100\n csr_id: 83\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 178 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 178 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 178 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (178) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (100) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 178, 'terminated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Rona Exists (0.3ms) SELECT 1 AS one FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Rona') AND `telephony_conversation_events`.`conversation_id` = 178 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:42', 156, 174, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 179, '2014-02-10 18:59:42', '562-555-5555', 128, NULL, 'sid-127', 'not_initiated', NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 84, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (101, NULL, 179, '2014-02-10 18:59:42', '562-555-5555', 129, NULL, 'sid-128', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 131 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (131, 'connecting', 179, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:42', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 131 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (131, 'in_progress', 179, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 179 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 179, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 132 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (132, 'connecting', 179, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 101\n csr_id: 84\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 132 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (132, 'terminated', 179, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 101\n csr_id: 84\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 179 ORDER BY id  (0.6ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 179 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 179, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 179 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 179, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 85, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (102, NULL, 179, '2014-02-10 18:59:42', '562-555-5555', 130, NULL, 'sid-129', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 133 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101, 102) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (133, 'connecting', 179, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 102\n csr_id: 85\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 133 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (179) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (101, 102) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (133, 'terminated', 179, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 102\n csr_id: 85\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 179 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 179 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 179, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 179 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 179 ORDER BY id  (0.1ms) ROLLBACK  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:42', 157, 175, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 180, '2014-02-10 18:59:42', '562-555-5555', 131, NULL, 'sid-130', 'not_initiated', NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 86, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (103, NULL, 180, '2014-02-10 18:59:42', '562-555-5555', 132, NULL, 'sid-131', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 134 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (134, 'connecting', 180, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:42', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 134 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (134, 'in_progress', 180, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 180 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 180, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 135 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (135, 'connecting', 180, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 103\n csr_id: 86\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 135 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (135, 'terminated', 180, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 103\n csr_id: 86\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 180 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 180 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 180, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 180 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 180, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 87, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (104, NULL, 180, '2014-02-10 18:59:42', '562-555-5555', 133, NULL, 'sid-132', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 136 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103, 104) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (136, 'connecting', 180, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 104\n csr_id: 87\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 136 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (180) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (103, 104) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (136, 'terminated', 180, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 104\n csr_id: 87\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 180 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 180 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 180, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 180 LIMIT 1  (0.1ms) ROLLBACK  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:42', 158, 176, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 181, '2014-02-10 18:59:42', '562-555-5555', 134, NULL, 'sid-133', 'not_initiated', NULL, '2014-02-10 18:59:42') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 88, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (105, NULL, 181, '2014-02-10 18:59:42', '562-555-5555', 135, NULL, 'sid-134', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 137 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (137, 'connecting', 181, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:42', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 137 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (137, 'in_progress', 181, 'initiated', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 181 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 181, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 138 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (138, 'connecting', 181, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 105\n csr_id: 88\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 138 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (138, 'terminated', 181, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 105\n csr_id: 88\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 181 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 181 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 181, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 181 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 181, 'connecting', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 89, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (106, NULL, 181, '2014-02-10 18:59:42', '562-555-5555', 136, NULL, 'sid-135', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 139 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105, 106) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (139, 'connecting', 181, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 106\n csr_id: 89\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 139 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (181) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (105, 106) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (139, 'terminated', 181, 'connecting', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 106\n csr_id: 89\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 181 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 181 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 181, 'enqueued', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 181 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Rona') AND `telephony_conversation_events`.`conversation_id` = 181  (0.1ms) ROLLBACK  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:42', 159, 177, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 90, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (107, NULL, 182, '2014-02-10 18:59:42', '562-555-5555', 137, NULL, 'sid-136', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 182, '2014-02-10 18:59:42', '562-555-5555', 138, NULL, 'sid-137', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 91, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (108, NULL, 182, '2014-02-10 18:59:42', '562-555-5555', 139, NULL, 'sid-138', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 142 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 182 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (182) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (107, 108) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (142, 'terminated', 182, 'in_progress_two_step_transfer', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 108\n csr_id: 91\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 182 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 182 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 107 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 182 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 182 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (182) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (107, 108) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 182, 'in_progress', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 107\n csr_id: 90\n', 'Telephony::Events::LeaveTwoStepTransfer', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 182 LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:42', 160, 178, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 92, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (109, NULL, 183, '2014-02-10 18:59:42', '562-555-5555', 140, NULL, 'sid-139', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 183, '2014-02-10 18:59:42', '562-555-5555', 141, NULL, 'sid-140', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 93, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (110, NULL, 183, '2014-02-10 18:59:42', '562-555-5555', 142, NULL, 'sid-141', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 144 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 183 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (183) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (109, 110) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (144, 'terminated', 183, 'in_progress_two_step_transfer', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 183 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 183 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 109 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'agents_only', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 183 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 183 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (183) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (109, 110) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 183, 'agents_only', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 109\n csr_id: 92\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 110\n csr_id: 93\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CustomerLeftTwoStepTransfer', '2014-02-10 18:59:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 183 LIMIT 1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:42', 161, 179, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 94, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (111, NULL, 184, '2014-02-10 18:59:42', '562-555-5555', 143, NULL, 'sid-142', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 184, '2014-02-10 18:59:42', '562-555-5555', 144, NULL, 'sid-143', 'not_initiated', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:42', 95, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (112, NULL, 184, '2014-02-10 18:59:42', '562-555-5555', 145, NULL, 'sid-144', 'in_progress', NULL, '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'initiating_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 184 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 184, 'initiating_two_step_transfer_hold', '2014-02-10 18:59:42', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 184 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 184 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (184) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (111, 112) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 184, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 111\n csr_id: 94\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 112\n csr_id: 95\n :data:\n :owner: false\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:42', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_calls`.`id` = 148 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 184 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (184) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (111, 112) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (148, 'terminated', 184, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 112\n csr_id: 95\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:42') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 184 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 184 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 111 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:42' WHERE `telephony_conversations`.`id` = 184 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 184 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (184) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (111, 112) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 184, 'in_progress_hold', '2014-02-10 18:59:42', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 111\n csr_id: 94\n', 'Telephony::Events::LeaveTwoStepTransfer', '2014-02-10 18:59:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 184 LIMIT 1  (0.1ms) ROLLBACK  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 162, 180, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 96, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (113, NULL, 185, '2014-02-10 18:59:43', '562-555-5555', 146, NULL, 'sid-145', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 185, '2014-02-10 18:59:43', '562-555-5555', 147, NULL, 'sid-146', 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 97, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (114, NULL, 185, '2014-02-10 18:59:43', '562-555-5555', 148, NULL, 'sid-147', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 185 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 185, 'initiating_two_step_transfer_hold', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:43')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 185 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 185 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (185) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (113, 114) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 185, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 113\n csr_id: 96\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 114\n csr_id: 97\n :data:\n :owner: false\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:43', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 150 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 185 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (185) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (113, 114) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (150, 'terminated', 185, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 185 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 185 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 113 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'agents_only', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 185 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 185 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (185) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (113, 114) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 185, 'agents_only', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 113\n csr_id: 96\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 114\n csr_id: 97\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CustomerLeftTwoStepTransfer', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 185 LIMIT 1  (0.1ms) ROLLBACK  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 98, 'A', 0, NULL, NULL, '222-222-2222', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 98 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:43', 98, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (115, NULL, 186, '2014-02-10 18:59:43', '222-222-2222', 98, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 186, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 186 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 186 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (186) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (115) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 186, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 186 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 152 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 186 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 186 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (186) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (115) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (152, 'connecting', 186, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 115\n csr_id: 98\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 186 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 115 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 186 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 99, 'A', 0, NULL, NULL, '222-222-2222', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 99 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:43', 99, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (116, NULL, 187, '2014-02-10 18:59:43', '222-222-2222', 99, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 187, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 187 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 187 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (187) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (116) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 187, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 187 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 154 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 187 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 187 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (187) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (116) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (154, 'connecting', 187, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 116\n csr_id: 99\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 187 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 116 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 187 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 187 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 116 LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 100, 'A', 0, NULL, NULL, '222-222-2222', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 100 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:43', 100, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (117, NULL, 188, '2014-02-10 18:59:43', '222-222-2222', 100, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 188, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 188 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 188 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (188) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (117) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 188, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 188 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 156 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 188 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 188 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (188) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (117) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (156, 'connecting', 188, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 117\n csr_id: 100\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 188 ORDER BY id LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 117 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 188 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 156  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 188 ORDER BY id DESC LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 101, 'A', 0, NULL, NULL, '222-222-2222', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 101 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:43', 101, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (118, NULL, 189, '2014-02-10 18:59:43', '222-222-2222', 101, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 189, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 189 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 189 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (189) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (118) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 189, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 189 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 158 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 189 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 189 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (189) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (118) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (158, 'connecting', 189, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 118\n csr_id: 101\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 189 ORDER BY id LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 118 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 189 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 102, 'A', 0, NULL, NULL, '222-222-2222', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 102 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:43', 102, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (119, NULL, 190, '2014-02-10 18:59:43', '222-222-2222', 102, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 190, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 190 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 190 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (190) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (119) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 190, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 190 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 160 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 190 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 190 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (190) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (119) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (160, 'connecting', 190, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 119\n csr_id: 102\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 190 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 119 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 190 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 190 ORDER BY id LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 103, 'A', 1, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 103 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('111-111-1111', 'outbound', '2014-02-10 18:59:43', 103, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (120, NULL, 191, '2014-02-10 18:59:43', '123-123-1233', 103, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 191, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 191 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 191 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (191) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (120) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 191, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 191 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 162 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 191 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 191 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (191) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (120) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (162, 'connecting', 191, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 120\n csr_id: 103\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 191 ORDER BY id LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 120 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 191 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 162  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 104, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 104 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('18888888888', 'outbound', '2014-02-10 18:59:43', 104, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (121, NULL, 192, '2014-02-10 18:59:43', '123-123-1233', 104, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 192, '2014-02-10 18:59:43', '111-111-1111', 2, 'borrower', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 192 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 192 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (192) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (121) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 192, 'connecting', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 192 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 164 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 192 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 192 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (192) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (121) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (164, 'connecting', 192, 'connecting', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 121\n csr_id: 104\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 192 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 121 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 192 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `sid` = 'sid', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 163, 181, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 164, 182, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 165, 183, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 193 ORDER BY id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 193, '2014-02-10 18:59:43', '562-555-5555', 149, NULL, 'sid-148', 'in_conference', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 194, '2014-02-10 18:59:43', '562-555-5555', 150, NULL, 'sid-149', 'in_conference', NULL, '2014-02-10 18:59:43') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 195, '2014-02-10 18:59:43', '562-555-5555', 151, NULL, 'sid-150', 'in_conference', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:43', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 167 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 194 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (194) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (167, 'terminated', 194, 'initiated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 194 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 194 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 194 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 194 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (194) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 194, 'terminated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:43', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 168 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 195 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (195) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (168, 'terminated', 195, 'initiated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 195 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 195 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 195 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 195 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (195) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 195, 'terminated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 166, 184, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 167, 185, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 168, 186, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 196 ORDER BY id  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 196, '2014-02-10 18:59:43', '562-555-5555', 152, NULL, 'sid-151', 'in_conference', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 197, '2014-02-10 18:59:43', '562-555-5555', 153, NULL, 'sid-152', 'in_conference', NULL, '2014-02-10 18:59:43') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 198, '2014-02-10 18:59:43', '562-555-5555', 154, NULL, 'sid-153', 'in_conference', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:43', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 170 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 197 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (197) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (170, 'terminated', 197, 'initiated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 197 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 197 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 197 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 197 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (197) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 197, 'terminated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:43', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 171 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 198 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (198) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (171, 'terminated', 198, 'initiated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 198 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 198 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 198 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 198 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (198) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 198, 'terminated', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 169, 187, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 105, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (122, NULL, 199, '2014-02-10 18:59:43', '562-555-5555', 155, NULL, 'sid-154', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 199, '2014-02-10 18:59:43', '562-555-5555', 156, NULL, 'sid-155', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 999, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 999 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 123 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (123, NULL, 199, '2014-02-10 18:59:43', '123-123-1233', 999, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 199 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 199 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (199) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (122, 123) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 199, 'one_step_transferring', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 122\n csr_id: 105\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 123\n csr_id: 999\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:43')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 174 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 199 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (174, 'connecting', 199, 'one_step_transferring', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43') Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 199 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 122 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (173, 'in_progress', 199, 'one_step_transferring', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 199 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 199 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 199 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 170, 188, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 106, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (124, NULL, 200, '2014-02-10 18:59:43', '562-555-5555', 157, NULL, 'sid-156', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 200, '2014-02-10 18:59:43', '562-555-5555', 158, NULL, 'sid-157', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 999, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 999 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 125 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (125, NULL, 200, '2014-02-10 18:59:43', '123-123-1233', 999, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.5ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 200 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 200 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (200) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (124, 125) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 200, 'one_step_transferring', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 124\n csr_id: 106\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 125\n csr_id: 999\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:43')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 177 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 200 LIMIT 1 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (177, 'connecting', 200, 'one_step_transferring', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:43') Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 200 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 124 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (176, 'in_progress', 200, 'one_step_transferring', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 200 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 200 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 200 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 200  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 171, 189, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 172, 190, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 107, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (126, NULL, 202, '2014-02-10 18:59:43', '562-555-5555', 159, NULL, 'sid-158', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 202, '2014-02-10 18:59:43', '562-555-5555', 160, NULL, 'sid-159', 'in_progress', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 108, 'A', 0, NULL, NULL, '111-111-1111', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 108 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 127 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (127, NULL, 202, '2014-02-10 18:59:43', '111-111-1111', 108, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 202 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 202 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (202) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (126, 127) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 202, 'leaving_voicemail', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 126\n csr_id: 107\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:43')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 180 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (180, 'terminated', 202, 'leaving_voicemail', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 202 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 202 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 202 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 126 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (179, 'in_progress', 202, 'leaving_voicemail', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 202 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 202 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 173, 191, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 203, '2014-02-10 18:59:43', '562-555-5555', 161, NULL, 'sid-160', 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 203, '2014-02-10 18:59:43', '562-555-5555', 162, NULL, 'sid-161', 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 109, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 109 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 128 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (128, NULL, 203, '2014-02-10 18:59:43', '123-123-1233', 109, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_conversations`.`id` = 203 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 203 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (203) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (128) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 203, 'leaving_voicemail', '2014-02-10 18:59:43', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 128\n csr_id: 109\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:43')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:43' WHERE `telephony_calls`.`id` = 183 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (183, 'terminated', 203, 'leaving_voicemail', '2014-02-10 18:59:43', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:43') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 203 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 203 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 203 ORDER BY id Failed to one-step transfer: Cannot transition state via :dial_agent from :not_initiated (Reason(s): State cannot transition via "dial agent")  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:43', 174, 192, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 204, '2014-02-10 18:59:43', '562-555-5555', 163, NULL, 'sid-162', 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 204, '2014-02-10 18:59:43', '562-555-5555', 164, NULL, 'sid-163', 'not_initiated', NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:43', 110, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 129 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (129, NULL, 204, '2014-02-10 18:59:44', '123-123-1233', 110, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 204 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 204 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (204) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (129) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 204, 'leaving_voicemail', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 129\n csr_id: 110\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:44')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 186 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (186, 'terminated', 204, 'leaving_voicemail', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 204 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 204 ORDER BY id Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 204 ORDER BY id Failed to one-step transfer: Cannot transition state via :dial_agent from :not_initiated (Reason(s): State cannot transition via "dial agent")  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 175, 193, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 111, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (130, NULL, 205, '2014-02-10 18:59:44', '562-555-5555', 165, NULL, 'sid-164', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 205, '2014-02-10 18:59:44', '562-555-5555', 166, NULL, 'sid-165', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 112, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 131 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (131, NULL, 205, '2014-02-10 18:59:44', '123-123-1233', 112, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 205 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (205) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (130, 131) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 205, 'leaving_voicemail', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 130\n csr_id: 111\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:44')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 189 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (189, 'terminated', 205, 'leaving_voicemail', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 205 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 205 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 130 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (188, 'in_progress', 205, 'leaving_voicemail', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 205 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 205 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 176, 194, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 113, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (132, NULL, 206, '2014-02-10 18:59:44', '562-555-5555', 167, NULL, 'sid-166', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 206, '2014-02-10 18:59:44', '562-555-5555', 168, NULL, 'sid-167', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 114, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 133 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (133, NULL, 206, '2014-02-10 18:59:44', '123-123-1233', 114, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 206 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 206 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (206) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (132, 133) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 206, 'leaving_voicemail', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 132\n csr_id: 113\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:44')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 192 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (192, 'terminated', 206, 'leaving_voicemail', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 206 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 206 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 206 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 132 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 206 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (191, 'in_progress', 206, 'leaving_voicemail', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 206 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 206 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 206  (0.2ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 177, 195, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 115, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (134, NULL, 207, '2014-02-10 18:59:44', '562-555-5555', 169, NULL, 'sid-168', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 207, '2014-02-10 18:59:44', '562-555-5555', 170, NULL, 'sid-169', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 116, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 207 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 134 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 207 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 135 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (135, NULL, 207, '2014-02-10 18:59:44', '123-123-1233', 116, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 207 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 207 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (207) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (134, 135) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 207, 'two_step_transferring', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 134\n csr_id: 115\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 135\n csr_id: 116\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 207 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `sid` = '1', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 195  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 195 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (195, 'connecting', 207, 'two_step_transferring', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 207 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 207  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 178, 196, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 117, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (136, NULL, 208, '2014-02-10 18:59:44', '562-555-5555', 171, NULL, 'sid-170', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 208, '2014-02-10 18:59:44', '562-555-5555', 172, NULL, 'sid-171', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 118, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 208 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 136 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 208 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 137 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (137, NULL, 208, '2014-02-10 18:59:44', '123-123-1233', 118, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 208 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 208 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (208) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (136, 137) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 208, 'two_step_transferring', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 136\n csr_id: 117\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 137\n csr_id: 118\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 208 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `sid` = '1', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 198  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 198 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (198, 'connecting', 208, 'two_step_transferring', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 208 LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 179, 197, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 209, '2014-02-10 18:59:44', '562-555-5555', 173, NULL, 'sid-172', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 209, '2014-02-10 18:59:44', '562-555-5555', 174, NULL, 'sid-173', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 119, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 119 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 138 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 180, 198, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 210, '2014-02-10 18:59:44', '562-555-5555', 175, NULL, 'sid-174', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 210, '2014-02-10 18:59:44', '562-555-5555', 176, NULL, 'sid-175', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 120, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 139 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 181, 199, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 121, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (140, NULL, 211, '2014-02-10 18:59:44', '562-555-5555', 177, NULL, 'sid-176', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 211, '2014-02-10 18:59:44', '562-555-5555', 178, NULL, 'sid-177', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 122, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 122 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 141 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 182, 200, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (142, NULL, 212, '2014-02-10 18:59:44', '562-555-5555', 179, NULL, 'sid-178', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 212, '2014-02-10 18:59:44', '562-555-5555', 180, NULL, 'sid-179', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 124, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 124 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 143 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 183, 201, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 213, '2014-02-10 18:59:44', '562-555-5555', 181, NULL, 'sid-180', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 213, '2014-02-10 18:59:44', '562-555-5555', 182, NULL, 'sid-181', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 125, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 184, 202, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 214, '2014-02-10 18:59:44', '562-555-5555', 183, NULL, 'sid-182', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 214, '2014-02-10 18:59:44', '562-555-5555', 184, NULL, 'sid-183', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 126, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 185, 203, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 215 ORDER BY id  (0.1ms) ROLLBACK  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:44', NULL, NULL, 'number', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) ROLLBACK  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:44', NULL, NULL, 'number', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 127, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 186, 204, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (146, NULL, 218, '2014-02-10 18:59:44', '562-555-5555', 185, NULL, 'sid-184', 'not_initiated', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 218 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 187, 205, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 219 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 188, 206, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 128, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (147, NULL, 220, '2014-02-10 18:59:44', '562-555-5555', 186, NULL, 'sid-185', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 220, '2014-02-10 18:59:44', '562-555-5555', 187, NULL, 'sid-186', 'in_progress_hold', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 212 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 220 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (220) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (147) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (212, 'in_conference', 220, 'initiating_hold', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 147\n csr_id: 128\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 220 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 220 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 147 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 220 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 220 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (220) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (147) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 220, 'in_progress_hold', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 147\n csr_id: 128\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:44')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 220 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 189, 207, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 129, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (148, NULL, 221, '2014-02-10 18:59:44', '562-555-5555', 188, NULL, 'sid-187', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 221, '2014-02-10 18:59:44', '562-555-5555', 189, NULL, 'sid-188', 'in_progress_hold', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 221 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 148 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 221 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 190, 208, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 130, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (149, NULL, 222, '2014-02-10 18:59:44', '562-555-5555', 190, NULL, 'sid-189', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 222, '2014-02-10 18:59:44', '562-555-5555', 191, NULL, 'sid-190', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 131, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (150, NULL, 222, '2014-02-10 18:59:44', '562-555-5555', 192, NULL, 'sid-191', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 217 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (217, 'in_progress_hold', 222, 'initiating_hold', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 222 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 222 ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 149 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 150 LIMIT 1  (0.5ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 222 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 222 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (222) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (149, 150) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 222, 'in_progress_hold', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 149\n csr_id: 130\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 150\n csr_id: 131\n :data:\n :owner: false\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 222 LIMIT 1  (0.1ms) ROLLBACK  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 191, 209, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 132, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (151, NULL, 223, '2014-02-10 18:59:44', '562-555-5555', 193, NULL, 'sid-192', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 223, '2014-02-10 18:59:44', '562-555-5555', 194, NULL, 'sid-193', 'in_progress', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 133, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (152, NULL, 223, '2014-02-10 18:59:44', '562-555-5555', 195, NULL, 'sid-194', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 223 ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 151 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 152 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 223 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 192, 210, NULL, 'initiating_resume', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 134, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (153, NULL, 224, '2014-02-10 18:59:44', '562-555-5555', 196, NULL, 'sid-195', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 224, '2014-02-10 18:59:44', '562-555-5555', 197, NULL, 'sid-196', 'in_progress_hold', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_calls`.`id` = 223 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 224 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (224) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (153) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (223, 'in_conference', 224, 'initiating_resume', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:44') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 224 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 224 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 153 LIMIT 1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 224 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 224 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (224) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (153) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 224, 'in_progress', '2014-02-10 18:59:44', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 153\n csr_id: 134\n', 'Telephony::Events::CompleteResume', '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 224 LIMIT 1  (0.1ms) ROLLBACK  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 193, 211, NULL, 'initiating_resume', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 135, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (154, NULL, 225, '2014-02-10 18:59:44', '562-555-5555', 198, NULL, 'sid-197', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 225, '2014-02-10 18:59:44', '562-555-5555', 199, NULL, 'sid-198', 'in_progress_hold', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 225 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 154 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 225 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 194, 212, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 195, 213, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 136, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (155, NULL, 227, '2014-02-10 18:59:44', '562-555-5555', 200, NULL, 'sid-199', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 227, '2014-02-10 18:59:44', '562-555-5555', 201, NULL, 'sid-200', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 227 ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 155 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'initiating_hold', `updated_at` = '2014-02-10 18:59:44' WHERE `telephony_conversations`.`id` = 227 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 227, 'initiating_hold', '2014-02-10 18:59:44', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:44', 196, 214, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 137, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (156, NULL, 228, '2014-02-10 18:59:44', '562-555-5555', 202, NULL, 'sid-201', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 228, '2014-02-10 18:59:44', '562-555-5555', 203, NULL, 'sid-202', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:44', 138, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (157, NULL, 228, '2014-02-10 18:59:44', '562-555-5555', 204, NULL, 'sid-203', 'in_conference', NULL, '2014-02-10 18:59:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 228 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 156 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 157 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 228 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 228, 'initiating_two_step_transfer_hold', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 197, 215, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 229, '2014-02-10 18:59:45', '562-555-5555', 205, NULL, 'sid-204', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 139, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (158, NULL, 229, '2014-02-10 18:59:45', '562-555-5555', 206, NULL, 'sid-205', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 229 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 158 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'initiating_hold', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 229 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 229, 'initiating_hold', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 229 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 198, 216, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 230, '2014-02-10 18:59:45', '562-555-5555', 207, NULL, 'sid-206', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 140, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (159, NULL, 230, '2014-02-10 18:59:45', '562-555-5555', 208, NULL, 'sid-207', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 230 ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 159 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_hold', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 230 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 230, 'initiating_hold', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 199, 217, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 141, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (160, NULL, 231, '2014-02-10 18:59:45', '562-555-5555', 209, NULL, 'sid-208', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 231, '2014-02-10 18:59:45', '562-555-5555', 210, NULL, 'sid-209', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 231 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 160 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_hold', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 231 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 231, 'initiating_hold', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 200, 218, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 201, 219, NULL, 'in_progress_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 142, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (161, NULL, 233, '2014-02-10 18:59:45', '562-555-5555', 211, NULL, 'sid-210', 'in_conference', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 233, '2014-02-10 18:59:45', '562-555-5555', 212, NULL, 'sid-211', 'in_progress_hold', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 233 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 161 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_resume', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 233 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 233, 'initiating_resume', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::InitiateResume', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 202, 220, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 143, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (162, NULL, 234, '2014-02-10 18:59:45', '562-555-5555', 213, NULL, 'sid-212', 'terminated', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 234, '2014-02-10 18:59:45', '562-555-5555', 214, NULL, 'sid-213', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 144, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (163, NULL, 234, '2014-02-10 18:59:45', '562-555-5555', 215, NULL, 'sid-214', 'in_progress', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 234 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 163 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 151, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 208, 226, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (164, NULL, 235, '2014-02-10 18:59:45', '562-555-5555', 226, NULL, 'sid-225', 'not_initiated', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:45', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_calls`.`id` = 242 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 235 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (235) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (164) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (242, 'terminated', 235, 'initiated', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 164\n csr_id: 151\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:45') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 235 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 235 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 235 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 235 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (235) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (164) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 235, 'terminated', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 235 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 164 LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 152, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 209, 227, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (165, NULL, 236, '2014-02-10 18:59:45', '562-555-5555', 227, NULL, 'sid-226', 'not_initiated', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_calls`.`id` = 243 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 236 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (236) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (165) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (243, 'connecting', 236, 'initiated', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 165\n csr_id: 152\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 236 ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 165 LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 210, 228, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 211, 229, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 238 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 238 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (238) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 238, 'connecting', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 212, 230, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 239 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 239 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (239) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 239, 'connecting', '2014-02-10 18:59:45', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Connect Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Connect') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 213, 231, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 240 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 240 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (240) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 240, 'in_progress', '2014-02-10 18:59:45', '---\n- :agent: \n', 'Telephony::Events::Start', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 214, 232, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 241 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 241 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (241) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 241, 'in_progress', '2014-02-10 18:59:45', '---\n- :agent: \n', 'Telephony::Events::Start', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Start Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Start') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 153, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 154, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 215, 233, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (166, NULL, 242, '2014-02-10 18:59:45', '562-555-5555', 228, NULL, 'sid-227', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 242, '2014-02-10 18:59:45', '562-555-5555', 229, NULL, 'sid-228', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (167, NULL, 242, '2014-02-10 18:59:45', '562-555-5555', 230, NULL, 'sid-229', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 242 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 242 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (242) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (166, 167) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 242, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 166\n csr_id: 153\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 167\n csr_id: 154\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 155, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 156, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 216, 234, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (168, NULL, 243, '2014-02-10 18:59:45', '562-555-5555', 231, NULL, 'sid-230', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 243, '2014-02-10 18:59:45', '562-555-5555', 232, NULL, 'sid-231', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (169, NULL, 243, '2014-02-10 18:59:45', '562-555-5555', 233, NULL, 'sid-232', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 243 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 243 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (243) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (168, 169) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 243, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 168\n csr_id: 155\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 169\n csr_id: 156\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::InitiateOneStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::InitiateOneStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 157, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 158, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 217, 235, NULL, 'in_progress_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (170, NULL, 244, '2014-02-10 18:59:45', '562-555-5555', 234, NULL, 'sid-233', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 244, '2014-02-10 18:59:45', '562-555-5555', 235, NULL, 'sid-234', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (171, NULL, 244, '2014-02-10 18:59:45', '562-555-5555', 236, NULL, 'sid-235', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 244 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 244 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (244) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (170, 171) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 244, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 170\n csr_id: 157\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 171\n csr_id: 158\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 159, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 160, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 218, 236, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (172, NULL, 245, '2014-02-10 18:59:45', '562-555-5555', 237, NULL, 'sid-236', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 245, '2014-02-10 18:59:45', '562-555-5555', 238, NULL, 'sid-237', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (173, NULL, 245, '2014-02-10 18:59:45', '562-555-5555', 239, NULL, 'sid-238', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 245 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 245 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (245) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (172, 173) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 245, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 172\n csr_id: 159\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 173\n csr_id: 160\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 245 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 245 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (245) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (172, 173) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 245, 'in_progress', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 172\n csr_id: 159\n', 'Telephony::Events::CompleteOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 161, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 162, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 219, 237, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (174, NULL, 246, '2014-02-10 18:59:45', '562-555-5555', 240, NULL, 'sid-239', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 246, '2014-02-10 18:59:45', '562-555-5555', 241, NULL, 'sid-240', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (175, NULL, 246, '2014-02-10 18:59:45', '562-555-5555', 242, NULL, 'sid-241', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 246 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 246 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (246) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (174, 175) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 246, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 174\n csr_id: 161\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 175\n csr_id: 162\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (7.0ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 246 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 246 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (246) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (174, 175) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 246, 'in_progress', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 174\n csr_id: 161\n', 'Telephony::Events::CompleteOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::CompleteOneStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::CompleteOneStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (15.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 163, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 164, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 220, 238, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (176, NULL, 247, '2014-02-10 18:59:45', '562-555-5555', 243, NULL, 'sid-242', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 247, '2014-02-10 18:59:45', '562-555-5555', 244, NULL, 'sid-243', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (177, NULL, 247, '2014-02-10 18:59:45', '562-555-5555', 245, NULL, 'sid-244', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 247 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 247 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (247) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (176, 177) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 247, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 176\n csr_id: 163\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 177\n csr_id: 164\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:45', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_calls`.`id` = 259 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 247 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 247 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (247) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (176, 177) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (259, 'terminated', 247, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 176\n csr_id: 163\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:45') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 247 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 247 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 247 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 247 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (247) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (176, 177) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 247, 'leaving_voicemail', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 176\n csr_id: 163\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 177\n csr_id: 164\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 165, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 166, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 221, 239, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (178, NULL, 248, '2014-02-10 18:59:45', '562-555-5555', 246, NULL, 'sid-245', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 248, '2014-02-10 18:59:45', '562-555-5555', 247, NULL, 'sid-246', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (179, NULL, 248, '2014-02-10 18:59:45', '562-555-5555', 248, NULL, 'sid-247', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 248 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 248 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (248) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (178, 179) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 248, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 178\n csr_id: 165\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 179\n csr_id: 166\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:45', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_calls`.`id` = 262 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 248 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 248 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (248) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (178, 179) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (262, 'terminated', 248, 'one_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 178\n csr_id: 165\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:45') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 248 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 248 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 248 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 248 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (248) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (178, 179) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 248, 'leaving_voicemail', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 178\n csr_id: 165\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 179\n csr_id: 166\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailOneStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::FailOneStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::FailOneStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 167, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:45', 168, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:45', 222, 240, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (180, NULL, 249, '2014-02-10 18:59:45', '562-555-5555', 249, NULL, 'sid-248', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 249, '2014-02-10 18:59:45', '562-555-5555', 250, NULL, 'sid-249', 'in_progress', NULL, '2014-02-10 18:59:45') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (181, NULL, 249, '2014-02-10 18:59:45', '562-555-5555', 251, NULL, 'sid-250', 'connecting', NULL, '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:45' WHERE `telephony_conversations`.`id` = 249 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 249 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (249) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (180, 181) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 249, 'two_step_transferring', '2014-02-10 18:59:45', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 180\n csr_id: 167\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 181\n csr_id: 168\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 169, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 170, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 223, 241, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (182, NULL, 250, '2014-02-10 18:59:46', '562-555-5555', 252, NULL, 'sid-251', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 250, '2014-02-10 18:59:46', '562-555-5555', 253, NULL, 'sid-252', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (183, NULL, 250, '2014-02-10 18:59:46', '562-555-5555', 254, NULL, 'sid-253', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 250 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 250 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (250) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (182, 183) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 250, 'two_step_transferring', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 182\n csr_id: 169\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 183\n csr_id: 170\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::InitiateTwoStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::InitiateTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 171, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 172, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 224, 242, NULL, 'in_progress_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (184, NULL, 251, '2014-02-10 18:59:46', '562-555-5555', 255, NULL, 'sid-254', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 251, '2014-02-10 18:59:46', '562-555-5555', 256, NULL, 'sid-255', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.7ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (185, NULL, 251, '2014-02-10 18:59:46', '562-555-5555', 257, NULL, 'sid-256', 'connecting', NULL, '2014-02-10 18:59:46')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 251 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 251 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (251) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (184, 185) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 251, 'two_step_transferring_hold', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 184\n csr_id: 171\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 185\n csr_id: 172\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 173, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 174, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 225, 243, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (186, NULL, 252, '2014-02-10 18:59:46', '562-555-5555', 258, NULL, 'sid-257', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 252, '2014-02-10 18:59:46', '562-555-5555', 259, NULL, 'sid-258', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (187, NULL, 252, '2014-02-10 18:59:46', '562-555-5555', 260, NULL, 'sid-259', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 252 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 252 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (252) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (186, 187) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 252, 'two_step_transferring', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 186\n csr_id: 173\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 187\n csr_id: 174\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 252 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 252 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (252) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (186, 187) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 252, 'in_progress_two_step_transfer', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 186\n csr_id: 173\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 187\n csr_id: 174\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CompleteTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 175, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 176, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 226, 244, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (188, NULL, 253, '2014-02-10 18:59:46', '562-555-5555', 261, NULL, 'sid-260', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 253, '2014-02-10 18:59:46', '562-555-5555', 262, NULL, 'sid-261', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (189, NULL, 253, '2014-02-10 18:59:46', '562-555-5555', 263, NULL, 'sid-262', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 253 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 253 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (253) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (188, 189) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 253, 'two_step_transferring', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 188\n csr_id: 175\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 189\n csr_id: 176\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 253 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 253 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (253) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (188, 189) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 253, 'in_progress_two_step_transfer', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 188\n csr_id: 175\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 189\n csr_id: 176\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CompleteTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::CompleteTwoStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::CompleteTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 177, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 178, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 227, 245, NULL, 'two_step_transferring_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (190, NULL, 254, '2014-02-10 18:59:46', '562-555-5555', 264, NULL, 'sid-263', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 254, '2014-02-10 18:59:46', '562-555-5555', 265, NULL, 'sid-264', 'in_progress_hold', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (191, NULL, 254, '2014-02-10 18:59:46', '562-555-5555', 266, NULL, 'sid-265', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 254 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 254 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (254) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (190, 191) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 254, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 190\n csr_id: 177\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 191\n csr_id: 178\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CompleteTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 179, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 180, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 228, 246, NULL, 'two_step_transferring_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (192, NULL, 255, '2014-02-10 18:59:46', '562-555-5555', 267, NULL, 'sid-266', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 255, '2014-02-10 18:59:46', '562-555-5555', 268, NULL, 'sid-267', 'in_progress_hold', NULL, '2014-02-10 18:59:46') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (193, NULL, 255, '2014-02-10 18:59:46', '562-555-5555', 269, NULL, 'sid-268', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 255 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 255 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (255) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (192, 193) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 255, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 192\n csr_id: 179\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 193\n csr_id: 180\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CompleteTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::CompleteTwoStepTransfer Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::CompleteTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 181, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 182, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 229, 247, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (194, NULL, 256, '2014-02-10 18:59:46', '562-555-5555', 270, NULL, 'sid-269', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 256, '2014-02-10 18:59:46', '562-555-5555', 271, NULL, 'sid-270', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (195, NULL, 256, '2014-02-10 18:59:46', '562-555-5555', 272, NULL, 'sid-271', 'in_progress', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'agents_only', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 256 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 256 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (256) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (194, 195) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 256, 'agents_only', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 194\n csr_id: 181\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 195\n csr_id: 182\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CustomerLeftTwoStepTransfer', '2014-02-10 18:59:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 183, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 184, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 230, 248, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (196, NULL, 257, '2014-02-10 18:59:46', '562-555-5555', 273, NULL, 'sid-272', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 257, '2014-02-10 18:59:46', '562-555-5555', 274, NULL, 'sid-273', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (197, NULL, 257, '2014-02-10 18:59:46', '562-555-5555', 275, NULL, 'sid-274', 'in_progress', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'agents_only', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 257 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 257 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (257) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (196, 197) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 257, 'agents_only', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 196\n csr_id: 183\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 197\n csr_id: 184\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CustomerLeftTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::CustomerLeftTwoStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::CustomerLeftTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 185, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 186, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 231, 249, NULL, 'in_progress_two_step_transfer_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (198, NULL, 258, '2014-02-10 18:59:46', '562-555-5555', 276, NULL, 'sid-275', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 258, '2014-02-10 18:59:46', '562-555-5555', 277, NULL, 'sid-276', 'in_progress_hold', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (199, NULL, 258, '2014-02-10 18:59:46', '562-555-5555', 278, NULL, 'sid-277', 'in_progress', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'agents_only', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 258 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 258 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (258) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (198, 199) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 258, 'agents_only', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 198\n csr_id: 185\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 199\n csr_id: 186\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::CustomerLeftTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 232, 250, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 259 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 259 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (259) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 259, 'in_progress', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::LeaveTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 233, 251, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 260 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 260 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (260) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 260, 'in_progress', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::LeaveTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::LeaveTwoStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::LeaveTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 234, 252, NULL, 'in_progress_two_step_transfer_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 261 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 261 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (261) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 261, 'in_progress_hold', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::LeaveTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 187, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 188, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 235, 253, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (200, NULL, 262, '2014-02-10 18:59:46', '562-555-5555', 279, NULL, 'sid-278', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 262, '2014-02-10 18:59:46', '562-555-5555', 280, NULL, 'sid-279', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (201, NULL, 262, '2014-02-10 18:59:46', '562-555-5555', 281, NULL, 'sid-280', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 262 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 262 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (262) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (200, 201) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 262, 'two_step_transferring', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 200\n csr_id: 187\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 201\n csr_id: 188\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 262 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 262 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (262) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (200, 201) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 262, 'in_progress', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 200\n csr_id: 187\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 201\n csr_id: 188\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 189, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 190, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 236, 254, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (202, NULL, 263, '2014-02-10 18:59:46', '562-555-5555', 282, NULL, 'sid-281', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 263, '2014-02-10 18:59:46', '562-555-5555', 283, NULL, 'sid-282', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (203, NULL, 263, '2014-02-10 18:59:46', '562-555-5555', 284, NULL, 'sid-283', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 263 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 263 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (263) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (202, 203) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 263, 'two_step_transferring', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 202\n csr_id: 189\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 203\n csr_id: 190\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 263 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 263 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (263) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (202, 203) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 263, 'in_progress', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 202\n csr_id: 189\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 203\n csr_id: 190\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::FailTwoStepTransfer Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::FailTwoStepTransfer') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 191, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 192, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 237, 255, NULL, 'two_step_transferring_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (204, NULL, 264, '2014-02-10 18:59:46', '562-555-5555', 285, NULL, 'sid-284', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 264, '2014-02-10 18:59:46', '562-555-5555', 286, NULL, 'sid-285', 'in_progress_hold', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (205, NULL, 264, '2014-02-10 18:59:46', '562-555-5555', 287, NULL, 'sid-286', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 264 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 264 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (264) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (204, 205) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 264, 'in_progress_hold', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 204\n csr_id: 191\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 205\n csr_id: 192\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 193, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 194, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 238, 256, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (206, NULL, 265, '2014-02-10 18:59:46', '562-555-5555', 288, NULL, 'sid-287', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 265, '2014-02-10 18:59:46', '562-555-5555', 289, NULL, 'sid-288', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (207, NULL, 265, '2014-02-10 18:59:46', '562-555-5555', 290, NULL, 'sid-289', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 265 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 265 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (265) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (206, 207) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 265, 'leaving_voicemail', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 206\n csr_id: 193\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 195, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:46', 196, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 239, 257, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (208, NULL, 266, '2014-02-10 18:59:46', '562-555-5555', 291, NULL, 'sid-290', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 266, '2014-02-10 18:59:46', '562-555-5555', 292, NULL, 'sid-291', 'in_progress', NULL, '2014-02-10 18:59:46') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (209, NULL, 266, '2014-02-10 18:59:46', '562-555-5555', 293, NULL, 'sid-292', 'connecting', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 266 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 266 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (266) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (208, 209) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 266, 'leaving_voicemail', '2014-02-10 18:59:46', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 208\n csr_id: 195\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::LeaveVoicemail Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::LeaveVoicemail') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 240, 258, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 267 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 267 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (267) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 267, 'terminated', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 241, 259, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 268 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 268 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (268) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 268, 'terminated', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Terminate Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 242, 260, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 269 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 269, 'initiating_hold', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 243, 261, NULL, 'in_progress_two_step_transfer', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'initiating_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 270 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 270, 'initiating_two_step_transfer_hold', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::InitiateHold', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 244, 262, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 271, '2014-02-10 18:59:46', '562-555-5555', 294, NULL, 'sid-293', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 271 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 271 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (271) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 271, 'in_progress_hold', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 245, 263, NULL, 'initiating_two_step_transfer_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 272, '2014-02-10 18:59:46', '562-555-5555', 295, NULL, 'sid-294', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer_hold', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 272 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 272 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (272) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 272, 'in_progress_two_step_transfer_hold', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 246, 264, NULL, 'in_progress_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'initiating_resume', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 273 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 273, 'initiating_resume', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::InitiateResume', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 247, 265, NULL, 'in_progress_two_step_transfer_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'initiating_two_step_transfer_resume', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 274 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 274, 'initiating_two_step_transfer_resume', '2014-02-10 18:59:46', '--- []\n', 'Telephony::Events::InitiateResume', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 248, 266, NULL, 'initiating_resume', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 275, '2014-02-10 18:59:46', '562-555-5555', 296, NULL, 'sid-295', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 275 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 275 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (275) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 275, 'in_progress', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::CompleteResume', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 249, 267, NULL, 'initiating_two_step_transfer_resume', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 276, '2014-02-10 18:59:46', '562-555-5555', 297, NULL, 'sid-296', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_two_step_transfer', `updated_at` = '2014-02-10 18:59:46' WHERE `telephony_conversations`.`id` = 276 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 276 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (276) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 276, 'in_progress_two_step_transfer', '2014-02-10 18:59:46', '---\n- :agent: \n', 'Telephony::Events::CompleteResume', '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 250, 268, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 277, '2014-02-10 18:59:46', '562-555-5555', 298, NULL, 'sid-297', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 277, '2014-02-10 18:59:46', '562-555-5555', 299, NULL, 'sid-298', 'not_initiated', NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (314, '2014-02-10 18:59:46', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:46', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (315, '2014-02-10 18:59:46', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:46', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:46', 251, 269, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 278, '2014-02-10 18:59:47', '562-555-5555', 300, NULL, 'sid-299', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 278, '2014-02-10 18:59:47', '562-555-5555', 301, NULL, 'sid-300', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (316, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (317, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 277 ORDER BY id Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 314 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 314 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 315 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 315 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 277 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 278 ORDER BY id Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 316 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 316 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 317 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 317 Telephony::Events::Base Load (0.2ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 278  (0.1ms) ROLLBACK  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 252, 270, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 279, '2014-02-10 18:59:47', '562-555-5555', 302, NULL, 'sid-301', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 279, '2014-02-10 18:59:47', '562-555-5555', 303, NULL, 'sid-302', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (318, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (319, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 253, 271, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 280, '2014-02-10 18:59:47', '562-555-5555', 304, NULL, 'sid-303', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 280, '2014-02-10 18:59:47', '562-555-5555', 305, NULL, 'sid-304', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (320, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (321, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 279 ORDER BY id Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 318 LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 318 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 319 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 319 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 279 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 280 ORDER BY id Telephony::Voicemail Load (0.6ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 320 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 320 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 321 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 321 Telephony::Events::Base Load (0.2ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 280  (0.1ms) ROLLBACK  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 254, 272, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 281, '2014-02-10 18:59:47', '562-555-5555', 306, NULL, 'sid-305', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 281, '2014-02-10 18:59:47', '562-555-5555', 307, NULL, 'sid-306', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (322, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (323, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 255, 273, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 282, '2014-02-10 18:59:47', '562-555-5555', 308, NULL, 'sid-307', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 282, '2014-02-10 18:59:47', '562-555-5555', 309, NULL, 'sid-308', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (324, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (325, '2014-02-10 18:59:47', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:47', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 281 ORDER BY id Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 322 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 322 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 323 LIMIT 1 Telephony::Recording Load (0.2ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 323 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 281 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 282 ORDER BY id Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 324 LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 324 Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 325 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 325 Telephony::Events::Base Load (0.2ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 282  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 197, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 256, 274, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (210, NULL, 283, '2014-02-10 18:59:47', '1112223333', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 283 ORDER BY id LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 283 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (283) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (210)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (326, 'call_state', 283, 'terminated', '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 210\n csr_id: 197\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate')  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 198, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 257, 275, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (211, NULL, 284, '2014-02-10 18:59:47', '1112223333', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 284 ORDER BY id LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 284 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (284) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (211)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (327, 'call_state', 284, 'terminated', '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 211\n csr_id: 198\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Terminate Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 199, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 258, 276, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (212, NULL, 285, '2014-02-10 18:59:47', '1112223333', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 285 ORDER BY id LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 285 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (285) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (212)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (328, 'call_state', 285, 'terminated', '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 212\n csr_id: 199\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Terminate Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Terminate') ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 200, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 213 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 201, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 259, 277, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (214, NULL, 286, '2014-02-10 18:59:47', '562-555-5555', 310, NULL, 'sid-309', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 214 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 286 LIMIT 1 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 286 ORDER BY id DESC  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 202, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 260, 278, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (215, NULL, 287, '2014-02-10 18:59:47', '562-555-5555', 311, NULL, 'sid-310', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 287, NULL, '2014-02-10 18:59:47', NULL, 'Telephony::Events::Answer', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 215 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 287 LIMIT 1 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 287 ORDER BY id DESC  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 203, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 204, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 205, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 261, 279, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (217, NULL, 288, '2014-02-10 18:59:47', '562-555-5555', 312, NULL, 'sid-311', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 288, '2014-02-10 18:59:47', '562-555-5555', 313, NULL, 'sid-312', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (218, NULL, 288, '2014-02-10 18:59:47', '562-555-5555', 314, NULL, 'sid-313', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 288, NULL, '2014-02-10 18:59:47', NULL, 'Telephony::Events::Dummy', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 217 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 288 LIMIT 1 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 288 ORDER BY id DESC  (0.2ms) ROLLBACK  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 206, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 207, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 262, 280, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (220, NULL, 289, '2014-02-10 18:59:47', '562-555-5555', 315, NULL, 'sid-314', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 289, '2014-02-10 18:59:47', '562-555-5555', 316, NULL, 'sid-315', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 289 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 220 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 289, NULL, '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 220\n csr_id: 207\n', 'Telephony::Events::Start', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 220 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 289 LIMIT 1 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 289 ORDER BY id DESC  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 208, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 209, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 263, 281, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (222, NULL, 290, '2014-02-10 18:59:47', '562-555-5555', 317, NULL, 'sid-316', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 290, '2014-02-10 18:59:47', '562-555-5555', 318, NULL, 'sid-317', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 290 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 222 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 290, NULL, '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 222\n csr_id: 209\n', 'Telephony::Events::Start', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 264, 282, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 210, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (223, NULL, NULL, '2014-02-10 18:59:47', '562-555-5555', 319, NULL, 'sid-318', 'in_progress', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, NULL, '2014-02-10 18:59:47', '562-555-5555', 320, NULL, 'sid-319', 'in_progress', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 209 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 222 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (222, NULL, 291, '2014-02-10 18:59:47', '123-123-1233', 209, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:47' WHERE `telephony_conversations`.`id` = 291 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 291 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (291) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (222) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 291, 'leaving_voicemail', '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 222\n csr_id: 209\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:47')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:47' WHERE `telephony_calls`.`id` = 340 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (340, 'terminated', 291, 'leaving_voicemail', '2014-02-10 18:59:47', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:47') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 291 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 291 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:47' WHERE `telephony_conversations`.`id` = 291 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 291 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (291) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (222) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 291, 'terminated', '2014-02-10 18:59:47', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:47') Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 291 ORDER BY id Failed to one-step transfer: undefined method `dial_agent!' for nil:NilClass  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 222 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 290 LIMIT 1 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 290 ORDER BY id DESC  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 211, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 212, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 265, 283, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 213, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (226, NULL, 292, '2014-02-10 18:59:47', '562-555-5555', 321, NULL, 'sid-320', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 292, '2014-02-10 18:59:47', '562-555-5555', 322, NULL, 'sid-321', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 266, 284, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.5ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 214, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (227, NULL, 293, '2014-02-10 18:59:47', '562-555-5555', 323, NULL, 'sid-322', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 293, '2014-02-10 18:59:47', '562-555-5555', 324, NULL, 'sid-323', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 267, 285, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 215, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (228, NULL, 294, '2014-02-10 18:59:47', '562-555-5555', 325, NULL, 'sid-324', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 294, '2014-02-10 18:59:47', '562-555-5555', 326, NULL, 'sid-325', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 268, 286, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 216, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (229, NULL, 295, '2014-02-10 18:59:47', '562-555-5555', 327, NULL, 'sid-326', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 295, '2014-02-10 18:59:47', '562-555-5555', 328, NULL, 'sid-327', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (347, NULL, 295, NULL, '2014-02-10 18:59:47', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 217, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 218, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 269, 287, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (230, NULL, 296, '2014-02-10 18:59:47', '562-555-5555', 329, NULL, 'sid-328', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 296, '2014-02-10 18:59:47', '562-555-5555', 330, NULL, 'sid-329', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (231, NULL, 296, '2014-02-10 18:59:47', '562-555-5555', 331, NULL, 'sid-330', 'terminated', NULL, '2014-02-10 18:59:47')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 296 ORDER BY id Telephony::Agent Load (0.6ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 230 LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 231 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 296, NULL, '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 230\n csr_id: 217\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 231\n csr_id: 218\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 219, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 220, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 270, 288, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 233, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (232, NULL, 297, '2014-02-10 18:59:47', '562-555-5555', 332, NULL, 'sid-331', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 297, '2014-02-10 18:59:47', '562-555-5555', 333, NULL, 'sid-332', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (233, NULL, 297, '2014-02-10 18:59:47', '562-555-5555', 334, NULL, 'sid-333', 'terminated', NULL, '2014-02-10 18:59:47')  (0.5ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 297 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 232 LIMIT 1 Telephony::Agent Load (0.5ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 233 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 297, NULL, '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 232\n csr_id: 219\n :data:\n :transferrer: true\n :agent_name: Transferree\n :agent_ext: \'11\'\n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 233\n csr_id: 220\n :data:\n :transferrer: false\n :agent_name: Transferrer\n :agent_ext: \'10\'\n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 221, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 222, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 271, 289, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 235, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (234, NULL, 298, '2014-02-10 18:59:47', '562-555-5555', 335, NULL, 'sid-334', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 298, '2014-02-10 18:59:47', '562-555-5555', 336, NULL, 'sid-335', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (235, NULL, 298, '2014-02-10 18:59:47', '562-555-5555', 337, NULL, 'sid-336', 'terminated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.6ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 298 ORDER BY id Telephony::Agent Load (1.0ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 234 LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 235 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 298, NULL, '2014-02-10 18:59:47', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 234\n csr_id: 221\n :data:\n :transferrer: true\n :agent_name: Transferree\n :agent_ext: \'11\'\n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 235\n csr_id: 222\n :data:\n :transferrer: false\n :agent_name: Transferrer\n :agent_ext: \'10\'\n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 223, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 272, 290, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 224, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (237, NULL, 299, '2014-02-10 18:59:47', '562-555-5555', 338, NULL, 'sid-337', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 299, '2014-02-10 18:59:47', '562-555-5555', 339, NULL, 'sid-338', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 273, 291, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 225, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (238, NULL, 300, '2014-02-10 18:59:47', '562-555-5555', 340, NULL, 'sid-339', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 300, '2014-02-10 18:59:47', '562-555-5555', 341, NULL, 'sid-340', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 274, 292, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 226, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (239, NULL, 301, '2014-02-10 18:59:47', '562-555-5555', 342, NULL, 'sid-341', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 301, '2014-02-10 18:59:47', '562-555-5555', 343, NULL, 'sid-342', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 275, 293, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 227, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (240, NULL, 302, '2014-02-10 18:59:47', '562-555-5555', 344, NULL, 'sid-343', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 302, '2014-02-10 18:59:47', '562-555-5555', 345, NULL, 'sid-344', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 276, 294, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 228, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (241, NULL, 303, '2014-02-10 18:59:47', '562-555-5555', 346, NULL, 'sid-345', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 303, '2014-02-10 18:59:47', '562-555-5555', 347, NULL, 'sid-346', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 277, 295, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:47', 229, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (242, NULL, 304, '2014-02-10 18:59:47', '562-555-5555', 348, NULL, 'sid-347', 'not_initiated', NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 304, '2014-02-10 18:59:47', '562-555-5555', 349, NULL, 'sid-348', 'not_initiated', NULL, '2014-02-10 18:59:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:47', 278, 296, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:47') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 230, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.6ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (243, NULL, 305, '2014-02-10 18:59:48', '562-555-5555', 350, NULL, 'sid-349', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 305, '2014-02-10 18:59:48', '562-555-5555', 351, NULL, 'sid-350', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 279, 297, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 231, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (244, NULL, 306, '2014-02-10 18:59:48', '562-555-5555', 352, NULL, 'sid-351', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 306, '2014-02-10 18:59:48', '562-555-5555', 353, NULL, 'sid-352', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 280, 298, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 232, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (245, NULL, 307, '2014-02-10 18:59:48', '562-555-5555', 354, NULL, 'sid-353', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 307, '2014-02-10 18:59:48', '562-555-5555', 355, NULL, 'sid-354', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 281, 299, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 233, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (246, NULL, 308, '2014-02-10 18:59:48', '562-555-5555', 356, NULL, 'sid-355', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 308, '2014-02-10 18:59:48', '562-555-5555', 357, NULL, 'sid-356', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 282, 300, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 234, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (247, NULL, 309, '2014-02-10 18:59:48', '562-555-5555', 358, NULL, 'sid-357', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 309, '2014-02-10 18:59:48', '562-555-5555', 359, NULL, 'sid-358', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 283, 301, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 235, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (248, NULL, 310, '2014-02-10 18:59:48', '562-555-5555', 360, NULL, 'sid-359', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 310, '2014-02-10 18:59:48', '562-555-5555', 361, NULL, 'sid-360', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 284, 302, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 236, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (249, NULL, 311, '2014-02-10 18:59:48', '562-555-5555', 362, NULL, 'sid-361', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 311, '2014-02-10 18:59:48', '562-555-5555', 363, NULL, 'sid-362', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 285, 303, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 237, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (250, NULL, 312, '2014-02-10 18:59:48', '562-555-5555', 364, NULL, 'sid-363', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 312, '2014-02-10 18:59:48', '562-555-5555', 365, NULL, 'sid-364', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 286, 304, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 238, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (251, NULL, 313, '2014-02-10 18:59:48', '562-555-5555', 366, NULL, 'sid-365', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 313, '2014-02-10 18:59:48', '562-555-5555', 367, NULL, 'sid-366', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 287, 305, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 239, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (252, NULL, 314, '2014-02-10 18:59:48', '562-555-5555', 368, NULL, 'sid-367', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 314, '2014-02-10 18:59:48', '562-555-5555', 369, NULL, 'sid-368', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 288, 306, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 240, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (253, NULL, 315, '2014-02-10 18:59:48', '562-555-5555', 370, NULL, 'sid-369', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 315, '2014-02-10 18:59:48', '562-555-5555', 371, NULL, 'sid-370', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 289, 307, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 241, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (254, NULL, 316, '2014-02-10 18:59:48', '562-555-5555', 372, NULL, 'sid-371', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 316, '2014-02-10 18:59:48', '562-555-5555', 373, NULL, 'sid-372', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 242, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 243, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 290, 308, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 256, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 291, 309, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (255, NULL, 318, '2014-02-10 18:59:48', '562-555-5555', 374, NULL, 'sid-373', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 292, 310, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 319, '2014-02-10 18:59:48', '562-555-5555', 375, NULL, 'sid-374', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 293, 311, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (256, NULL, 320, '2014-02-10 18:59:48', '562-555-5555', 376, NULL, 'sid-375', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 244, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 245, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 294, 312, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 258, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 295, 313, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (257, NULL, 322, '2014-02-10 18:59:48', '562-555-5555', 377, NULL, 'sid-376', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 296, 314, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 323, '2014-02-10 18:59:48', '562-555-5555', 378, NULL, 'sid-377', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 297, 315, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (258, NULL, 324, '2014-02-10 18:59:48', '562-555-5555', 379, NULL, 'sid-378', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 321 ORDER BY id  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 246, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 247, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 298, 316, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 260, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 299, 317, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (259, NULL, 326, '2014-02-10 18:59:48', '562-555-5555', 380, NULL, 'sid-379', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 300, 318, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 327, '2014-02-10 18:59:48', '562-555-5555', 381, NULL, 'sid-380', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 301, 319, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (260, NULL, 328, '2014-02-10 18:59:48', '562-555-5555', 382, NULL, 'sid-381', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 325 ORDER BY id  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 248, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 249, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 302, 320, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 262, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 303, 321, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (261, NULL, 330, '2014-02-10 18:59:48', '562-555-5555', 383, NULL, 'sid-382', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 304, 322, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 331, '2014-02-10 18:59:48', '562-555-5555', 384, NULL, 'sid-383', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 305, 323, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (262, NULL, 332, '2014-02-10 18:59:48', '562-555-5555', 385, NULL, 'sid-384', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 329 ORDER BY id  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 250, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 251, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 306, 324, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 264, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 307, 325, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (263, NULL, 334, '2014-02-10 18:59:48', '562-555-5555', 386, NULL, 'sid-385', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 308, 326, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 335, '2014-02-10 18:59:48', '562-555-5555', 387, NULL, 'sid-386', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 309, 327, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (264, NULL, 336, '2014-02-10 18:59:48', '562-555-5555', 388, NULL, 'sid-387', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 333 ORDER BY id  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 310, 328, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 252, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (265, NULL, 337, '2014-02-10 18:59:48', '562-555-5555', 389, NULL, 'sid-388', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 337, '2014-02-10 18:59:48', '562-555-5555', 390, NULL, 'sid-389', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 253, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (266, NULL, 337, '2014-02-10 18:59:48', '562-555-5555', 391, NULL, 'sid-390', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 311, 329, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 254, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (267, NULL, 338, '2014-02-10 18:59:48', '562-555-5555', 392, NULL, 'sid-391', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 338, '2014-02-10 18:59:48', '562-555-5555', 393, NULL, 'sid-392', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 255, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (268, NULL, 338, '2014-02-10 18:59:48', '562-555-5555', 394, NULL, 'sid-393', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 338 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 268 LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 256, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 257, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 312, 330, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 270, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (269, NULL, 339, '2014-02-10 18:59:48', '562-555-5555', 395, NULL, 'sid-394', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 339, '2014-02-10 18:59:48', '562-555-5555', 396, NULL, 'sid-395', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (270, NULL, 339, '2014-02-10 18:59:48', '562-555-5555', 397, NULL, 'sid-396', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 339 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 269 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 270 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 258, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 259, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 313, 331, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 272, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (271, NULL, 340, '2014-02-10 18:59:48', '562-555-5555', 398, NULL, 'sid-397', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 340, '2014-02-10 18:59:48', '562-555-5555', 399, NULL, 'sid-398', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (272, NULL, 340, '2014-02-10 18:59:48', '562-555-5555', 400, NULL, 'sid-399', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 340 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 271 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 272 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 260, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 261, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 314, 332, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 274, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (273, NULL, 341, '2014-02-10 18:59:48', '562-555-5555', 401, NULL, 'sid-400', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 341, '2014-02-10 18:59:48', '562-555-5555', 402, NULL, 'sid-401', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (274, NULL, 341, '2014-02-10 18:59:48', '562-555-5555', 403, NULL, 'sid-402', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 341 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 273 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 274 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 262, 'A', 0, 'Transferrer', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 263, 'A', 0, 'Transferree', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 315, 333, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 276, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (275, NULL, 342, '2014-02-10 18:59:48', '562-555-5555', 404, NULL, 'sid-403', 'terminated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 342, '2014-02-10 18:59:48', '562-555-5555', 405, NULL, 'sid-404', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (276, NULL, 342, '2014-02-10 18:59:48', '562-555-5555', 406, NULL, 'sid-405', 'terminated', NULL, '2014-02-10 18:59:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 342 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 275 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 276 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 264, 'A', 0, 'Some Name', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 265, 'A', 0, 'Other Name', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 316, 334, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 278, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (277, NULL, 343, '2014-02-10 18:59:48', '562-555-5555', 407, NULL, 'sid-406', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 343, '2014-02-10 18:59:48', '562-555-5555', 408, NULL, 'sid-407', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (278, NULL, 343, '2014-02-10 18:59:48', '562-555-5555', 409, NULL, 'sid-408', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 266, 'A', 0, 'Some Name', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 267, 'A', 0, 'Other Name', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 317, 335, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 280, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (279, NULL, 344, '2014-02-10 18:59:48', '562-555-5555', 410, NULL, 'sid-409', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 344, '2014-02-10 18:59:48', '562-555-5555', 411, NULL, 'sid-410', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (280, NULL, 344, '2014-02-10 18:59:48', '562-555-5555', 412, NULL, 'sid-411', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 344 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 279 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 280 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 268, 'A', 0, 'Some Name', '10', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 269, 'A', 0, 'Other Name', '11', '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 318, 336, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, 282, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (281, NULL, 345, '2014-02-10 18:59:48', '562-555-5555', 413, NULL, 'sid-412', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 345, '2014-02-10 18:59:48', '562-555-5555', 414, NULL, 'sid-413', 'in_progress', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (282, NULL, 345, '2014-02-10 18:59:48', '562-555-5555', 415, NULL, 'sid-414', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 345 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 281 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 282 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 319, 337, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 270, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (283, NULL, 346, '2014-02-10 18:59:48', '562-555-5555', 416, NULL, 'sid-415', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 346, '2014-02-10 18:59:48', '562-555-5555', 417, NULL, 'sid-416', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 320, 338, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 271, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (284, NULL, 347, '2014-02-10 18:59:48', '562-555-5555', 418, NULL, 'sid-417', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 347, '2014-02-10 18:59:48', '562-555-5555', 419, NULL, 'sid-418', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 321, 339, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 272, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (285, NULL, 348, '2014-02-10 18:59:48', '562-555-5555', 420, NULL, 'sid-419', 'not_initiated', NULL, '2014-02-10 18:59:48') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 348, '2014-02-10 18:59:48', '562-555-5555', 421, NULL, 'sid-420', 'not_initiated', NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:48', 322, 340, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:48', 273, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 323, 341, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 274, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (287, NULL, 350, '2014-02-10 18:59:49', '562-555-5555', 423, NULL, 'sid-422', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 350, '2014-02-10 18:59:49', '562-555-5555', 424, NULL, 'sid-423', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (286, NULL, 349, '2014-02-10 18:59:49', '562-555-5555', 422, NULL, 'sid-421', 'in_progress', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 324, 342, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 275, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 325, 343, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 276, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (289, NULL, 352, '2014-02-10 18:59:49', '562-555-5555', 426, NULL, 'sid-425', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 352, '2014-02-10 18:59:49', '562-555-5555', 427, NULL, 'sid-426', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (288, NULL, 351, '2014-02-10 18:59:49', '562-555-5555', 425, NULL, 'sid-424', 'in_progress', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 326, 344, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 277, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (290, NULL, 353, '2014-02-10 18:59:49', '562-555-5555', 428, NULL, 'sid-427', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 353, '2014-02-10 18:59:49', '562-555-5555', 429, NULL, 'sid-428', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 327, 345, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 278, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (291, NULL, 354, '2014-02-10 18:59:49', '562-555-5555', 430, NULL, 'sid-429', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 354, '2014-02-10 18:59:49', '562-555-5555', 431, NULL, 'sid-430', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 328, 346, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 279, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (292, NULL, 355, '2014-02-10 18:59:49', '562-555-5555', 432, NULL, 'sid-431', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 355, '2014-02-10 18:59:49', '562-555-5555', 433, NULL, 'sid-432', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 329, 347, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 280, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (293, NULL, 356, '2014-02-10 18:59:49', '562-555-5555', 434, NULL, 'sid-433', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 356, '2014-02-10 18:59:49', '562-555-5555', 435, NULL, 'sid-434', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 330, 348, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 281, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 331, 349, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 282, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (295, NULL, 358, '2014-02-10 18:59:49', '562-555-5555', 437, NULL, 'sid-436', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 358, '2014-02-10 18:59:49', '562-555-5555', 438, NULL, 'sid-437', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (294, NULL, 357, '2014-02-10 18:59:49', '562-555-5555', 436, NULL, 'sid-435', 'in_progress', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 332, 350, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 283, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:49', 333, 351, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 284, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (297, NULL, 360, '2014-02-10 18:59:49', '562-555-5555', 440, NULL, 'sid-439', 'not_initiated', NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 360, '2014-02-10 18:59:49', '562-555-5555', 441, NULL, 'sid-440', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (296, NULL, 359, '2014-02-10 18:59:49', '562-555-5555', 439, NULL, 'sid-438', 'in_progress', NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:49', 285, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (2.0ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 361 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 361, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 361, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 462 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 361 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 361 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (361) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (462, 'connecting', 361, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 462 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 361 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (361) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (462, 'in_progress', 361, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 362 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 362, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 362, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 463 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 362 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 362 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (362) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (463, 'connecting', 362, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 463 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 362 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (362) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (463, 'in_progress', 362, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 363 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 363, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 363, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 464 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 363 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 363 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (363) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (464, 'connecting', 363, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 464 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 363 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (363) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (464, 'in_progress', 363, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 364 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 364, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 364, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 465 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 364 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 364 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (364) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (465, 'connecting', 364, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 465 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 364 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (364) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (465, 'in_progress', 364, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 365 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 365, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 365, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 466 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 365 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 365 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (365) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (466, 'connecting', 365, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 466 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 365 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (365) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (466, 'in_progress', 365, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 365 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 365 ORDER BY id LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 366 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 366, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 366, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 467 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 366 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 366 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (366) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (467, 'connecting', 366, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:49', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 467 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 366 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (366) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (467, 'in_progress', 366, 'playing_message', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 366 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 366 ORDER BY id LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 367 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 367, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 367, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:49', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 468 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 367 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 367 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (367) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (468, 'terminated', 367, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 367 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 367 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 368 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 368, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 368, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:49', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 469 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 368 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 368 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (368) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (469, 'terminated', 368, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 368 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 368 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 369 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 369, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 369, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:49', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 470 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 369 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 369 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (369) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (470, 'terminated', 369, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 369 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 369 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 370 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 370, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 370, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:49', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 471 Telephony::Conversation Load (79.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 370 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 370 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (370) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (471, 'terminated', 370, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 370 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 370 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 371 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 371, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 371, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:49', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 472 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 371 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 371 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (371) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (472, 'terminated', 371, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 371 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 371 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 371 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 371 ORDER BY id LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 372, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 473 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 372 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (473, 'terminated', 372, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 372 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 372 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 372 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 372 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (372) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 372, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 373, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 474 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 373 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (474, 'terminated', 373, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 373 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 373 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 373 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 373 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (373) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 373, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 374, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 475 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 374 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (475, 'terminated', 374, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 374 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 374 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 374 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 374 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (374) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 374, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 375, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 476 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (476, 'terminated', 375, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 375 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 375 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 375 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 375 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (375) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 375, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 376, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 477 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (477, 'terminated', 376, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 376 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 376 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_conversations`.`id` = 376 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 376 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (376) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 376, 'terminated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 376 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 376 ORDER BY id LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('222-222-2222', 'inbound', '2014-02-10 18:59:49', NULL, NULL, '222-222-2222', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:49') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 377, '2014-02-10 18:59:49', '111-111-1111', NULL, NULL, 'call_sid', 'not_initiated', NULL, '2014-02-10 18:59:49')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:49' WHERE `telephony_calls`.`id` = 478 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (478, 'terminated', 377, 'initiated', '2014-02-10 18:59:49', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:49') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 377 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 377 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 377 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 377 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (377) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 377, 'terminated', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Events::Reject Exists (0.3ms) SELECT 1 AS one FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`type` IN ('Telephony::Events::Reject') AND `telephony_conversation_events`.`call_id` = 478 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 334, 352, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 378, '2014-02-10 18:59:50', '562-555-5555', 442, NULL, 'sid-441', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 299 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (299, NULL, 378, '2014-02-10 18:59:50', '123-123-1233', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 480 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 378 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 378 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (378) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (299) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (480, 'connecting', 378, 'enqueued', '2014-02-10 18:59:50', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 299\n csr_id: 123\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 299 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 335, 353, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 379, '2014-02-10 18:59:50', '562-555-5555', 443, NULL, 'sid-442', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 300 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (300, NULL, 379, '2014-02-10 18:59:50', '123-123-1233', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 482 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 379 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 379 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (379) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (300) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (482, 'connecting', 379, 'enqueued', '2014-02-10 18:59:50', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 300\n csr_id: 123\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 336, 354, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 380, '2014-02-10 18:59:50', '562-555-5555', 444, NULL, 'sid-443', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 301 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (301, NULL, 380, '2014-02-10 18:59:50', '123-123-1233', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 484 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 380 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 380 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (380) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (301) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (484, 'connecting', 380, 'enqueued', '2014-02-10 18:59:50', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 301\n csr_id: 123\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 337, 355, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 381, '2014-02-10 18:59:50', '562-555-5555', 445, NULL, 'sid-444', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 302 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (302, NULL, 381, '2014-02-10 18:59:50', '123-123-1233', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 486 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 381 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 381 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (381) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (302) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (486, 'connecting', 381, 'enqueued', '2014-02-10 18:59:50', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 302\n csr_id: 123\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'on_a_call', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 123, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 123 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 304 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 304  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 338, 356, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 382, '2014-02-10 18:59:50', '562-555-5555', 446, NULL, 'sid-445', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:49', 339, 357, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 383, '2014-02-10 18:59:50', '562-555-5555', 447, NULL, 'sid-446', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 383 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 383 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (383) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 383, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 383 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 340, 358, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 384, '2014-02-10 18:59:50', '562-555-5555', 448, NULL, 'sid-447', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:49', 341, 359, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 385, '2014-02-10 18:59:50', '562-555-5555', 449, NULL, 'sid-448', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 385 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 385 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (385) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 385, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 342, 360, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 386, '2014-02-10 18:59:50', '562-555-5555', 450, NULL, 'sid-449', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:49', 343, 361, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 387, '2014-02-10 18:59:50', '562-555-5555', 451, NULL, 'sid-450', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 387 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 387 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (387) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 387, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 386 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 386 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (386) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 386, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:50', 344, 362, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 388, '2014-02-10 18:59:50', '562-555-5555', 452, NULL, 'sid-451', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:49', 345, 363, NULL, 'enqueued', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 389, '2014-02-10 18:59:50', '562-555-5555', 453, NULL, 'sid-452', 'in_progress', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 389 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 389 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (389) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 389, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 388 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 388 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (388) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 388, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 346, 364, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 390, '2014-02-10 18:59:50', '562-555-5555', 454, NULL, 'sid-453', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (495, '2014-02-10 18:59:50', 1, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/1')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-08 18:59:50', 18, 22, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playable_listeners` (`created_at`, `csr_id`, `playable_id`, `updated_at`) VALUES ('2014-02-09 18:59:50', 19, 22, '2014-02-10 18:59:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::PlayableListener Load (0.4ms) SELECT * FROM (SELECT * FROM telephony_playable_listeners WHERE playable_id IN (22) ORDER BY created_at DESC) AS playable_listeners GROUP BY playable_listeners.playable_id  (0.1ms) ROLLBACK  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 347, 365, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 391, '2014-02-10 18:59:50', '562-555-5555', 455, NULL, 'sid-454', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 348, 366, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 392, '2014-02-10 18:59:50', '562-555-5555', 456, NULL, 'sid-455', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (497, '2014-02-10 18:59:50', 2, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/3')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 349, 367, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 393, '2014-02-10 18:59:50', '562-555-5555', 457, NULL, 'sid-456', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (498, '2014-02-10 18:59:50', 3, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/4')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 350, 368, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 394, '2014-02-10 18:59:50', '562-555-5555', 458, NULL, 'sid-457', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (499, '2014-02-10 18:59:50', 4, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/5')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 351, 369, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 395, '2014-02-10 18:59:50', '562-555-5555', 459, NULL, 'sid-458', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (500, '2014-02-10 18:59:50', 5, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/6')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 352, 370, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 396, '2014-02-10 18:59:50', '562-555-5555', 460, NULL, 'sid-459', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (501, '2014-02-10 18:59:50', 6, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/7')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 353, 371, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 397, '2014-02-10 18:59:50', '562-555-5555', 461, NULL, 'sid-460', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (502, '2014-02-10 18:59:50', 7, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/8')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 354, 372, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 398, '2014-02-10 18:59:50', '562-555-5555', 462, NULL, 'sid-461', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (503, '2014-02-10 18:59:50', 8, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/9')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail')  (0.2ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail')  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 355, 373, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 399, '2014-02-10 18:59:50', '562-555-5555', 463, NULL, 'sid-462', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (504, '2014-02-10 18:59:50', 9, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 356, 374, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 400, '2014-02-10 18:59:50', '562-555-5555', 464, NULL, 'sid-463', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (505, '2014-02-10 18:59:50', 10, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 357, 375, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 401, '2014-02-10 18:59:50', '562-555-5555', 465, NULL, 'sid-464', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (506, '2014-02-10 18:59:50', 11, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`csr_id` = 9 LIMIT 10 OFFSET 0) subquery_for_count  Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`csr_id` = 9 LIMIT 10 OFFSET 0  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 358, 376, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 402, '2014-02-10 18:59:50', '562-555-5555', 466, NULL, 'sid-465', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (507, '2014-02-10 18:59:50', 12, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/13')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 359, 377, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 403, '2014-02-10 18:59:50', '562-555-5555', 467, NULL, 'sid-466', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (508, '2014-02-10 18:59:50', 13, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 360, 378, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 404, '2014-02-10 18:59:50', '562-555-5555', 468, NULL, 'sid-467', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (509, '2014-02-10 18:59:50', 14, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:50', 'http://example.com/15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_playables` SET `created_at` = '2013-11-02 17:59:50', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_playables` SET `created_at` = '2014-02-07 18:59:50', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_playables` SET `created_at` = '2014-01-21 18:59:50', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') ORDER BY created_at DESC  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 286, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:50', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:50', 361, 379, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 287, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:50') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (306, NULL, 405, '2014-02-10 18:59:50', '562-555-5555', 469, NULL, 'sid-468', 'not_initiated', NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 405, '2014-02-10 18:59:50', '562-555-5555', 470, NULL, 'sid-469', 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 405, NULL, '2014-02-10 18:59:50', NULL, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 288, 'B', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Started POST "/zestphone/conversations" for 127.0.0.1 at 2014-02-10 11:59:50 -0700 Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"288", "from_type"=>"csr"} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 288 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:50', 288, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (307, NULL, 406, '2014-02-10 18:59:50', '123-123-1233', 288, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 406, '2014-02-10 18:59:50', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 406 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 406 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (406) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (307) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 406, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 406 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 512 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 406 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 406 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (406) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (307) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (512, 'connecting', 406, 'connecting', '2014-02-10 18:59:50', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 307\n csr_id: 288\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 406 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 307 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 406 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `sid` = 'CA079e92ef0e260449cf1e58a645b2207b', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_calls`.`id` = 512  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 406 ORDER BY id Completed 200 OK in 56ms (Views: 0.3ms | ActiveRecord: 7.5ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) ROLLBACK  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:50', 289, 'B', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Started POST "/zestphone/conversations" for 127.0.0.1 at 2014-02-10 11:59:50 -0700 Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"289", "from_type"=>"csr"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 289 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:50', 289, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (308, NULL, 407, '2014-02-10 18:59:50', '123-123-1233', 289, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:50') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 407, '2014-02-10 18:59:50', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:50' WHERE `telephony_conversations`.`id` = 407 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 407 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (407) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (308) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 407, 'connecting', '2014-02-10 18:59:50', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 407 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 514 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 407 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 407 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (407) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (308) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (514, 'connecting', 407, 'connecting', '2014-02-10 18:59:51', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 308\n csr_id: 289\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 407 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 308 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 407 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'CA860d6bf8eb644ddf32e17830e1db6bed', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 514  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 407 ORDER BY id Completed 200 OK in 133ms (Views: 0.3ms | ActiveRecord: 7.7ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_calls`  (0.1ms) ROLLBACK  (12.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 290, 'B', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `telephony_conversations` Started POST "/zestphone/conversations" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::ConversationsController#create as JS Parameters: {"from"=>"310-456-7890", "to"=>"310-765-4321", "loan_id"=>"1", "from_id"=>"290", "from_type"=>"csr"} Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 290 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('500-555-0006', 'outbound', '2014-02-10 18:59:51', 290, 1, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (309, NULL, 408, '2014-02-10 18:59:51', '123-123-1233', 290, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:51') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 408, '2014-02-10 18:59:51', '310-765-4321', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_conversations`.`id` = 408 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 408 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (408) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (309) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 408, 'connecting', '2014-02-10 18:59:51', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 408 ORDER BY id LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 516 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 408 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 408 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (408) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (309) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (516, 'connecting', 408, 'connecting', '2014-02-10 18:59:51', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 309\n csr_id: 290\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 408 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 309 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 408 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `sid` = 'CA82a249c5e139dfaa08aa489a712853e8', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 516  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 408 ORDER BY id Completed 200 OK in 54ms (Views: 0.3ms | ActiveRecord: 7.4ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY `telephony_conversations`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (12.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 362, 380, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 409, '2014-02-10 18:59:51', '562-555-5555', 471, NULL, 'sid-470', 'not_initiated', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 1, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/zestphone/inbound/front?csr_id=1" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::Inbound::ConversationQueuesController#front as HTML Parameters: {"csr_id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 1 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 310 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (310, NULL, 409, '2014-02-10 18:59:51', '123-123-1233', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:51')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 519 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 409 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 409 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (409) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (310) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (519, 'connecting', 409, 'initiated', '2014-02-10 18:59:51', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 310\n csr_id: 1\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:51') Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 409 ORDER BY id  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 27ms (Views: 0.3ms | ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 1, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/zestphone/inbound/front?csr_id=1" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::Inbound::ConversationQueuesController#front as HTML Parameters: {"csr_id"=>"1"}  (0.2ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 1 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 311 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 311  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 1, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/zestphone/inbound/front?csr_id=1" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::Inbound::ConversationQueuesController#front as HTML Parameters: {"csr_id"=>"1"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 1 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 312 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' ORDER BY created_at LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 312  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 363, 381, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 364, 382, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 365, 383, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 366, 384, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 367, 385, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 368, 386, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 369, 387, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 370, 388, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 371, 389, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::ConversationsController#index as JS Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations`  Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 410 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 411 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 412 ORDER BY id Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 413 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 414 ORDER BY id Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 415 ORDER BY id Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 416 ORDER BY id Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 417 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 418 ORDER BY id Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 372, 390, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 373, 391, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 374, 392, NULL, 'terminated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 375, 393, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 376, 394, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 377, 395, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 378, 396, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 379, 397, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 380, 398, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations?state=terminated" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::ConversationsController#index as JS Parameters: {"state"=>"terminated"} Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'terminated' Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 419 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 420 ORDER BY id Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 421 ORDER BY id Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 381, 399, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 291, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (313, NULL, 428, '2014-02-10 18:59:51', '562-555-5555', 472, NULL, 'sid-471', 'in_progress', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 428, '2014-02-10 18:59:51', '562-555-5555', 473, NULL, 'sid-472', 'connecting', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:51', 382, 400, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:51', 292, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (314, NULL, 429, '2014-02-10 18:59:51', '562-555-5555', 474, NULL, 'sid-473', 'in_progress', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 429, '2014-02-10 18:59:51', '562-555-5555', 475, NULL, 'sid-474', 'in_progress', NULL, '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 428 ORDER BY id DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:51', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 521 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 428 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 428 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (428) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (313) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (521, 'in_progress', 428, 'connecting', '2014-02-10 18:59:51', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_conversations`.`id` = 428 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 428 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (428) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (313) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 428, 'in_progress', '2014-02-10 18:59:51', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 313\n csr_id: 291\n', 'Telephony::Events::Start', '2014-02-10 18:59:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 428 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 313 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `status` = 'available', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_agents` SET `status` = 'on_a_call', `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` ORDER BY `telephony_conversation_events`.`id` DESC LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 428 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 313 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 291 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 313 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (313, NULL, 429, '2014-02-10 18:59:51', '123-123-1233', 291, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:51')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_conversations`.`id` = 429 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 429 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (429) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (314, 313) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 429, 'leaving_voicemail', '2014-02-10 18:59:51', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 314\n csr_id: 292\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:51')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:51' WHERE `telephony_calls`.`id` = 524 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (524, 'terminated', 429, 'leaving_voicemail', '2014-02-10 18:59:51', '--- []\n', 'Telephony::Events::StraightToVoicemail', '2014-02-10 18:59:51') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 429 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 429 ORDER BY id Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 429 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 314 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (523, 'in_progress', 429, 'leaving_voicemail', '2014-02-10 18:59:51', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:51') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 429 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 429 ORDER BY id Twilio provider - Failed to redirect sid-474 to http://example.com:8080/zestphone/providers/twilio/calls/523/dial - Twilio::REST::RequestError - Resource not yet accessible with Test Account credentials Failed to one-step transfer: Failed to redirect sid-474 to http://example.com:8080/zestphone/providers/twilio/calls/523/dial - Resource not yet accessible with Test Account credentials  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/signals/agents/presences" for 127.0.0.1 at 2014-02-10 11:59:51 -0700 Processing by Telephony::Signals::Agents::PresencesController#create as HTML Parameters: {"presence"=>{"events"=>[{"channel"=>"presence-291", "name"=>"member_added", "user_id"=>"313"}], "time_ms"=>"9223372036854775705"}} Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 313 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 313 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_agents` SET `timestamp_of_last_presence_event` = 9223372036854775705, `updated_at` = '2014-02-10 18:59:51', `transferable_agents` = '--- []\n' WHERE `telephony_agents`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`agent_id` = 313 AND (state <> 'terminated') ORDER BY `telephony_calls`.`id` DESC LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 428 LIMIT 1 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` = 428 ORDER BY id DESC  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations` WHERE `telephony_conversations`.`state` = 'enqueued' Completed 200 OK in 400ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 383, 401, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 293, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (315, NULL, 430, '2014-02-10 18:59:52', '562-555-5555', 476, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/525/child_answered" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_answered as HTML Parameters: {"CallSid"=>"sid123", "id"=>"525"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 525 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 430 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `sid` = 'sid123', `connected_at` = '2014-02-10 18:59:52', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 525 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 430 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 430 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (430) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (315) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (525, 'in_progress', 430, 'connecting', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 315\n csr_id: 293\n :data:\n :owner: true\n', 'Telephony::Events::Answer', '2014-02-10 18:59:52')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 430 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 430 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (430) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (315) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 430, 'in_progress', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 315\n csr_id: 293\n', 'Telephony::Events::Start', '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 34ms (Views: 2.4ms | ActiveRecord: 4.4ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 525 LIMIT 1  (0.1ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 384, 402, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 294, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (316, NULL, 431, '2014-02-10 18:59:52', '562-555-5555', 477, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/526/child_answered" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_answered as HTML Parameters: {"CallSid"=>"sid123", "id"=>"526"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 526 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 431 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `sid` = 'sid123', `connected_at` = '2014-02-10 18:59:52', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 526 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 431 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 431 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (431) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (316) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (526, 'in_progress', 431, 'connecting', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 316\n csr_id: 294\n :data:\n :owner: true\n', 'Telephony::Events::Answer', '2014-02-10 18:59:52')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 431 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 431 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (431) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (316) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 431, 'in_progress', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 316\n csr_id: 294\n', 'Telephony::Events::Start', '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 30ms (Views: 1.1ms | ActiveRecord: 4.2ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 526 LIMIT 1  (0.1ms) ROLLBACK  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 385, 403, NULL, 'two_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 295, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (317, NULL, 432, '2014-02-10 18:59:52', '562-555-5555', 478, NULL, 'sid-475', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 432, '2014-02-10 18:59:52', '562-555-5555', 479, NULL, 'sid-476', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/527/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-476", "DialCallStatus"=>"completed", "id"=>"527"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 527 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 432 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 432 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 432 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 527 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 432 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (432) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (317) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (527, 'in_conference', 432, 'two_step_transferring', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 317\n csr_id: 295\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 432 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 432 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 317 LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 317 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 5.2ms | ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 296, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 386, 404, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (318, NULL, 433, '2014-02-10 18:59:52', '562-555-5555', 480, NULL, 'sid-477', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 433, '2014-02-10 18:59:52', '562-555-5555', 481, NULL, 'sid-478', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/529/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-478", "DialCallDuration"=>"0", "DialCallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"529"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 529 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 433 ORDER BY id SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (530, '2014-02-10 18:59:52', NULL, 0, '2014-02-10 18:59:52', 'Telephony::Recording', '2014-02-10 18:59:52', 'recording_url')  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 530 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (433) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (318) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (530, 'terminated', 433, 'initiated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 433 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 529 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (433) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (318) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (529, 'terminated', 433, 'initiated', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 318\n csr_id: 296\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 433 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 433 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 433 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (433) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (318) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 433, 'terminated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 131ms (Views: 4.2ms | ActiveRecord: 8.7ms)  (0.1ms) ROLLBACK  (11.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 297, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 387, 405, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (319, NULL, 434, '2014-02-10 18:59:52', '562-555-5555', 482, NULL, 'sid-479', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 434, '2014-02-10 18:59:52', '562-555-5555', 483, NULL, 'sid-480', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/531/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-480", "DialCallDuration"=>"0", "DialCallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"531"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 531 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 434 ORDER BY id SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (532, '2014-02-10 18:59:52', NULL, 0, '2014-02-10 18:59:52', 'Telephony::Recording', '2014-02-10 18:59:52', 'recording_url')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 532 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (434) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (319) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (532, 'terminated', 434, 'initiated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 434 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 531 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (434) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (319) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (531, 'terminated', 434, 'initiated', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 319\n csr_id: 297\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 434 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 434 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 434 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (434) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (319) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 434, 'terminated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 57ms (Views: 1.3ms | ActiveRecord: 8.9ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 532 LIMIT 1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 298, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 388, 406, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (320, NULL, 435, '2014-02-10 18:59:52', '562-555-5555', 484, NULL, 'sid-481', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 435, '2014-02-10 18:59:52', '562-555-5555', 485, NULL, 'sid-482', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/533/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-482", "DialCallStatus"=>"completed", "id"=>"533"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 533 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 435 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 435 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 435 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 320 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 533 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 435 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (435) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (320) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (533, 'in_conference', 435, 'initiating_hold', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 320\n csr_id: 298\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 435 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 435 ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 320 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 27ms (Views: 1.9ms | ActiveRecord: 4.7ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 533 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 299, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 389, 407, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (321, NULL, 436, '2014-02-10 18:59:52', '562-555-5555', 486, NULL, 'sid-483', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 436, '2014-02-10 18:59:52', '562-555-5555', 487, NULL, 'sid-484', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/535/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-484", "DialCallStatus"=>"completed", "id"=>"535"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 535 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 436 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 436 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 436 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 321 LIMIT 1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 535 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 436 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (436) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (321) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (535, 'in_conference', 436, 'initiating_hold', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 321\n csr_id: 299\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:52') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 436 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 436 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 321 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 28ms (Views: 1.7ms | ActiveRecord: 4.5ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 390, 408, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 437, '2014-02-10 18:59:52', '562-555-5555', 488, NULL, 'sid-485', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 300, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (322, NULL, 437, '2014-02-10 18:59:52', '562-555-5555', 489, NULL, 'sid-486', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/537/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-486", "DialCallStatus"=>"completed", "id"=>"537"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 537 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 437 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 437 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 437 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 537 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (537, 'in_progress_hold', 437, 'initiating_hold', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 437 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 437 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 322 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.8ms | ActiveRecord: 3.3ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 537 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 391, 409, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 438, '2014-02-10 18:59:52', '562-555-5555', 490, NULL, 'sid-487', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 301, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (323, NULL, 438, '2014-02-10 18:59:52', '562-555-5555', 491, NULL, 'sid-488', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/539/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-488", "DialCallStatus"=>"completed", "id"=>"539"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 539 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 438 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 438 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 438 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 539 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (539, 'in_progress_hold', 438, 'initiating_hold', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 438 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 438 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 323 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.4ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 302, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 392, 410, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (324, NULL, 439, '2014-02-10 18:59:52', '562-555-5555', 492, NULL, 'sid-489', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 439, '2014-02-10 18:59:52', '562-555-5555', 493, NULL, 'sid-490', 'not_initiated', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/541/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-490", "DialCallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"541"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 541 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 439 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 439 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 439 ORDER BY id SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (542, '2014-02-10 18:59:52', NULL, 0, '2014-02-10 18:59:52', 'Telephony::Recording', '2014-02-10 18:59:52', 'recording_url')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 2.0ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 542 LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 393, 411, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 303, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (325, NULL, 440, '2014-02-10 18:59:52', '562-555-5555', 494, NULL, 'sid-491', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 440, '2014-02-10 18:59:52', '562-555-5555', 495, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/543/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"no-answer", "DialCallSid"=>"123", "id"=>"543"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 543 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 440 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 544 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (440) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (325) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (544, 'terminated', 440, 'initiated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 440 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 543 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (440) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (325) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (543, 'terminated', 440, 'initiated', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 325\n csr_id: 303\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 440 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 440 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 440 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (440) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (325) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 440, 'terminated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 56ms (Views: 1.2ms | ActiveRecord: 8.6ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 544 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 394, 412, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 304, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (326, NULL, 441, '2014-02-10 18:59:52', '562-555-5555', 496, NULL, 'sid-492', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 441, '2014-02-10 18:59:52', '562-555-5555', 497, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/545/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"no-answer", "DialCallSid"=>"123", "id"=>"545"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 545 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 441 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 546 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (441) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (326) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (546, 'terminated', 441, 'initiated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 441 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:52', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_calls`.`id` = 545 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (441) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (326) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (545, 'terminated', 441, 'initiated', '2014-02-10 18:59:52', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 326\n csr_id: 304\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 441 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:52' WHERE `telephony_conversations`.`id` = 441 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 441 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (441) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (326) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 441, 'terminated', '2014-02-10 18:59:52', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 107ms (Views: 1.0ms | ActiveRecord: 8.3ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 546 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:52', 395, 413, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:52', 305, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (327, NULL, 442, '2014-02-10 18:59:52', '562-555-5555', 498, NULL, 'sid-493', 'in_progress', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 442, '2014-02-10 18:59:52', '562-555-5555', 499, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/547/child_detached" for 127.0.0.1 at 2014-02-10 11:59:52 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"no-answer", "DialCallSid"=>"123", "id"=>"547"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 547 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 442 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 548 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.6ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (442) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (327) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (548, 'terminated', 442, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 442 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 547 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (442) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (327) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (547, 'terminated', 442, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 327\n csr_id: 305\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 442 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 442 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 442 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (442) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (327) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 442, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 55ms (Views: 1.3ms | ActiveRecord: 8.8ms)  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 396, 414, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 306, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (328, NULL, 443, '2014-02-10 18:59:53', '562-555-5555', 500, NULL, 'sid-494', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 443, '2014-02-10 18:59:53', '562-555-5555', 501, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/549/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"failed", "DialCallSid"=>"123", "id"=>"549"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 549 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 443 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 550 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (443) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (328) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (550, 'terminated', 443, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::CallFail', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 443 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 549 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (443) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (328) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (549, 'terminated', 443, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 328\n csr_id: 306\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 443 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 443 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 443 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (443) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (328) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 443, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 137ms (Views: 1.0ms | ActiveRecord: 8.4ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 550 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 397, 415, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 307, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (329, NULL, 444, '2014-02-10 18:59:53', '562-555-5555', 502, NULL, 'sid-495', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 444, '2014-02-10 18:59:53', '562-555-5555', 503, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/551/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"failed", "DialCallSid"=>"123", "id"=>"551"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 551 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 444 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 552 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (444) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (329) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (552, 'terminated', 444, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::CallFail', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 444 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 551 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (444) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (329) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (551, 'terminated', 444, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 329\n csr_id: 307\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 444 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 444 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 444 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (444) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (329) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 444, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 54ms (Views: 1.2ms | ActiveRecord: 8.7ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 552 LIMIT 1  (0.1ms) ROLLBACK  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 398, 416, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 308, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (330, NULL, 445, '2014-02-10 18:59:53', '562-555-5555', 504, NULL, 'sid-496', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 445, '2014-02-10 18:59:53', '562-555-5555', 505, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/553/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"failed", "DialCallSid"=>"123", "id"=>"553"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 553 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 445 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 554 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (445) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (330) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (554, 'terminated', 445, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::CallFail', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 445 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 553 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (445) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (330) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (553, 'terminated', 445, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 330\n csr_id: 308\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 445 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 445 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 445 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (445) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (330) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 445, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 51ms (Views: 1.2ms | ActiveRecord: 8.3ms)  (0.1ms) ROLLBACK  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 399, 417, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 309, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (331, NULL, 446, '2014-02-10 18:59:53', '562-555-5555', 506, NULL, 'sid-497', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 446, '2014-02-10 18:59:53', '562-555-5555', 507, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/555/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"busy", "DialCallSid"=>"123", "id"=>"555"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 555 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 446 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 556 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (446) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (331) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (556, 'terminated', 446, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Busy', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 446 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 555 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (446) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (331) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (555, 'terminated', 446, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 331\n csr_id: 309\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 446 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 446 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 446 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (446) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (331) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 446, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 55ms (Views: 1.3ms | ActiveRecord: 8.8ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 556 LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 400, 418, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 310, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (332, NULL, 447, '2014-02-10 18:59:53', '562-555-5555', 508, NULL, 'sid-498', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 447, '2014-02-10 18:59:53', '562-555-5555', 509, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/557/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"busy", "DialCallSid"=>"123", "id"=>"557"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 557 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 447 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 558 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (447) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (332) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (558, 'terminated', 447, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Busy', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 447 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 557 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (447) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (332) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (557, 'terminated', 447, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 332\n csr_id: 310\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 447 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 447 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 447 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (447) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (332) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 447, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 51ms (Views: 0.9ms | ActiveRecord: 8.2ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 558 LIMIT 1  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 401, 419, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 311, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (333, NULL, 448, '2014-02-10 18:59:53', '562-555-5555', 510, NULL, 'sid-499', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 448, '2014-02-10 18:59:53', '562-555-5555', 511, NULL, NULL, 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/559/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"busy", "DialCallSid"=>"123", "id"=>"559"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 559 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 448 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `sid` = '123', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 560 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (448) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (333) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (560, 'terminated', 448, 'initiated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Busy', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 448 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:53', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 559 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (448) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (333) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (559, 'terminated', 448, 'initiated', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 333\n csr_id: 311\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 448 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 448 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 448 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (448) ORDER BY id Telephony::Agent Load (0.6ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (333) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 448, 'terminated', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 52ms (Views: 1.2ms | ActiveRecord: 8.5ms)  (0.1ms) ROLLBACK  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 312, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 402, 420, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, 'one_step', NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (334, NULL, 449, '2014-02-10 18:59:53', '562-555-5555', 512, NULL, 'sid-500', 'not_initiated', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 449, '2014-02-10 18:59:53', '562-555-5555', 513, NULL, 'sid-501', 'in_progress', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 449, '2014-02-10 18:59:53', '562-555-5555', 514, NULL, 'sid-502', 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/561/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-501", "DialCallStatus"=>"completed", "id"=>"561"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 561 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 449 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 449 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 449 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 403, 421, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 450, '2014-02-10 18:59:53', '562-555-5555', 515, NULL, 'sid-503', 'in_progress', NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 313, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (335, NULL, 450, '2014-02-10 18:59:53', '562-555-5555', 516, NULL, 'sid-504', 'connecting', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/564/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"no-answer", "id"=>"564"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 564 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 450 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 565 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (450) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (335) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (565, 'terminated', 450, 'one_step_transferring', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 335\n csr_id: 313\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:53') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 450 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 450 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 450 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (450) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (335) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 450, 'leaving_voicemail', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 335\n csr_id: 313\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 335\n csr_id: 313\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailOneStepTransfer', '2014-02-10 18:59:53') Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 335 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 6.2ms | ActiveRecord: 6.1ms)  (0.1ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'inbound', '2014-02-10 18:59:53', 404, 422, NULL, 'connecting', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 451, '2014-02-10 18:59:53', '562-555-5555', 517, NULL, 'sid-505', 'not_initiated', NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 314, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (336, NULL, 451, '2014-02-10 18:59:53', '562-555-5555', 518, NULL, 'sid-506', 'not_initiated', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 567 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (451) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (336) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (567, 'connecting', 451, 'connecting', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 336\n csr_id: 314\n :data:\n :owner: true\n', 'Telephony::Events::Connect', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/566/child_detached" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallSid"=>"sid-506", "DialCallStatus"=>"no-answer", "id"=>"566"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 566 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 451 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 567 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (451) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (336) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (567, 'terminated', 451, 'connecting', '2014-02-10 18:59:53', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 336\n csr_id: 314\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:53') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 451 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 451 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_conversations`.`id` = 451 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 451, 'enqueued', '2014-02-10 18:59:53', '--- []\n', 'Telephony::Events::Rona', '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 116ms (Views: 5.0ms | ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:53', 405, 423, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 452, '2014-02-10 18:59:53', '562-555-5555', 519, NULL, 'sid-507', 'in_progress', NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 315, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:53') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (337, NULL, 452, '2014-02-10 18:59:53', '562-555-5555', 520, NULL, 'sid-508', 'not_initiated', NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:53', 316, 'A', 0, NULL, NULL, '8881234567', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `agent_id` = 338, `number` = '8881234567', `updated_at` = '2014-02-10 18:59:53' WHERE `telephony_calls`.`id` = 569  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/568/dial" for 127.0.0.1 at 2014-02-10 11:59:53 -0700 Processing by Telephony::Providers::Twilio::CallsController#dial as HTML Parameters: {"id"=>"568"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 568 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 452 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 452 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 452 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 338 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 406, 424, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 453, '2014-02-10 18:59:54', '562-555-5555', 521, NULL, 'sid-509', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 317, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (339, NULL, 453, '2014-02-10 18:59:54', '562-555-5555', 522, NULL, 'sid-510', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 318, 'A', 0, NULL, NULL, '123-123-1233', 'twilio_client', NULL, 'available', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `agent_id` = 340, `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 571  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/570/dial" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#dial as HTML Parameters: {"id"=>"570"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 570 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 453 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 453 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 453 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 340 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 3.8ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 407, 425, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 454, '2014-02-10 18:59:54', '562-555-5555', 523, NULL, 'sid-511', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 319, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (341, NULL, 454, '2014-02-10 18:59:54', '562-555-5555', 524, NULL, 'sid-512', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES ('other_location', '2014-02-10 18:59:54', 320, 'A', 0, NULL, NULL, '123-123-1233', 'sip', '200', 'available', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.6ms) UPDATE `telephony_calls` SET `agent_id` = 342, `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/572/dial" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#dial as HTML Parameters: {"id"=>"572"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 572 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 454 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 454 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 454 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 342 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 408, 426, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 455, '2014-02-10 18:59:54', '562-555-5555', 525, NULL, 'sid-513', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 321, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (343, NULL, 455, '2014-02-10 18:59:54', '562-555-5555', 526, NULL, 'sid-514', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 455 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 455 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (455) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (343) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 455, 'leaving_voicemail', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 343\n csr_id: 321\n :data:\n :agent_name: \n :agent_ext: \n :agent_type: A\n', 'Telephony::Events::LeaveVoicemail', '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 322, 'A', 0, NULL, NULL, '8881234567', 'phone', NULL, 'not_available', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_calls` SET `agent_id` = 344, `number` = '8881234567', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 575  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/574/dial" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#dial as HTML Parameters: {"id"=>"574"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 574 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 455 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 455 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 455 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 344 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 409, 427, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 456, '2014-02-10 18:59:54', '562-555-5555', 527, NULL, 'sid-515', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 323, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (345, NULL, 456, '2014-02-10 18:59:54', '562-555-5555', 528, NULL, 'sid-516', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 324, 'A', 0, NULL, NULL, '8881234567', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_calls` SET `agent_id` = 346, `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/576/dial" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#dial as HTML Parameters: {"id"=>"576"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 576 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 456 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 456 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 456 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 346 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 4.2ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 325, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 410, 428, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (347, NULL, 457, '2014-02-10 18:59:54', '562-555-5555', 529, NULL, 'sid-517', 'connecting', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/578/done" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#done as HTML Parameters: {"CallStatus"=>"no-answer", "id"=>"578"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 578 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 457 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 578 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 457 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 457 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (457) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (347) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (578, 'terminated', 457, 'initiated', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 347\n csr_id: 325\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:54') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 457 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 457 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 457 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 457 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (457) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (347) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 457, 'terminated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 35ms (Views: 3.1ms | ActiveRecord: 5.2ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 578 LIMIT 1  (0.1ms) ROLLBACK  (11.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 326, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 411, 429, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (348, NULL, 458, '2014-02-10 18:59:54', '562-555-5555', 530, NULL, 'sid-518', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/579/done" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#done as HTML Parameters: {"CallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"579"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 579 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 458 LIMIT 1 FOR UPDATE SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (579, '2014-02-10 18:59:54', NULL, 0, '2014-02-10 18:59:54', 'Telephony::Recording', '2014-02-10 18:59:54', 'recording_url')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:54', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 579 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 458 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 458 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (458) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (348) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (579, 'terminated', 458, 'initiated', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 348\n csr_id: 326\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 458 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 458 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 458 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 458 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (458) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (348) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 458, 'terminated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.1ms | ActiveRecord: 5.6ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 579 LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 579 ORDER BY `telephony_playables`.`id` DESC LIMIT 1 Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 579 ORDER BY `telephony_playables`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 327, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 412, 430, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (349, NULL, 459, '2014-02-10 18:59:54', '562-555-5555', 531, NULL, 'sid-519', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/580/done" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#done as HTML Parameters: {"CallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"580"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 580 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 459 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (580, '2014-02-10 18:59:54', NULL, 0, '2014-02-10 18:59:54', 'Telephony::Recording', '2014-02-10 18:59:54', 'recording_url')  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:54', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 580 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 459 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 459 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (459) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (349) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (580, 'terminated', 459, 'initiated', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 349\n csr_id: 327\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 459 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 459 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 459 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 459 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (459) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (349) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 459, 'terminated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 36ms (Views: 0.9ms | ActiveRecord: 5.5ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 580 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 328, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 413, 431, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (350, NULL, 460, '2014-02-10 18:59:54', '562-555-5555', 532, NULL, 'sid-520', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/581/done" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#done as HTML Parameters: {"CallStatus"=>"completed", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"581"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 581 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 460 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (581, '2014-02-10 18:59:54', NULL, 0, '2014-02-10 18:59:54', 'Telephony::Recording', '2014-02-10 18:59:54', 'recording_url')  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:54', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 581 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 460 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 460 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (460) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (350) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (581, 'terminated', 460, 'initiated', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 350\n csr_id: 328\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 460 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 460 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 460 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 460 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (460) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (350) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 460, 'terminated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 40ms (Views: 0.9ms | ActiveRecord: 5.4ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 581 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 329, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 414, 432, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (351, NULL, 461, '2014-02-10 18:59:54', '562-555-5555', 533, NULL, 'sid-521', 'terminated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/582/done" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#done as HTML Parameters: {"CallStatus"=>"no-answer", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"0", "id"=>"582"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 582 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 461 LIMIT 1 FOR UPDATE SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (582, '2014-02-10 18:59:54', NULL, 0, '2014-02-10 18:59:54', 'Telephony::Recording', '2014-02-10 18:59:54', 'recording_url')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.3ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 582 LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 582 ORDER BY `telephony_playables`.`id` DESC LIMIT 1 Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` = 582 ORDER BY `telephony_playables`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 330, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 331, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 415, 433, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (352, NULL, 462, '2014-02-10 18:59:54', '562-555-5555', 534, NULL, 'sid-522', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 462, '2014-02-10 18:59:54', '562-555-5555', 535, NULL, 'sid-523', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (353, NULL, 462, '2014-02-10 18:59:54', '562-555-5555', 536, NULL, 'sid-524', 'connecting', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 462 LIMIT 1 Started POST "/zestphone/providers/twilio/calls/583/join_conference" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#join_conference as HTML Parameters: {"id"=>"583"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 583 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.6ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 462 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 583 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 462 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 462 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (462) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (352, 353) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (583, 'in_conference', 462, 'in_progress', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 352\n csr_id: 330\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:54') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 462 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 462 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 352 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 353 LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 352 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 2.9ms | ActiveRecord: 4.6ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 583 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 332, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 333, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 416, 434, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (354, NULL, 463, '2014-02-10 18:59:54', '562-555-5555', 537, NULL, 'sid-525', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 463, '2014-02-10 18:59:54', '562-555-5555', 538, NULL, 'sid-526', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (355, NULL, 463, '2014-02-10 18:59:54', '562-555-5555', 539, NULL, 'sid-527', 'connecting', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 463 LIMIT 1 Started POST "/zestphone/providers/twilio/calls/586/join_conference" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#join_conference as HTML Parameters: {"id"=>"586"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 586 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 463 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 586 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 463 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 463 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (463) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (354, 355) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (586, 'in_conference', 463, 'in_progress', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 354\n csr_id: 332\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:54') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 463 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 463 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 354 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 355 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 354 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 27ms (Views: 2.8ms | ActiveRecord: 4.4ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 586 LIMIT 1  (0.1ms) ROLLBACK  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 334, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 335, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 417, 435, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (356, NULL, 464, '2014-02-10 18:59:54', '562-555-5555', 540, NULL, 'sid-528', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 464, '2014-02-10 18:59:54', '562-555-5555', 541, NULL, 'sid-529', 'in_progress', NULL, '2014-02-10 18:59:54') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (357, NULL, 464, '2014-02-10 18:59:54', '562-555-5555', 542, NULL, 'sid-530', 'connecting', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 464 LIMIT 1 Started POST "/zestphone/providers/twilio/calls/589/join_conference" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#join_conference as HTML Parameters: {"id"=>"589"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 589 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 464 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 589 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 464 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 464 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (464) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (356, 357) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (589, 'in_conference', 464, 'in_progress', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 356\n csr_id: 334\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:54') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 464 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 464 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 356 LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 357 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 356 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 3.4ms | ActiveRecord: 5.0ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 589 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 464 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 418, 436, NULL, 'initiating_resume', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 336, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (358, NULL, 465, '2014-02-10 18:59:54', '562-555-5555', 543, NULL, 'sid-531', 'in_conference', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 465, '2014-02-10 18:59:54', '562-555-5555', 544, NULL, 'sid-532', 'in_progress_hold', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/593/join_conference" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#join_conference as HTML Parameters: {"id"=>"593"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 593 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 465 LIMIT 1 FOR UPDATE  (0.3ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 593 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 465 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 465 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (465) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (358) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (593, 'in_conference', 465, 'initiating_resume', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Conference', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 465 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 465 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 358 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 465 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 465 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (465) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (358) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 465, 'in_progress', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 358\n csr_id: 336\n', 'Telephony::Events::CompleteResume', '2014-02-10 18:59:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.6ms | ActiveRecord: 5.4ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 465 LIMIT 1  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 419, 437, NULL, 'initiating_hold', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:54', 337, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (359, NULL, 466, '2014-02-10 18:59:54', '562-555-5555', 545, NULL, 'sid-533', 'in_progress', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 466, '2014-02-10 18:59:54', '562-555-5555', 546, NULL, 'sid-534', 'in_progress_hold', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/594/join_conference" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#join_conference as HTML Parameters: {"id"=>"594"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 594 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 466 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `state` = 'in_conference', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 594 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 466 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 466 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (466) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (359) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (594, 'in_conference', 466, 'initiating_hold', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 359\n csr_id: 337\n :data:\n :owner: true\n', 'Telephony::Events::Conference', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 466 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 466 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 359 LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress_hold', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 466 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 466 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (466) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (359) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 466, 'in_progress_hold', '2014-02-10 18:59:54', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 359\n csr_id: 337\n', 'Telephony::Events::CompleteHold', '2014-02-10 18:59:54') Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 359 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 43ms (Views: 3.6ms | ActiveRecord: 5.9ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 466 LIMIT 1  (0.1ms) ROLLBACK  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 420, 438, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 467, '2014-02-10 18:59:54', '562-555-5555', 547, NULL, 'sid-535', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/596/leave_queue" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#leave_queue as HTML Parameters: {"QueueResult"=>"hangup", "id"=>"596"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 596 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE `telephony_conversations`.`id` = 467 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:54', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 596 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 467 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 467 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (467) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (596, 'terminated', 467, 'initiated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 467 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 467 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_conversations`.`id` = 467 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 467 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (467) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 467, 'terminated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 29ms (ActiveRecord: 4.5ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 596 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:54', 421, 439, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 468, '2014-02-10 18:59:54', '562-555-5555', 548, NULL, 'sid-536', 'not_initiated', NULL, '2014-02-10 18:59:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/597/leave_queue" for 127.0.0.1 at 2014-02-10 11:59:54 -0700 Processing by Telephony::Providers::Twilio::CallsController#leave_queue as HTML Parameters: {"QueueResult"=>"error", "id"=>"597"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 597 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE `telephony_conversations`.`id` = 468 LIMIT 1 FOR UPDATE  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:54', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:54' WHERE `telephony_calls`.`id` = 597 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 468 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 468 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (468) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (597, 'terminated', 468, 'initiated', '2014-02-10 18:59:54', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:54') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 468 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 468 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 468 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 468 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (468) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 468, 'terminated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 30ms (ActiveRecord: 4.6ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 597 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 422, 440, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 469, '2014-02-10 18:59:55', '562-555-5555', 549, NULL, 'sid-537', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/598/leave_queue" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::CallsController#leave_queue as HTML Parameters: {"QueueResult"=>"redirected", "id"=>"598"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 598 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` WHERE `telephony_conversations`.`id` = 469 LIMIT 1 FOR UPDATE  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 4ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 338, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 423, 441, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (360, NULL, 470, '2014-02-10 18:59:55', '562-555-5555', 550, NULL, 'sid-538', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 470, '2014-02-10 18:59:55', '562-555-5555', 551, NULL, 'sid-539', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/599/connect" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::CallsController#connect as HTML Parameters: {"id"=>"599"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 599 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 470 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 470 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 470 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:55', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 599 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 470 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (470) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (360) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (599, 'in_progress', 470, 'initiated', '2014-02-10 18:59:55', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 360\n csr_id: 338\n :data:\n :owner: true\n', 'Telephony::Events::Answer', '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 600 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 470 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 470 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (470) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (360) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (600, 'connecting', 470, 'initiated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 99ms (Views: 5.3ms | ActiveRecord: 5.3ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 600 LIMIT 1  (0.2ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 339, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 424, 442, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (361, NULL, 471, '2014-02-10 18:59:55', '562-555-5555', 552, NULL, 'sid-540', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 471, '2014-02-10 18:59:55', '562-555-5555', 553, NULL, 'sid-541', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/601/connect" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::CallsController#connect as HTML Parameters: {"id"=>"601"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 601 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 471 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 471 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 471 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:55', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 601 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 471 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (471) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (361) SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (601, 'in_progress', 471, 'initiated', '2014-02-10 18:59:55', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 361\n csr_id: 339\n :data:\n :owner: true\n', 'Telephony::Events::Answer', '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 602 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 471 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 471 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (471) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (361) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (602, 'connecting', 471, 'initiated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:55')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 40ms (Views: 2.5ms | ActiveRecord: 5.2ms)  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 340, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 425, 443, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (362, NULL, 472, '2014-02-10 18:59:55', '562-555-5555', 554, NULL, 'sid-542', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 472, '2014-02-10 18:59:55', '562-555-5555', 555, NULL, 'sid-543', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/603/connect" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::CallsController#connect as HTML Parameters: {"id"=>"603"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 603 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 472 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 472 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 472 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:55', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 603 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 472 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (472) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (362) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (603, 'in_progress', 472, 'initiated', '2014-02-10 18:59:55', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 362\n csr_id: 340\n :data:\n :owner: true\n', 'Telephony::Events::Answer', '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 604 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 472 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 472 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (472) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (362) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (604, 'connecting', 472, 'initiated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.0ms | ActiveRecord: 5.4ms)  (0.1ms) ROLLBACK  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 426, 444, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 473, '2014-02-10 18:59:55', '562-555-5555', 556, NULL, 'sid-544', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 341, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (363, NULL, 473, '2014-02-10 18:59:55', '562-555-5555', 557, NULL, 'sid-545', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=341" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-544", "csr_id"=>"341"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-544' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 341 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 473 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 473 AND `telephony_calls`.`agent_id` = 363 ORDER BY id LIMIT 1 Completed 200 OK in 11ms (Views: 3.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 427, 445, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 474, '2014-02-10 18:59:55', '562-555-5555', 558, NULL, 'sid-546', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 342, 'A', 0, NULL, NULL, '222-333-4444', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (364, NULL, 474, '2014-02-10 18:59:55', '562-555-5555', 559, NULL, 'sid-547', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=342" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-546", "csr_id"=>"342"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-546' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 342 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 474 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 474 AND `telephony_calls`.`agent_id` = 364 ORDER BY id LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 364 LIMIT 1 Completed 200 OK in 10ms (Views: 3.7ms | ActiveRecord: 1.7ms) Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 474 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 474 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 474 ORDER BY id DESC LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 364 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 428, 446, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 475, '2014-02-10 18:59:55', '562-555-5555', 560, NULL, 'sid-548', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 343, 'A', 0, NULL, NULL, '222-333-4444', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (365, NULL, 475, '2014-02-10 18:59:55', '562-555-5555', 561, NULL, 'sid-549', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=343" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-548", "csr_id"=>"343"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-548' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 343 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 475 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 475 AND `telephony_calls`.`agent_id` = 365 ORDER BY id LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 365 LIMIT 1 Completed 200 OK in 11ms (Views: 3.8ms | ActiveRecord: 1.7ms) Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 475 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 475 ORDER BY id DESC LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 429, 447, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 476, '2014-02-10 18:59:55', '562-555-5555', 562, NULL, 'sid-550', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 344, 'A', 0, NULL, NULL, '222-333-4444', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (366, NULL, 476, '2014-02-10 18:59:55', '562-555-5555', 563, NULL, 'sid-551', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=344" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-550", "csr_id"=>"344"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-550' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 344 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 476 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 476 AND `telephony_calls`.`agent_id` = 366 ORDER BY id LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 366 LIMIT 1 Completed 200 OK in 10ms (Views: 3.7ms | ActiveRecord: 1.7ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 476 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 476 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 366 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('caller_id', 'outbound', '2014-02-10 18:59:55', 430, 448, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 477, '2014-02-10 18:59:55', '562-555-5555', 564, NULL, 'sid-552', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:55', 345, 'A', 0, NULL, NULL, '123-123-1233', 'twilio_client', NULL, 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (367, NULL, 477, '2014-02-10 18:59:55', '562-555-5555', 565, NULL, 'sid-553', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=345" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-552", "csr_id"=>"345"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-552' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 345 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 477 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 477 AND `telephony_calls`.`agent_id` = 367 ORDER BY id LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 367 LIMIT 1 Completed 200 OK in 10ms (Views: 3.2ms | ActiveRecord: 1.7ms) Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 477 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 477 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 367 LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('caller_id', 'outbound', '2014-02-10 18:59:55', 431, 449, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 478, '2014-02-10 18:59:55', '562-555-5555', 566, NULL, 'sid-554', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES ('other_location', '2014-02-10 18:59:55', 346, 'A', 0, NULL, NULL, '123-123-1233', 'sip', '200', 'offline', 0, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (368, NULL, 478, '2014-02-10 18:59:55', '562-555-5555', 567, NULL, 'sid-555', 'connecting', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/connect?csr_id=346" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#connect as HTML Parameters: {"CallSid"=>"sid-554", "csr_id"=>"346"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`sid` = 'sid-554' LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 346 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 478 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 478 AND `telephony_calls`.`agent_id` = 368 ORDER BY id LIMIT 1 Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 368 LIMIT 1 Completed 200 OK in 11ms (Views: 4.1ms | ActiveRecord: 1.7ms) Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 478 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 478 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 368 LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations` Started POST "/zestphone/providers/twilio/inbound_calls" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#create as HTML Parameters: {"From"=>"555-555-1234", "To"=>"555-555-1235"} Telephony::BlacklistedNumber Exists (0.3ms) SELECT 1 AS one FROM `telephony_blacklisted_numbers` WHERE `telephony_blacklisted_numbers`.`number` = '5555551234' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('555-555-1235', 'inbound', '2014-02-10 18:59:55', NULL, NULL, '555-555-1235', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 479 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 479, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:55') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 479, '2014-02-10 18:59:55', '555-555-1234', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 617 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 479 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 479 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (479) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (617, 'connecting', 479, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:55', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 617 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 479 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (479) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (617, 'in_progress', 479, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 3.2ms | ActiveRecord: 6.2ms)  (0.1ms) ROLLBACK  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Started POST "/zestphone/providers/twilio/inbound_calls" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#create as HTML Parameters: {"From"=>"555-555-1234", "To"=>"555-555-1235"} Telephony::BlacklistedNumber Exists (0.3ms) SELECT 1 AS one FROM `telephony_blacklisted_numbers` WHERE `telephony_blacklisted_numbers`.`number` = '5555551234' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('555-555-1235', 'inbound', '2014-02-10 18:59:55', NULL, NULL, '555-555-1235', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 480 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 480, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:55') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 480, '2014-02-10 18:59:55', '555-555-1234', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 618 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 480 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 480 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (480) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (618, 'connecting', 480, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `connected_at` = '2014-02-10 18:59:55', `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 618 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 480 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (480) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (618, 'in_progress', 480, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Answer', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.4ms | ActiveRecord: 4.5ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started POST "/zestphone/providers/twilio/inbound_calls" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#create as HTML Parameters: {"From"=>"555-555-1234", "To"=>"555-555-1235"} Telephony::BlacklistedNumber Exists (0.3ms) SELECT 1 AS one FROM `telephony_blacklisted_numbers` WHERE `telephony_blacklisted_numbers`.`number` = '5555551234' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('555-555-1235', 'inbound', '2014-02-10 18:59:55', NULL, NULL, '555-555-1235', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 481 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 481, 'terminated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::PlayClosedGreeting', '2014-02-10 18:59:55') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 481, '2014-02-10 18:59:55', '555-555-1234', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:55', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 619 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 481 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 481 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (481) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (619, 'terminated', 481, 'terminated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 481 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 481 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 33ms (Views: 3.0ms | ActiveRecord: 3.9ms)  (0.1ms) ROLLBACK  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_blacklisted_numbers` (`created_at`, `number`, `updated_at`) VALUES ('2014-02-10 18:59:55', '5555551234', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#create as HTML Parameters: {"From"=>"555-555-1234", "To"=>"555-555-1235"} Telephony::BlacklistedNumber Exists (0.4ms) SELECT 1 AS one FROM `telephony_blacklisted_numbers` WHERE `telephony_blacklisted_numbers`.`number` = '5555551234' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES ('555-555-1235', 'inbound', '2014-02-10 18:59:55', NULL, NULL, '555-555-1235', 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55') SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 482, '2014-02-10 18:59:55', '555-555-1234', NULL, NULL, NULL, 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 620 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 482 LIMIT 1 SQL (0.4ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (620, 'terminated', 482, 'initiated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Reject', '2014-02-10 18:59:55') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 482 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 482 ORDER BY id  (9.8ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 482 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 482 LIMIT 1 Telephony::Call Load (0.5ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (482) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 482, 'terminated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55')  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 50ms (Views: 4.1ms | ActiveRecord: 14.8ms)  (13.2ms) ROLLBACK  (11.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 432, 450, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 483, '2014-02-10 18:59:55', '562-555-5555', 568, NULL, 'sid-556', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 483 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 483, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/483/enqueue" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#enqueue as HTML Parameters: {"CallStatus"=>"completed", "id"=>"483"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 483 LIMIT 1 FOR UPDATE Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 483 ORDER BY id LIMIT 1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:55', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 621 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 483 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 483 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (483) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (621, 'terminated', 483, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 483 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 483 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 483 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 483 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (483) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 483, 'terminated', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 28ms (Views: 0.8ms | ActiveRecord: 4.4ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 621 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 433, 451, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 484, '2014-02-10 18:59:55', '562-555-5555', 569, NULL, 'sid-557', 'not_initiated', NULL, '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_conversations`.`id` = 484 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 484, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/484/enqueue" for 127.0.0.1 at 2014-02-10 11:59:55 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#enqueue as HTML Parameters: {"CallStatus"=>"completed", "id"=>"484"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 484 LIMIT 1 FOR UPDATE Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 484 ORDER BY id LIMIT 1  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:55', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:55' WHERE `telephony_calls`.`id` = 622 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 484 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 484 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (484) ORDER BY id SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (622, 'terminated', 484, 'playing_message', '2014-02-10 18:59:55', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:55') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 484 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 484 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 484 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 484 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (484) ORDER BY id SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 484, 'terminated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 115ms (Views: 1.1ms | ActiveRecord: 4.4ms)  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 434, 452, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 485, '2014-02-10 18:59:56', '562-555-5555', 570, NULL, 'sid-558', 'not_initiated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 485 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 485, 'playing_message', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/485/enqueue" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#enqueue as HTML Parameters: {"CallStatus"=>"in-progress", "id"=>"485"}  (0.2ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 485 LIMIT 1 FOR UPDATE Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 485 ORDER BY id LIMIT 1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 485 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 485, 'enqueued', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Enqueue', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 2.3ms | ActiveRecord: 1.5ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 485 LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 435, 453, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 486, '2014-02-10 18:59:56', '562-555-5555', 571, NULL, 'sid-559', 'not_initiated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'playing_message', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 486 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 486, 'playing_message', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::PlayMessage', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/inbound_calls/486/enqueue" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#enqueue as HTML Parameters: {"CallStatus"=>"in-progress", "id"=>"486"}  (0.2ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 486 LIMIT 1 FOR UPDATE Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 486 ORDER BY id LIMIT 1  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'enqueued', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 486 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 486, 'enqueued', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Enqueue', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started GET "/zestphone/providers/twilio/inbound_calls/wait_music" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#wait_music as HTML Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Started GET "/zestphone/providers/twilio/inbound_calls/wait_music" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::InboundCallsController#wait_music as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 436, 454, NULL, 'one_step_transferring', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 487, '2014-02-10 18:59:56', '562-555-5555', 572, NULL, 'sid-560', 'in_progress', NULL, '2014-02-10 18:59:56') SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 347, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56') SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (369, NULL, 487, '2014-02-10 18:59:56', '562-555-5555', 573, NULL, 'sid-561', 'connecting', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/625/child_detached" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"no-answer", "DialCallSid"=>"sid-561", "id"=>"625"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 625 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 487 ORDER BY id  (0.3ms) UPDATE `telephony_calls` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 626 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (487) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (369) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (626, 'terminated', 487, 'one_step_transferring', '2014-02-10 18:59:56', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 369\n csr_id: 347\n', 'Telephony::Events::NoAnswer', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 487 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'leaving_voicemail', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 487 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 487 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (487) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (369) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 487, 'leaving_voicemail', '2014-02-10 18:59:56', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 369\n csr_id: 347\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 369\n csr_id: 347\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailOneStepTransfer', '2014-02-10 18:59:56') Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 369 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 40ms (Views: 2.9ms | ActiveRecord: 6.1ms)  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 348, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 437, 455, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (370, NULL, 488, '2014-02-10 18:59:56', '562-555-5555', 574, NULL, 'sid-562', 'terminated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 488, '2014-02-10 18:59:56', '562-555-5555', 575, NULL, 'sid-563', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 488, '2014-02-10 18:59:56', '562-555-5555', 576, NULL, 'sid-564', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/628/child_detached" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"completed", "DialCallSid"=>"sid-564", "DialCallDuration"=>"1", "id"=>"628"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 628 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 488 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 629 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (488) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (370) SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (629, 'terminated', 488, 'initiated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 488 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 628 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (488) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (370) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (628, 'terminated', 488, 'initiated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 488 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 488 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 488 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (488) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (370) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 488, 'terminated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 51ms (Views: 1.0ms | ActiveRecord: 8.2ms)  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 349, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 438, 456, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (371, NULL, 489, '2014-02-10 18:59:56', '562-555-5555', 577, NULL, 'sid-565', 'terminated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 489, '2014-02-10 18:59:56', '562-555-5555', 578, NULL, 'sid-566', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 489, '2014-02-10 18:59:56', '562-555-5555', 579, NULL, 'sid-567', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/631/child_detached" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::CallsController#child_detached as HTML Parameters: {"DialCallStatus"=>"completed", "DialCallSid"=>"sid-567", "DialCallDuration"=>"1", "id"=>"631"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 631 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 FOR UPDATE Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 489 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 632 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (489) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (371) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (632, 'terminated', 489, 'initiated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 489 ORDER BY id  (0.4ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 631 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (489) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (371) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (631, 'terminated', 489, 'initiated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 489 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 489 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 489 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (489) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (371) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 489, 'terminated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 50ms (Views: 1.0ms | ActiveRecord: 8.3ms) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 632 LIMIT 1  (0.1ms) ROLLBACK  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 350, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 439, 457, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (372, NULL, 490, '2014-02-10 18:59:56', '562-555-5555', 580, NULL, 'sid-568', 'not_initiated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/633/voicemail" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::VoicemailsController#create as HTML Parameters: {"csr_id"=>"1", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"1", "call_id"=>"633"} Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 633 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 490 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (633, '2014-02-10 18:59:56', 1, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'recording_url') Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 633 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 633 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 490 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 490 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (490) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (372) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (633, 'terminated', 490, 'initiated', '2014-02-10 18:59:56', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 372\n csr_id: 350\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 490 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 490 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 490 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 490 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (490) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (372) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 490, 'terminated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 2.2ms | ActiveRecord: 6.0ms) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 633 LIMIT 1 Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 633 LIMIT 1  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 351, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 440, 458, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (373, NULL, 491, '2014-02-10 18:59:56', '562-555-5555', 581, NULL, 'sid-569', 'not_initiated', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/providers/twilio/calls/634/voicemail" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::Providers::Twilio::VoicemailsController#create as HTML Parameters: {"csr_id"=>"1", "RecordingUrl"=>"recording_url", "RecordingDuration"=>"1", "call_id"=>"634"} Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 634 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 491 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (634, '2014-02-10 18:59:56', 1, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'recording_url') Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` = 634 LIMIT 1  (0.3ms) UPDATE `telephony_calls` SET `terminated_at` = '2014-02-10 18:59:56', `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_calls`.`id` = 634 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 491 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 491 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (491) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (373) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (634, 'terminated', 491, 'initiated', '2014-02-10 18:59:56', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 373\n csr_id: 351\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 491 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 491 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'terminated', `updated_at` = '2014-02-10 18:59:56' WHERE `telephony_conversations`.`id` = 491 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 491 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (491) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (373) SQL (0.5ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 491, 'terminated', '2014-02-10 18:59:56', '--- []\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 1.2ms | ActiveRecord: 5.9ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 352, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 441, 459, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 442, 460, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 492, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (374, NULL, 492, '2014-02-10 18:59:56', '562-555-5555', 582, NULL, 'sid-570', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (635, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 492, '2014-02-10 18:59:56', '555-555-1111', 583, NULL, 'sid-571', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (635, '2014-02-10 18:59:56', 15, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/16')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (492, 493) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (492, 493) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (635, 636) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (635, 636) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 374 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 492 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (492) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (374) Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 353, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 443, 461, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 444, 462, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 494, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (375, NULL, 494, '2014-02-10 18:59:56', '562-555-5555', 584, NULL, 'sid-572', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (637, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 494, '2014-02-10 18:59:56', '555-555-1111', 585, NULL, 'sid-573', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (637, '2014-02-10 18:59:56', 16, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/17')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (494, 495) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (494, 495) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (637, 638) Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (637, 638) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 375 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 494 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (494) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (375) Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 354, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 445, 463, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 446, 464, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 496, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (376, NULL, 496, '2014-02-10 18:59:56', '562-555-5555', 586, NULL, 'sid-574', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (639, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 496, '2014-02-10 18:59:56', '555-555-1111', 587, NULL, 'sid-575', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (639, '2014-02-10 18:59:56', 17, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/18')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (496, 497) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (496, 497) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (639, 640) Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (639, 640) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 376 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 496 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (496) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (376) Completed 200 OK in 19ms (Views: 12.8ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 355, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 447, 465, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 448, 466, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 498, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (377, NULL, 498, '2014-02-10 18:59:56', '562-555-5555', 588, NULL, 'sid-576', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (641, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 498, '2014-02-10 18:59:56', '555-555-1111', 589, NULL, 'sid-577', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (641, '2014-02-10 18:59:56', 18, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/19')  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.4ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (498, 499) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (498, 499) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (641, 642) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (641, 642) Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 377 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 498 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (498) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (377) Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 356, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 449, 467, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 450, 468, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 500, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (378, NULL, 500, '2014-02-10 18:59:56', '562-555-5555', 590, NULL, 'sid-578', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (643, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 500, '2014-02-10 18:59:56', '555-555-1111', 591, NULL, 'sid-579', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (643, '2014-02-10 18:59:56', 19, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/20')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.4ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (500, 501) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (500, 501) ORDER BY id Telephony::Recording Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (643, 644) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (643, 644) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 378 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 500 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (500) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (378) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 357, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 451, 469, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 452, 470, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 502, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (379, NULL, 502, '2014-02-10 18:59:56', '562-555-5555', 592, NULL, 'sid-580', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (645, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 502, '2014-02-10 18:59:56', '555-555-1111', 593, NULL, 'sid-581', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (645, '2014-02-10 18:59:56', 20, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (502, 503) Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (502, 503) ORDER BY id Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (645, 646) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (645, 646) Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 379 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 502 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (502) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (379) Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 358, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 453, 471, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:55', 454, 472, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 504, NULL, '2014-02-10 18:59:56', NULL, 'Telephony::Events::Connect', '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (380, NULL, 504, '2014-02-10 18:59:56', '562-555-5555', 594, NULL, 'sid-582', 'not_initiated', NULL, '2014-02-10 18:59:56') SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (647, '2014-02-10 18:59:56', NULL, 5135, NULL, 'Telephony::Recording', '2014-02-10 18:59:56', 'http://example.com')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 504, '2014-02-10 18:59:56', '555-555-1111', 595, NULL, 'sid-583', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (647, '2014-02-10 18:59:56', 21, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:56', 'http://example.com/22')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/conversations/search" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::ConversationsController#search as JS  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`  Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` ORDER BY telephony_conversations.created_at DESC LIMIT 10 OFFSET 0 Telephony::Events::Base Load (0.3ms) SELECT `telephony_conversation_events`.* FROM `telephony_conversation_events` WHERE `telephony_conversation_events`.`conversation_id` IN (504, 505) Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (504, 505) ORDER BY id Telephony::Recording Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Recording') AND `telephony_playables`.`call_id` IN (647, 648) Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`call_id` IN (647, 648) Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 380 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 504 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (504) ORDER BY id Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (380) Completed 200 OK in 18ms (Views: 13.1ms | ActiveRecord: 3.1ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_conversations`   (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:56', 455, 473, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 359, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (381, NULL, 506, '2014-02-10 18:59:56', '562-555-5555', 596, NULL, 'sid-584', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 506, '2014-02-10 18:59:56', '562-555-5555', 597, NULL, 'sid-585', 'in_progress', NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:56', 360, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/conversations/506/transfers" for 127.0.0.1 at 2014-02-10 11:59:56 -0700 Processing by Telephony::TransfersController#create as HTML Parameters: {"transfer_type"=>"one_step", "transfer_id"=>"360", "conversation_id"=>"506"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 506 LIMIT 1 FOR UPDATE Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 360 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 382 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (382, NULL, 506, '2014-02-10 18:59:57', '123-123-1233', 360, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 506 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 506 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (506) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (381, 382) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 506, 'one_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 381\n csr_id: 359\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 382\n csr_id: 360\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:57')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_calls`.`id` = 651 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (651, 'connecting', 506, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:57') Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 506 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 381 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (650, 'in_progress', 506, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:57') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 506 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 506 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 5.9ms) Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 506 LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 456, 474, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 361, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (383, NULL, 507, '2014-02-10 18:59:57', '562-555-5555', 598, NULL, 'sid-586', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 507, '2014-02-10 18:59:57', '562-555-5555', 599, NULL, 'sid-587', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 362, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/conversations/507/transfers" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::TransfersController#create as HTML Parameters: {"transfer_type"=>"one_step", "transfer_id"=>"362", "conversation_id"=>"507"}  (0.2ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 507 LIMIT 1 FOR UPDATE Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 362 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 384 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (384, NULL, 507, '2014-02-10 18:59:57', '123-123-1233', 362, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.5ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 507 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 507 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (507) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (383, 384) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 507, 'one_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 383\n csr_id: 361\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 384\n csr_id: 362\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:57')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_calls`.`id` = 654 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (654, 'connecting', 507, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:57') Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 507 ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 383 LIMIT 1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (653, 'in_progress', 507, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:57') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 507 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 507 ORDER BY id  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 46ms (Views: 0.3ms | ActiveRecord: 6.4ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 457, 475, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 363, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (385, NULL, 508, '2014-02-10 18:59:57', '562-555-5555', 600, NULL, 'sid-588', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 508, '2014-02-10 18:59:57', '562-555-5555', 601, NULL, 'sid-589', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 364, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/conversations/508/transfers" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::TransfersController#create as HTML Parameters: {"transfer_type"=>"one_step", "transfer_id"=>"364", "conversation_id"=>"508"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 508 LIMIT 1 FOR UPDATE Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 364 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 386 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (386, NULL, 508, '2014-02-10 18:59:57', '123-123-1233', 364, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'one_step_transferring', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 508 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 508 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (508) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (385, 386) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 508, 'one_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 385\n csr_id: 363\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 386\n csr_id: 364\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateOneStepTransfer', '2014-02-10 18:59:57')  (0.4ms) UPDATE `telephony_calls` SET `state` = 'connecting', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_calls`.`id` = 657 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 508 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (657, 'connecting', 508, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::Connect', '2014-02-10 18:59:57') Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 508 ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 385 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 508 LIMIT 1 SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (656, 'in_progress', 508, 'one_step_transferring', '2014-02-10 18:59:57', '--- []\n', 'Telephony::Events::DialAgent', '2014-02-10 18:59:57') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 508 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 508 ORDER BY id  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 6.2ms)  (0.1ms) ROLLBACK  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 458, 476, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 365, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (387, NULL, 509, '2014-02-10 18:59:57', '562-555-5555', 602, NULL, 'sid-590', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 509, '2014-02-10 18:59:57', '562-555-5555', 603, NULL, 'sid-591', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 366, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/conversations/509/transfers" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::TransfersController#create as HTML Parameters: {"transfer_id"=>"366", "conversation_id"=>"509"}  (0.2ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.5ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 FOR UPDATE Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 366 LIMIT 1 Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 388 LIMIT 1 FOR UPDATE SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (388, NULL, 509, '2014-02-10 18:59:57', '123-123-1233', 366, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 509 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (509) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (387, 388) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 509, 'two_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 387\n csr_id: 365\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 388\n csr_id: 366\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:57') Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 509 ORDER BY id Failed to two-step transfer: a failure message  (0.3ms) UPDATE `telephony_calls` SET `created_at` = '2014-02-10 18:59:57', `updated_at` = '2014-02-10 18:59:57', `terminated_at` = '2014-02-10 18:59:57', `state` = 'terminated' WHERE `telephony_calls`.`id` = 660 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (509) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (387, 388) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (660, 'terminated', 509, 'two_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 388\n csr_id: 366\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:57') Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 509 ORDER BY id  (0.4ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 509 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 509 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (509) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (387, 388) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 509, 'in_progress', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 387\n csr_id: 365\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 388\n csr_id: 366\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 56ms (Views: 0.4ms | ActiveRecord: 8.0ms)  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 459, 477, NULL, 'in_progress', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 367, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'offline', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (389, NULL, 510, '2014-02-10 18:59:57', '562-555-5555', 604, NULL, 'sid-592', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 510, '2014-02-10 18:59:57', '562-555-5555', 605, NULL, 'sid-593', 'in_progress', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_agents` (`call_center_name`, `created_at`, `csr_id`, `csr_type`, `generate_caller_id`, `name`, `phone_ext`, `phone_number`, `phone_type`, `sip_number`, `status`, `timestamp_of_last_presence_event`, `transferable_agents`, `updated_at`) VALUES (NULL, '2014-02-10 18:59:57', 368, 'A', 0, NULL, NULL, '123-123-1233', 'phone', NULL, 'available', 0, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/zestphone/conversations/510/transfers" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::TransfersController#create as HTML Parameters: {"transfer_id"=>"368", "conversation_id"=>"510"}  (0.1ms) SAVEPOINT active_record_1 Telephony::Conversation Load (0.4ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` INNER JOIN `telephony_calls` ON `telephony_calls`.`conversation_id` = `telephony_conversations`.`id` INNER JOIN `telephony_agents` ON `telephony_agents`.`id` = `telephony_calls`.`agent_id` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 FOR UPDATE Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`csr_id` = 368 LIMIT 1 Telephony::Agent Load (0.2ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` = 390 LIMIT 1 FOR UPDATE SQL (0.4ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (390, NULL, 510, '2014-02-10 18:59:57', '123-123-1233', 368, 'csr', NULL, 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.5ms) UPDATE `telephony_conversations` SET `state` = 'two_step_transferring', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 510 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (510) ORDER BY id Telephony::Agent Load (0.4ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (389, 390) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 510, 'two_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 389\n csr_id: 367\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 390\n csr_id: 368\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::InitiateTwoStepTransfer', '2014-02-10 18:59:57') Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 510 ORDER BY id Failed to two-step transfer: a failure message  (0.3ms) UPDATE `telephony_calls` SET `created_at` = '2014-02-10 18:59:57', `updated_at` = '2014-02-10 18:59:57', `terminated_at` = '2014-02-10 18:59:57', `state` = 'terminated' WHERE `telephony_calls`.`id` = 663 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (510) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (389, 390) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (663, 'terminated', 510, 'two_step_transferring', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 390\n csr_id: 368\n', 'Telephony::Events::Terminate', '2014-02-10 18:59:57') Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` = 510 ORDER BY id  (0.3ms) UPDATE `telephony_conversations` SET `state` = 'in_progress', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_conversations`.`id` = 510 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 510 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`conversation_id` IN (510) ORDER BY id Telephony::Agent Load (0.3ms) SELECT `telephony_agents`.* FROM `telephony_agents` WHERE `telephony_agents`.`id` IN (389, 390) SQL (0.3ms) INSERT INTO `telephony_conversation_events` (`call_id`, `call_state`, `conversation_id`, `conversation_state`, `created_at`, `message_data`, `type`, `updated_at`) VALUES (NULL, NULL, 510, 'in_progress', '2014-02-10 18:59:57', '---\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 389\n csr_id: 367\n :data:\n :transferrer: true\n :agent_name: \n :agent_ext: \n :agent_type: A\n- :agent: !ruby/object:Telephony::Agent\n attributes:\n id: 390\n csr_id: 368\n :data:\n :transferrer: false\n :agent_name: \n :agent_ext: \n :agent_type: A\n :owner: false\n', 'Telephony::Events::FailTwoStepTransfer', '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 55ms (Views: 0.2ms | ActiveRecord: 7.8ms)  (0.1ms) ROLLBACK  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 460, 478, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 511, '2014-02-10 18:59:57', '562-555-5555', 606, NULL, 'sid-594', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (664, '2014-02-10 18:59:57', 22, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/23')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 461, 479, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 512, '2014-02-10 18:59:57', '562-555-5555', 607, NULL, 'sid-595', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (665, '2014-02-10 18:59:57', 23, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 462, 480, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 513, '2014-02-10 18:59:57', '562-555-5555', 608, NULL, 'sid-596', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (666, '2014-02-10 18:59:57', 24, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/25')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/voicemails" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::VoicemailsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') ORDER BY created_at DESC LIMIT 10 OFFSET 0 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 664 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 511 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 665 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 512 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 666 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 513 LIMIT 1 Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 2.6ms)  (0.3ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail')  (0.3ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail')  (0.1ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 463, 481, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 514, '2014-02-10 18:59:57', '562-555-5555', 609, NULL, 'sid-597', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (667, '2014-02-10 18:59:57', 25, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/26')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 464, 482, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 515, '2014-02-10 18:59:57', '562-555-5555', 610, NULL, 'sid-598', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (668, '2014-02-10 18:59:57', 26, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/27')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 465, 483, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 516, '2014-02-10 18:59:57', '562-555-5555', 611, NULL, 'sid-599', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (669, '2014-02-10 18:59:57', 27, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/28')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_playables` SET `created_at` = '2013-11-02 17:59:57', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_playables` SET `created_at` = '2014-02-07 18:59:57', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `telephony_playables` SET `created_at` = '2014-01-21 18:59:57', `updated_at` = '2014-02-10 18:59:57' WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`id` = 64  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/voicemails" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::VoicemailsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') Telephony::Voicemail Load (0.3ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') ORDER BY created_at DESC LIMIT 10 OFFSET 0 Telephony::Call Load (0.4ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 668 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 515 LIMIT 1 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 669 LIMIT 1 Telephony::Conversation Load (0.2ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 516 LIMIT 1 Telephony::Call Load (0.2ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 667 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 514 LIMIT 1 Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 466, 484, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 517, '2014-02-10 18:59:57', '562-555-5555', 612, NULL, 'sid-600', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (670, '2014-02-10 18:59:57', 28, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/29')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 467, 485, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 518, '2014-02-10 18:59:57', '562-555-5555', 613, NULL, 'sid-601', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (671, '2014-02-10 18:59:57', 29, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_conversations` (`caller_id`, `conversation_type`, `created_at`, `initiator_id`, `loan_id`, `number`, `state`, `transfer_ext`, `transfer_id`, `transfer_status`, `transfer_to`, `transfer_type`, `transferee_id`, `updated_at`) VALUES (NULL, 'outbound', '2014-02-10 18:59:57', 468, 486, NULL, 'initiated', NULL, NULL, NULL, NULL, NULL, NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `telephony_calls` (`agent_id`, `connected_at`, `conversation_id`, `created_at`, `number`, `participant_id`, `participant_type`, `sid`, `state`, `terminated_at`, `updated_at`) VALUES (NULL, NULL, 519, '2014-02-10 18:59:57', '562-555-5555', 614, NULL, 'sid-602', 'not_initiated', NULL, '2014-02-10 18:59:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `telephony_playables` (`call_id`, `created_at`, `csr_id`, `duration`, `start_time`, `type`, `updated_at`, `url`) VALUES (672, '2014-02-10 18:59:57', 30, 1, NULL, 'Telephony::Voicemail', '2014-02-10 18:59:57', 'http://example.com/31')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/zestphone/voicemails?csr_id=28" for 127.0.0.1 at 2014-02-10 11:59:57 -0700 Processing by Telephony::VoicemailsController#index as HTML Parameters: {"csr_id"=>"28"}  (0.4ms) SELECT COUNT(*) FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`csr_id` = 28 Telephony::Voicemail Load (0.4ms) SELECT `telephony_playables`.* FROM `telephony_playables` WHERE `telephony_playables`.`type` IN ('Telephony::Voicemail') AND `telephony_playables`.`csr_id` = 28 ORDER BY created_at DESC LIMIT 10 OFFSET 0 Telephony::Call Load (0.3ms) SELECT `telephony_calls`.* FROM `telephony_calls` WHERE `telephony_calls`.`id` = 670 LIMIT 1 Telephony::Conversation Load (0.3ms) SELECT `telephony_conversations`.* FROM `telephony_conversations` WHERE `telephony_conversations`.`id` = 517 LIMIT 1 Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.7ms) ROLLBACK