Yes, you can record outbound calls at Plivo in two ways: 


Using record API:

The Record API can record live calls at any time during the call and returns the URL of a file containing the audio recording. This API also lets you stop the recording at any point. The ability to initiate and stop recordings can be useful support and sales calls where reviews can help improve business processes.


For more details: https://www.plivo.com/docs/api/call/record/#record-a-call 

To get the callUUID of the live call so as to record the outbound call, you can make use of these APIs


https://www.plivo.com/docs/api/call/#get-all-live-calls

https://www.plivo.com/docs/api/call/#get-details-of-a-live-call 


Using Record XML:

The Record XML can be used to record the outbound call by having the XML appended in the answer_URL of the API call.

For ex: If your call flow is to bridge two numbers or endpoints and then record the call when the second party answers the call, then you will have to follow below steps.


  • API call: ‘to’ attribute will contain Number 1 


{

“from”: ”15551234535”,

“to”:”15551234556”,

“answer_url”:”http://foo.com/answer/

}


  • When this party answers the call then the answer_URL will be executed. The answer_URL should contain below XML.


<Response>    

<Record action="http://foo.com/get_recording/" startOnDialAnswer="true" redirect="false" />    

<Dial>        

<Number>15551234567</Number>    

</Dial>

</Response>


  • In this way, the call can be recorded once the Number 2 answers the call.