Commit 0da44587 authored by Muhammadali's avatar Muhammadali

verison: 1.2.6

parent 21783b00
{
"name": "boxdialer",
"version": "1.2.5",
"version": "1.2.6",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -251,8 +251,8 @@ export class BoxDialer {
onSessionEvent({ type, event }) {
this.sipState = type + '_' + event?.type;
console.log('---onSessionEvent EVENT [' + this.sipState + ']', event);
// console.log('---onSessionEvent EVENT [' + this.sipState + ']', event);
this.stateLog(this.sipState);
this.setGuiPhoneState({ stateCode: this.sipState });
switch (this.sipState) {
......@@ -578,4 +578,14 @@ export class BoxDialer {
notifyAdminButtonClick() {
console.log('notifyAdminButtonClick');
}
stateLog(state) {
let stColor = state && state.slice(0, 4) == 'call' ? 'blue' : 'red';
if (state && state.slice(0, 4) == 'register') {
stColor = 'yellow';
}
let css = 'color:' + stColor + '; font-size: 30px;';
console.log('%c ---onSessionEvent EVENT: %s', css, state);
}
}
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