Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call recording #40

Open
sandipkhatrani opened this issue Aug 1, 2020 · 3 comments
Open

Call recording #40

sandipkhatrani opened this issue Aug 1, 2020 · 3 comments

Comments

@sandipkhatrani
Copy link

sandipkhatrani commented Aug 1, 2020

I am calling browser to mobile using twilio javascript sdk with Asp.net C#
I was place call successfully using quickstart.js file
using below code
document.getElementById('button-call').onclick = function () {

    try {

        if (document.getElementById('CallTo').value != '') {
            var params = {
                To: "+" + document.getElementById('CallTo').value,
                record: 'record-from-ringing-dual'
            };         
            log('Calling ' + params.To + '...');
            console.log('Calling ' + params.To + '...');
            if (device) {
                var outgoingConnection = device.connect(params);
                outgoingConnection.on('ringing', function () {
                    log('Ringing...');
                    document.getElementById('hdnCallIDs').value = outgoingConnection.parameters.CallSid;
                    log(document.getElementById('hdnCallIDs').value);
                });
            }
        } else {
            log('Enter Dialing number...');
        }
    }
    catch (err) {
        log(err.message);
    }

};

but i want to record call so witch parameter i have to pass and where it was to pass in code

@welcome
Copy link

welcome bot commented Aug 1, 2020

Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible.

While you are waiting...here's a random picture of a corgi (powered by dog.ceo)
picture of dog

@sahil-kindlebit
Copy link

Hi, I am also looking solution for the same.
Is there any update on this? @sandipkhatrani @philnash

How do we record an outbound call from browser to a phone, any server-side or js solution for this?

@sandipkhatrani
Copy link
Author

to record outbound call you have to set parameter in twilio function created for voice mail

Twilio > Function > Function(Classic) >
set code in that function
const dial = twiml.dial({
record:'record-from-ringing-dual',
answerOnBridge: true,
callerId: context.CALLER_ID,
});

call record by twilio then using CallRecordId download in local storage like mobile or PC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants