����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /usr/local/FlashphonerWebCallServer/client/examples/tools/lt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/FlashphonerWebCallServer/client/examples/tools/lt/Caller.js
//Init WCS JavaScript API
var f = Flashphoner.getInstance();

function initAPI() {
    f.addListener(WCSEvent.ErrorStatusEvent, errorEvent);
    f.addListener(WCSEvent.ConnectionStatusEvent, connectionStatusListener);
    f.addListener(WCSEvent.RegistrationStatusEvent, registrationStatusListener);
    f.addListener(WCSEvent.CallStatusEvent, callStatusListener);
    ConfigurationLoader.getInstance(function (configuration) {
        trace("Configuration loaded");
        configuration.localMediaElementId = 'localMediaElement';
        configuration.remoteMediaElementId = 'remoteMediaElement';
        configuration.elementIdForSWF = "flashVideoDiv";
        configuration.pathToSWF = "../../dependencies/flash/MediaManager.swf";

        f.init(configuration);
        connect();
    });
}

var currentCall;

//New connection
function connect() {
    f.connect({appKey: 'loadtool', sipLogin: "CALLER"});
    status("Connecting");
}

function cancel() {
    if (currentCall !== null) {
        f.hangup(currentCall);
    }
    status("Cancelled, reload page for another try.");
}

//New call
function call() {
    var call = new Call();
    call.callee = "callee";
    call.hasVideo = true;
    currentCall = f.call(call);
    status("Calling");
}

//Connection Status
function connectionStatusListener(event) {
    trace(event.status);
    if (event.status == ConnectionStatus.Established) {
        status("Connected");
        if (event.sipRegisterRequired == false){
            status("Calling");
            call();
        }
    } else if (event.status == ConnectionStatus.Disconnected) {
        status("Disconnected");
    }
}

//Registration Status
function registrationStatusListener(event) {
    trace(event.status);
    status("Calling");
    call();
}

//Call Status
function callStatusListener(event) {
    trace(event.status);
    if (event.status == CallStatus.ESTABLISHED) {
        trace('Call ' + event.callId + ' is established');
        status("Active call");
    } else if (event.status == CallStatus.FINISH) {
        status("Call terminated");
        setTimeout(function(){call()}, ConfigurationLoader.getInstance().callLT*1000);
    }
}

//Error
function errorEvent(event) {
    trace(event.info);
    status("Error");
}

//Trace
function trace(str) {
    console.log(str);
}

//interface info
function status(str){
    var field = document.getElementById("info");
    field.innerHTML = str;
}


ZeroDay Forums Mini