Commit 84063253 authored by Muhammadali's avatar Muhammadali

update-

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