Commit cf3d277d authored by Muhammadali's avatar Muhammadali

update-

parent b0526d9d
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.69", "version": "4.8.70",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -935,6 +935,16 @@ export class BoxDialer { ...@@ -935,6 +935,16 @@ export class BoxDialer {
} }
answerButtonClick() {
this.onSoundType({type: 'ring', bool: false});
this.callSession?.answer(this.options);
this.callSession.connection.addEventListener('addstream', (event) => {
this.remoteAudio.srcObject = event.stream;
this.remoteAudio.play();
});
}
holdButtonClick() { holdButtonClick() {
let { local } = this.callSession.isOnHold(); let { local } = this.callSession.isOnHold();
console.log('local: ', local); console.log('local: ', local);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment