Commit dfc030bf authored by Muhammadali's avatar Muhammadali

update-

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