cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
220
Views
1
Helpful
3
Replies
Highlighted
TGJ Contributor
Contributor

Send data to other server when agent status change

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

Everyone's tags (3)
3 REPLIES 3
Contributor

Re: Send data to other server when agent status change

Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.

Enthusiast

Re: Send data to other server when agent status change

That is what gadgets.io.makeRequest() is for.

TGJ Contributor
Contributor

Re: Send data to other server when agent status change

Thanks. I will try that .-)

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards