InnovateAsterisk / Browser-Phone

A fully featured browser based WebRTC SIP phone for Asterisk
https://www.innovateasterisk.com
GNU Affero General Public License v3.0
511 stars 252 forks source link

login/logout feature #93

Open Ch4ng3TheW0rld opened 4 years ago

Ch4ng3TheW0rld commented 4 years ago

Browser-Phone works excellent as stand alone, but it will help much more if add: -login/logout -once login, show automatically internal contact -store personal configuration

InnovateAsterisk commented 4 years ago

There are a few people that are extending this project to suite their own needs, you are welcome to fork/clone and do as you want. The reason I say so is that typically something that has a "login" will require authentication from a server - this project however, focuses only on the front-end of the solution, and has no backend requirement.

If you want the solution to contain a backend, you would need to program that yourself, and fetch elements from your own database. I would use a pre script, like others have. You can even use the windowing elements to offer a login window.

Around code line: 10199 you will find all the UI functions like OpenWindow, Alert, Prompt etc. Using this and a combination of ajax calls to your backend, you can easily achieve what you want.