Autologin feature used for personal user pages.
How it works
- User types his login and password and presses login button on web-page.
- User watches his personal page.
- Javascript phone initialization starts after the page has been loaded.
- Javascript phone uses token parameter and send this parameter to Flashphoner-server.
- Flashphoner server requests third-party authentication server by HTTP.
- Third-party authentication server returns XML with login details.
- Flashphoner-server uses this details for registration of SIP account.
How to try autologin
- Make sure that Javascript phone works for you using stadard login scheme.
- Insert such tag into HTML page, where Javascript phone loaded:
PhoneJS.html
<input id="auto_login_token" type="hidden" value="123456789abcdef"/>
Here we have added element with id=token and value=123456789abcdef
Javascript phone will use this element for autologin process - Edit server-side properties file and set third-party authentication server here:
flashphoner.properies
auto_login_url=flashphoner.com/my_auto_login_url.xml

Specify auto_login_url without URL scheme. Right: flashphoner.com/my_auto_login_url.xml Wrong: http://flashphoner.com/my_auto_login_url.xml
You should specify your own auto login URL here.
Flashphoner will use http:// scheme for specified URL and send request to
http://flashphoner.com/my_auto_login_url.xml?token=123456789abcdef for this example.
Restart Flashphoner server to apply the changes.
See also Configuring section - Create authentication XML document and upload this document into web-server.
The web-server will be used as third-party authentication server for tests.
Your document should look like this:my_auto_login_url.xml<root auth="true" sip_login="my_sip_login" sip_password="my_sip_password" sip_server="my_sip_server"/>
Here:
auth true if you permit access for this token sip_login SIP login sip_password SIP password sip_server IP address or domain name of SIP server Open this document in the browser and make sure it contains correct credentials.
Sure, you can use php or any server-side script which returns valid XML,
then your URL may have such form: auto_login_url=flashphoner.com/my_auto_login_url.php - Uncomment strings in file js/flashLoader.js
$(function() { flashvars.token = $("#auto_login_token").val(); }); - Refresh browser cache and try to open the HTML page with Javascript phone again.
It should use autologin and you should be success logged with credentials, which described in the XML document.
Try to make call.
FAQ
How to structure that XML file for multiple SIP users?