I have the following scenario here:
I tried to:
The solution I found it was just to return a voice response with Dial().Application(): https://www.twilio.com/docs/voice/twiml/dial/application#basic-usage
app = VoiceResponse().dial().application(application_sid='AP****00',
copy_parent_to=True,
customer_id=phone.customer_id)
# your additional data here to bind the original callsid
app.parameter(name='OriginalCallSid', value=data.CallSid)
app.parameter(name='OriginalAccountSid', value=data.AccountSid)
You've got to:
Set an application event handler on the app settings in order to enqueue the call on your new account.
Allow the application to receive calls from other apps.
The app call back will provide all that data on the body post.
Hope that helps.