- Code: Select all
2012-06-29 11:55:55,658 plivo-rest[8590]: INFO: Fetching POST http://192.168.1.72:8008/api/v1/hangupcall/ with {'variable_waitmsec': u'0', 'variable_progress_mediamsec': u'4940', 'variable_billmsec': u'23780', 'variable_user_context': '', 'To': u'19899920847', 'variable_progressmsec': u'0', 'From': u'8888888888', 'variable_plivo_app': u'true', 'CallStatus': 'completed', 'variable_mduration': u'37800', 'Channel-Read-Codec-Bit-Rate': u'64000', 'variable_call_uuid': u'd27c1fbc-c202-11e1-9a57-579c4d6799f5', 'variable_hangup_cause': u'NORMAL_CLEARING', 'variable_answersec': u'14', 'variable_plivo_answer_url': u'http://192.168.1.72:8008/api/v1/answercall/', 'variable_caller_id': u'"Outbound Call" <19899920847>', 'HangupCause': u'NORMAL_CLEARING', 'Direction': 'outbound', 'variable_origination_caller_id_number': u'8888888888', 'variable_direction': u'outbound', 'variable_answermsec': u'14020', 'CallUUID': u'd27c1fbc-c202-11e1-9a57-579c4d6799f5', 'ALegRequestUUID': u'd1e3d78e-c202-11e1-8ea4-001111c2463c', 'variable_hangup_cause_q850': u'16', 'variable_progresssec': u'0', 'variable_answer_uepoch': u'1340985331551575', 'ALegUUID': u'd27c1fbc-c202-11e1-9a57-579c4d6799f5', 'variable_answer_epoch': u'1340985331', 'variable_waitsec': u'0', 'variable_billsec': u'24', 'variable_duration': u'38', 'RequestUUID': u'd1e3d78e-c202-11e1-8ea4-001111c2463c', 'variable_endpoint_disposition': u'ANSWER'}
2012-06-29 11:56:17,452 plivo-rest[8590]: ERROR: Sending to POST
There is an issue to reach the API.
So first try to check if the API is reachable from your browser http://192.168.1.72:8008/api/v1/hangupcall/
Is 192.168.1.72 the right IP where the web application live ?
Second, check your /usr/share/newfies/settings_local.py
See the settings API_ALLOWED_IP = ['127.0.0.1', 'localhost']
make sure your IPs is listed there and restart apache.
Yours,
/Areski