Commit dfc030bf authored by Muhammadali's avatar Muhammadali

update-

parent a4821764
...@@ -6,6 +6,7 @@ import waitRingTone from '../sounds/ringbacktone.wav'; ...@@ -6,6 +6,7 @@ import waitRingTone from '../sounds/ringbacktone.wav';
import pickSound from '../sounds/dtmf.wav'; import pickSound from '../sounds/dtmf.wav';
import { WebSocketInterface, UA } from 'jssip'; import { WebSocketInterface, UA } from 'jssip';
import tugpng from '../img/tug.png'; import tugpng from '../img/tug.png';
import packageJson from '../../package.json';
export class BoxDialer { export class BoxDialer {
sTransferNumber; sTransferNumber;
oRingTone; oRingTone;
...@@ -58,7 +59,6 @@ export class BoxDialer { ...@@ -58,7 +59,6 @@ export class BoxDialer {
player; player;
strmTrack; strmTrack;
constructor() { constructor() {
console.log('registerData: ', this.registerData);
this.played = false; this.played = false;
document.body.addEventListener('click', () => { document.body.addEventListener('click', () => {
this.played = true; this.played = true;
...@@ -322,6 +322,9 @@ export class BoxDialer { ...@@ -322,6 +322,9 @@ export class BoxDialer {
sipRegister = ({ number, secret, wsurl, isIce }) => { sipRegister = ({ number, secret, wsurl, isIce }) => {
try { try {
if (window.alovoice_setversion) {
window.alovoice_setversion(packageJson?.version);
}
if (this.options) { if (this.options) {
this.socket = new WebSocketInterface(`wss://${wsurl}/ws`); this.socket = new WebSocketInterface(`wss://${wsurl}/ws`);
this.callSession = false; this.callSession = false;
......
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