plivo/plivo — Issue #66: REST API Initiated Call sending wrong from
Author: mattwilliamson
Created: 2011-11-22 16:12:02+00:00
State: open

I am initiating an outbound call through the rest api and the hangup callback is ok, but the answer callback is sending the destination address as the source address.

MY APP:

REST API Call params: {'To': u'+1503888xxxx', 'HangupUrl': 'http://localhost:81/_plivo/outgoing/hung_up', 'From': u'+1949266xxxx', 'Gateways': 'sofia/gateway/sip1/', 'RingUrl': '', 'TimeLimit': '60', 'AnswerUrl': 'http://localhost:81/_plivo/outgoing/answered', 'ExtraDialString': u'media_bug_answer_req=true,sip_h_X-Carrier-Prefix=74278017,sip_h_X-Carrier=sip.flowroute.com', 'CallerName': ''}
2011-11-22 10:51:45,880 [DEBUG] root: Pivo REST result: {u'RequestUUID': u'e179b94a-1521-11e1-825a-1231381bdb21', u'Message': u'Call Request Executed', u'Success': True}

PLIVO-REST:

2011-11-22 10:20:41,713 plivo-outbound[18830]: INFO: (446) Fetching POST http://localhost:81/_plivo/outgoing/answered with {'Direction': 'outbound', 'From': '1503888xxxx', 'ALegUUID': '9e04486c-0faf-4f08-aa85-0457f14f9156', 'CallerName': 'Outbound Call', 'ScheduledHangupId': '857d96ba-151d-11e1-825a-1231381bdb21', 'To': '1503888xxxx', 'ALegRequestUUID': '857d92a0-151d-11e1-825a-1231381bdb21', 'CallUUID': '9e04486c-0faf-4f08-aa85-0457f14f9156', 'CallStatus': 'in-progress'}