I try to call out and I see the answer but call is ended immediately. Please see log beblow:
2012-05-02 15:26:15,257 plivo-rest[1734]: DEBUG: Call try for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f with Gateway sofia/gateway/iCall/
2012-05-02 15:26:15,258 plivo-rest[1734]: DEBUG: spawn_originate: originate {plivo_request_uuid=a1015b3c-9449-11e1-9f29-112d6a25d41f,plivo_answer_url=http://199.21.115.144:8008/api/v1/answercall/,plivo_ring_url=,plivo_hangup_url=http://199.21.115.144:8008/api/v1/hangupcall/,origination_caller_id_number=999999999,bridge_early_media=true,hangup_after_bridge=true,plivo_from=999999999,plivo_to=12818832738,plivo_app=true,absolute_codec_string='PCMA,PCMU',originate_timeout=1800,ignore_early_media=true}sofia/gateway/iCall/12818832738 &socket('127.0.0.1:8084 async full')
2012-05-02 15:26:15,264 plivo-rest[1734]: DEBUG: Waiting Call attempt for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f ...
2012-05-02 15:26:21,848 plivo-rest[1734]: DEBUG: Notify Call success for RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: INFO: Hangup for Outgoing CallUUID 8f269274-9449-11e1-a377-8798684e23eb Completed, HangupCause NORMAL_CLEARING, RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: DEBUG: Call Cleaned up for RequestUUID 8f2635c2-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:21,849 plivo-rest[1734]: INFO: Fetching POST
http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8581', 'variable_billmsec': u'80', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'36540', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'36', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_answermsec': u'36460', 'CallUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'ALegRequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335957981761601', 'ALegUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_answer_epoch': u'1335957981', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'variable_duration': u'36', 'RequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
2012-05-02 15:26:21,866 plivo-rest[1734]: ERROR: Sending to POST
http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'8581', 'variable_answermsec': u'36460', 'variable_user_context': '', 'To': u'12818832579', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_billmsec': u'80', 'variable_mduration': u'36540', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'36', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832579>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_duration': u'36', 'CallUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'ALegRequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335957981761601', 'ALegUUID': u'8f269274-9449-11e1-a377-8798684e23eb', 'variable_answer_epoch': u'1335957981', 'variable_waitsec': u'0', 'variable_billsec': u'0', 'RequestUUID': u'8f2635c2-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
-- Error: HTTP Error 401: UNAUTHORIZED2012-05-02 15:26:22,983 plivo-rest[1734]: DEBUG: Notify Call success (EarlyMedia) for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:22,983 plivo-rest[1734]: INFO: Call Attempt OK for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,015 plivo-rest[1734]: DEBUG: Notify Call success for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: INFO: Hangup for Outgoing CallUUID a102489e-9449-11e1-a37b-8798684e23eb Completed, HangupCause NORMAL_CLEARING, RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: DEBUG: Call Cleaned up for RequestUUID a1015b3c-9449-11e1-9f29-112d6a25d41f
2012-05-02 15:26:53,016 plivo-rest[1734]: INFO: Fetching POST
http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'7700', 'variable_billmsec': u'60', 'variable_user_context': '', 'To': u'12818832738', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'37739', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'37', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832738>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_answermsec': u'37679', 'CallUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'ALegRequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335958012941857', 'ALegUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_answer_epoch': u'1335958012', 'variable_waitsec': u'0', 'variable_billsec': u'1', 'variable_duration': u'38', 'RequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
2012-05-02 15:26:53,023 plivo-rest[1734]: ERROR: Sending to POST
http://199.21.115.144:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'7700', 'variable_answermsec': u'37679', 'variable_user_context': '', 'To': u'12818832738', 'variable_progressmsec': u'0', 'From': u'999999999', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_billmsec': u'60', 'variable_mduration': u'37739', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'37', 'variable_plivo_answer_url': u'http://199.21.115.144:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <12818832738>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'999999999', 'variable_direction': u'outbound', 'variable_duration': u'38', 'CallUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'ALegRequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1335958012941857', 'ALegUUID': u'a102489e-9449-11e1-a37b-8798684e23eb', 'variable_answer_epoch': u'1335958012', 'variable_waitsec': u'0', 'variable_billsec': u'1', 'RequestUUID': u'a1015b3c-9449-11e1-9f29-112d6a25d41f', 'variable_endpoint_disposition': u'ANSWER'}
-- Error: HTTP Error 401: UNAUTHORIZED