Commit e8e4b8c8 authored by Muhammadali's avatar Muhammadali

update-

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