Commit 2559affc authored by Muhammadali's avatar Muhammadali

update-

parent 59ccbaa7
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.2.8", "version": "4.2.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -416,19 +416,13 @@ export class BoxDialer { ...@@ -416,19 +416,13 @@ export class BoxDialer {
data, data,
); );
this.callSession = data.session; this.callSession = data.session;
this.setGuiPhoneState({
funcName: 'modalState',
funcParam: {
bool: true,
callType: 'connected',
},
});
console.log( console.log(
'this_callSession_connection: ', 'this_callSession_connection: ',
this.callSession.connection, this.callSession.connection,
); );
// this.callSession.connection.onaddstream = (e) => {
// console.log('--== UA Conn Added STREAM: ', e); this.callSession.connection.onaddstream = (e) => {
console.log('--== UA Conn Added STREAM: ', e);
// let strmTrack = e.stream.getAudioTracks(); // let strmTrack = e.stream.getAudioTracks();
// if (strmTrack[0]) { // if (strmTrack[0]) {
...@@ -436,17 +430,15 @@ export class BoxDialer { ...@@ -436,17 +430,15 @@ export class BoxDialer {
// this.remoteAudio.srcObject = rmMediaStream; // this.remoteAudio.srcObject = rmMediaStream;
// this.remoteAudio.play(); // this.remoteAudio.play();
// } // }
// }; };
this.callSession.connection.addEventListener( this.setGuiPhoneState({
'onaddstream', funcName: 'modalState',
(event) => { funcParam: {
let rmMediaStream = new MediaStream([strmTrack[0]]); bool: true,
console.log('--== ss OUT STREAM: '); callType: 'connected',
this.remoteAudio.srcObject = rmMediaStream;
this.remoteAudio.play();
}, },
); });
this.onSipStateChange.innerCallerModal({ this.onSipStateChange.innerCallerModal({
bool: true, bool: true,
......
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