Commit 84063253 authored by Muhammadali's avatar Muhammadali

update-

parent 6c326e33
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.4.3", "version": "3.4.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -272,6 +272,7 @@ export class BoxDialer { ...@@ -272,6 +272,7 @@ export class BoxDialer {
}); });
this.ua.on('newRTCSession', (data) => { this.ua.on('newRTCSession', (data) => {
console.log('%c newRTCSession: ', 'font-size: 22px; color: yellow;');
this.callSession = data.session; this.callSession = data.session;
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
...@@ -294,6 +295,11 @@ export class BoxDialer { ...@@ -294,6 +295,11 @@ export class BoxDialer {
}); });
// incoming call here // incoming call here
this.callSession.on('accepted', () => { this.callSession.on('accepted', () => {
console.log(
'%c newRTCSession accepted: ',
'font-size: 22px; color: yellow;',
e,
);
// the call has answered // the call has answered
this.onSoundType({ type: 'ring', bool: false }); this.onSoundType({ type: 'ring', bool: false });
this.setGuiPhoneState({ this.setGuiPhoneState({
...@@ -312,6 +318,11 @@ export class BoxDialer { ...@@ -312,6 +318,11 @@ export class BoxDialer {
// .slice(1); // .slice(1);
}); });
this.callSession.on('confirmed', () => { this.callSession.on('confirmed', () => {
console.log(
'%c newRTCSession confirmed: ',
'font-size: 22px; color: yellow;',
e,
);
// this handler will be called for incoming calls too // this handler will be called for incoming calls too
console.log( console.log(
'%c incoming confirme', '%c incoming confirme',
...@@ -320,6 +331,11 @@ export class BoxDialer { ...@@ -320,6 +331,11 @@ export class BoxDialer {
); );
}); });
this.callSession.on('ended', () => { this.callSession.on('ended', () => {
console.log(
'%c newRTCSession ended: ',
'font-size: 22px; color: yellow;',
e,
);
// the call has ended // the call has ended
// this.closeBxCall(); // this.closeBxCall();
console.log( console.log(
......
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