I am using
function call() {
// get the phone number to connect the call to
params = {"PhoneNumber": $("#number").val()};
Twilio.Device.connect(params);
}
to make a call and
function mute() {
connection.mute(true);
}
to mute a call.
This works for incoming call but does not work for outgoing calls.
Can anyone assist?
I just had the same issue working on outgoing calls.
What worked for me was naming the connection, and then muting that.
For example:
Before when it wasn't named, it didn't work. Setting it to the connection variable got it working for me.
Hope that helps!