Commit 73b2d774 authored by Muhammadali's avatar Muhammadali

update-

parent 97fa5c7d
{
"name": "boxdialer",
"version": "3.5.6",
"version": "3.5.7",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -294,7 +294,6 @@ export class BoxDialer {
this.setGuiPhoneState({
funcName: 'modalState',
stateCode: 'connectingIncoming',
funcParam: {
bool: true,
callType: 'incoming',
......@@ -310,7 +309,7 @@ export class BoxDialer {
this.setGuiPhoneState({
stateCode: 'incoming',
});
}, 2000);
}, 5000);
});
// incoming call here
this.callSession.on('accepted', () => {
......@@ -712,44 +711,12 @@ export class BoxDialer {
this.callSession.answer(this.options);
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.play();
// }
});
}
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);
}
......
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