There are two ways to record an inbound call.
Using the Record API
The Record API can record live calls at any time during the call. The API will return a URL with a file containing the audio recording. For more details, refer to this guide: https://www.plivo.com/docs/api/call/record/#record-a-call
To get the call_UUID of the live call needed to record the inbound call, please use these APIs.
Using Record XML
The Record XML can be used to record the inbound call by having the XML appended in the answer_URL of the application attached to the Plivo DID (your Plivo phone number).
- During an inbound call to the Plivo DID, the answer_URL of the application attached to DID will be executed. The answer_URL should contain the following XML.
<Record action="http://foo.com/get_recording/" startOnDialAnswer="true" redirect="false" />
For more details, please refer to this guide: https://www.plivo.com/docs/xml/record/#record-a-complete-call-session