Autologin #389
-
Greetings, I want the user to automatically log in with the account I have specified. I have edited the phone.js file, but it did not work.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I wouldn’t suggest making changes to the phone.js file. Sorry, it should be more clear. Just load another .js file before, and add any of the variable definitions to that file as phoneOptions. Take a look at the current index.html file. You should see that the phone.js file loads last, so like the sample provided, just define the phoneOptions object, and this will provision the phone. The system makes extensive use of the local storage, so changing the variables in the phone.js also breaks this. |
Beta Was this translation helpful? Give feedback.
-
What appears in the console log? Some error? |
Beta Was this translation helpful? Give feedback.
-
Ok, but what isn’t working? You are expecting an register, right? Can you check the sip messages. (Find the ws connection in the network tab, select it, then select the messages tab inside that section. There you see all the sip messages.) |
Beta Was this translation helpful? Give feedback.
I wouldn’t suggest making changes to the phone.js file. Sorry, it should be more clear. Just load another .js file before, and add any of the variable definitions to that file as phoneOptions.
Take a look at the current index.html file. You should see that the phone.js file loads last, so like the sample provided, just define the phoneOptions object, and this will provision the phone.
The system makes extensive use of the local storage, so changing the variables in the phone.js also breaks this.