Commit 73b2d774 authored by Muhammadali's avatar Muhammadali

update-

parent 97fa5c7d
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.5.6", "version": "3.5.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -294,7 +294,6 @@ export class BoxDialer { ...@@ -294,7 +294,6 @@ export class BoxDialer {
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
stateCode: 'connectingIncoming', stateCode: 'connectingIncoming',
funcParam: { funcParam: {
bool: true, bool: true,
callType: 'incoming', callType: 'incoming',
...@@ -310,7 +309,7 @@ export class BoxDialer { ...@@ -310,7 +309,7 @@ export class BoxDialer {
this.setGuiPhoneState({ this.setGuiPhoneState({
stateCode: 'incoming', stateCode: 'incoming',
}); });
}, 2000); }, 5000);
}); });
// incoming call here // incoming call here
this.callSession.on('accepted', () => { this.callSession.on('accepted', () => {
...@@ -712,44 +711,12 @@ export class BoxDialer { ...@@ -712,44 +711,12 @@ export class BoxDialer {
this.callSession.answer(this.options); this.callSession.answer(this.options);
this.callSession.connection.addEventListener('addstream', (event) => { this.callSession.connection.addEventListener('addstream', (event) => {
console.log('--== ss Added STREAM: ');
console.log('--=============================');
console.log('--=============================');
console.log('--=============================');
// console.log('-= CallSESS conn EvntLst: ', event);
// console.log(
// '--=========Adding Remote Audio: ',
// remoteAudio,
// event.stream,
// );
// if (window.remoteAudio && window.remoteAudio.id) {
this.remoteAudio.srcObject = event.stream; this.remoteAudio.srcObject = event.stream;
this.remoteAudio.play(); this.remoteAudio.play();
// }
}); });
} }
sipSendDTMF(code) { sipSendDTMF(code) {
// if (this.oSipSessionCall && c) {
// this.oSipSessionCall.dtmf(c);
// }
// var options = {
// duration: 160,
// extraHeaders: ['X-Foo: foo', 'X-Bar: bar'],
// eventHandlers: {
// succeeded: function (e) {
// /* Your code here */
// console.log('sipSendDTMF succeeded', e);
// },
// failed: function (e) {
// /* Your code here */
// console.log('sipSendDTMF failed', e);
// },
// },
// };
// var dtmf = new JsSIP.RTCSession.DTMF(this.callSession);
// dtmf.send(code, options);
// this.callSession.send(code, options);
this.callSession.sendDTMF(code); this.callSession.sendDTMF(code);
} }
......
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