Call Now Example

The following is an example of JSON content that builds a Call button on the menu bar.

"buttonState" : "NORMAL",

          "buttonVisible" : true,

          "buttonLabel" : "Call",

          "buttonAction" : "local://call?phone=%2B1-800-0000000,111500045&voiceQueue=0",

          "buttonImageName" : "icon_call.png"

CallButton

When the user presses Call, the Call page is displayed, and a request is sent to the server to retrieve the Estimated Wait Time (ewt).

tog_minusCall Page Example

The following example presents a sample Call page, followed by the JSON content that builds the UI representation.

Call Page

HTTP GET: http://10.90.17.220:8090/interact/version/1/account/12345678/voice/queue/0/ewt

{

 … request header

}

 

HTTP Response: 200

{

    "Content-Length" = 140;

    "Content-Type" = "application/json;charset=UTF-8";

    Date = "Thu, 15 Nov 2012 13:25:12 GMT";

    Server = "Apache-Coyote/1.1";

    "Server-Version" = "Ver 7.0, Build 20121114-1837";

}

{

  "queueEstimatedWaitTime" : {

    "voiceQueue" : "0",

    "ewt" : -1,

    "ewtMessage" : "Average Wait Time is not available"

  }

}