Post-Call Webservice - can it include Call_id?
Posted: Tue Apr 23, 2019 10:40 am
We are looking at ways to receive a few additional variables from the result of a call execution. We need this to determine if a given call should be reattempted or not.
I understand that Plum communicates call execution variables in the following ways:
• Post-attempt, via API call to whatever API we define in the “result_url” of the request. Tied to "call_id". Includes status: completed, failed or canceled.
• Post-successful connection, via API call to whatever API we define in the Post-Call Webservice. Can include whatever custom variables were defined during the call. Can include "session_id" and live answer vs. voicemail.
We are hoping to receive the custom variables described in the 2nd bullet point, however, it’s not obvious how we can tie this into the “call_id” which is generated when we queue the call to the API. I’ve looked in the documentation but I don’t see how to retrieve the variable “call_id” and include it in the Post-Call Webservice. Can you help?
I understand that Plum communicates call execution variables in the following ways:
• Post-attempt, via API call to whatever API we define in the “result_url” of the request. Tied to "call_id". Includes status: completed, failed or canceled.
• Post-successful connection, via API call to whatever API we define in the Post-Call Webservice. Can include whatever custom variables were defined during the call. Can include "session_id" and live answer vs. voicemail.
We are hoping to receive the custom variables described in the 2nd bullet point, however, it’s not obvious how we can tie this into the “call_id” which is generated when we queue the call to the API. I’ve looked in the documentation but I don’t see how to retrieve the variable “call_id” and include it in the Post-Call Webservice. Can you help?