Commit e8e4b8c8 authored by Muhammadali's avatar Muhammadali

update-

parent 93c48c06
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.7.7", "version": "3.7.8",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -97,6 +97,7 @@ export class BoxDialer { ...@@ -97,6 +97,7 @@ export class BoxDialer {
failed: (e) => { failed: (e) => {
console.log('%c failed', 'font-size: 22px; color: green;', e); console.log('%c failed', 'font-size: 22px; color: green;', e);
// console.log('call failed with cause: ' + e.data); // console.log('call failed with cause: ' + e.data);
this.closeBxCall();
if (e.cause == 'User Denied Media Access') { if (e.cause == 'User Denied Media Access') {
console.log('User_Danied_Media_Access'); console.log('User_Danied_Media_Access');
toast.error('Your micrafon is OFF', { toast.error('Your micrafon is OFF', {
...@@ -104,6 +105,7 @@ export class BoxDialer { ...@@ -104,6 +105,7 @@ export class BoxDialer {
zIndex: '99999999999999999', zIndex: '99999999999999999',
}, },
}); });
window.navigator.mediaDevices window.navigator.mediaDevices
.getUserMedia({ audio: true }) .getUserMedia({ audio: true })
.then(function (stream) { .then(function (stream) {
...@@ -688,10 +690,11 @@ export class BoxDialer { ...@@ -688,10 +690,11 @@ export class BoxDialer {
let phoneNumberString = phoneNumber.toString(); let phoneNumberString = phoneNumber.toString();
if (phoneNumberString.length) { if (phoneNumberString.length) {
this.setGuiPhoneState({ // this.setGuiPhoneState({
funcName: 'phoneModal', // funcName: 'phoneModal',
funcParam: false, // funcParam: false,
}); // });
this.onSipStateChange.phoneModal(false);
this.options.extraHeaders = ['X-AloVoice-Test: 123']; this.options.extraHeaders = ['X-AloVoice-Test: 123'];
this.callSession = this.ua.call( this.callSession = this.ua.call(
'sip:' + phoneNumberString + '@' + this.sipDomain, 'sip:' + phoneNumberString + '@' + this.sipDomain,
......
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