eric-brechemier / how-i-replaced-skype-with-twilio

How I replaced Skype with Twilio to make phone calls from my computer
Creative Commons Attribution 4.0 International
43 stars 9 forks source link

Download twilio record in my dataBase #10

Closed asmabelhadj123 closed 4 years ago

asmabelhadj123 commented 4 years ago

Hii; I used the "action" option of twiML to send the recording of a call to my application and add the url and the text of call in my database

but it doesn't work

`<?xml version="1.0" encoding="UTF-8"?>

+######## `
eric-brechemier commented 4 years ago

Hi @asmabelhadj123!

I am sorry, but your issue does not seem to be related to this guide. Here, I am not trying to record whole calls, only voicemails.

However, from my reading of Twilio Voice documentation, you don't need to use the <Record>element here, but to configure a callback in the recordingStatusCallback attribute of the <Dial>element.

You can take a look at the example Set Dual-Channel Recording on <Dial> for inspiration:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial record="record-from-ringing-dual"
          recordingStatusCallback="www.myexample.com">
        <Number>+15558675310</Number>
    </Dial>
</Response>