Server Login

Massimo

New Member
We have been using a demo license to test "phoneui" and "click to call". Now we are ready to purchase a full license. however, we have noticed that, with the demo license, we need to open, other then the page to use "phoneui" or "click to call", another page and logon to server, otherwise the call will not start. Buying a full license, will we face same problem?
 

Max

Administrator
Staff member
Good day.
The WCS web admin interface requires a login: Testing using the web interface
You can open the PhoneUI example page directly by URL https://wcs:8444/client2/examples/demo/sip/phone-ui/Phone.html, Click-to-Call example page by URL https://wcs:8444/client2/examples/demo/sip/click-to-call/click-to-call.html etc, where wcs is your server domain name.
You can also deploy Web SDK on your own web server. Just copy content of /usr/local/FlashphonerWebCallServer/client2 folder to appropriate web server folder.
When using SIP examples, you should also enter the SIP credentials to establish a call. You can set the credentials statically in Javascript code, see the Click-To-Call example sources
Code:
        var url = $('#urlServer').val();
        var sipOptions = {
            login: $('#sipLogin').val(),
            authenticationName: $('#sipAuthenticationName').val(),
            password: $('#sipPassword').val(),
            domain: $('#sipDomain').val(),
            outboundProxy: $('#sipOutboundProxy').val(),
            port: $('#sipPort').val(),
            registerRequired: true
        };
    
        var connectionOptions = {
            urlServer: url,
            sipOptions: sipOptions
        };

        //create session
        console.log("Create new session with url " + url);
        Flashphoner.createSession(connectionOptions).on(SESSION_STATUS.ESTABLISHED, function(session){
            ...
        });
 
Top