AnsweredAssumed Answered

Send data to other server when agent status change

Question asked by ThomasGunnar on Apr 15, 2015
Latest reply on Apr 19, 2015 by ThomasGunnar

Hej all.

 

I'm trying to find a method so i can send calldata to an url whenever a call arrives or and agent changes state,

 

var currentState = user.getState();

        if (currentState === states.NOT_READY) {

            var currentReason = user.getReasonCodeLabel();

            if (currentReason === "")

            { $("#userState").text(Config_txt.NOT_READY);

// SEND AGENTSTATUS DATA TO URL :

// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady

}

            else

            { $("#userState").text(currentReason);

// SEND AGENTSTATUS DATA TO URL :

// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady&ReasonCode=<currentReason>

}

 

The <Microsoft IIS server IP> could also be the client PC that has an www server on a specific port. This is for PopUp when agent goes not ready due to RNA calls.

 

Have anyone tried this - I can get i to work, and I don't which javascript command i should use.

 

Best regards

Thomas

Outcomes