Avaya Support Forums

Avaya Support Forums (http://support.avaya.com/forums/index.php)
-   Contact Center Applications (http://support.avaya.com/forums/forumdisplay.php?f=3)
-   -   AACC SIP expected wait time to public web - api - REST (http://support.avaya.com/forums/showthread.php?t=6442)

lnesje 05-13-2015 06:37 AM

AACC SIP expected wait time to public web - api - REST
 
need to know how I can display expected wait time from AACC to public web.
Which API to use - how to get this extracted with a webservice call

thx in advance

vikramsg 05-15-2015 02:11 AM

You can do it with CCMS SOA Webservices to get the INTRINSIC value of EXPECTED WAIT TIME. The CCMS SOA Webservices can be enabled via Server Configuration utility.

lnesje 05-15-2015 04:48 AM

can you use with SOAP or REST to get this ?

hergenmuelle 05-18-2015 02:46 AM

CCMS SOAP WebServices.

hergenmuelle 05-18-2015 03:34 AM

Here an example:

Set up the ContactService WebServices in DIW:
"http://localhost:9070/SOAOI/scripting/services/ContactService?WSDL"

In scripting set the EWT of the contact as intrinsic with the WebService
setIntrinsicByName(String externalContactId, String key, String value, String user, String password)
Script example:

ASSIGN CONTACT DATA "ProviderContactID" TO externalcallid
ASSIGN "Exp_Wait_Time" TO Exp_Wait_Time_cv
ASSIGN 12 TO HDX_WSID_cv
ASSIGN "OpenWsUser" TO username
ASSIGN "xxxxxxxxxxx" TO password

GIVE RINGBACK
WAIT 2

QUEUE TO SKILLSET Skill1
WAIT 2

Section update_EWT

IF NOT QUEUED THEN
QUEUE TO SKILLSET Skill1
END IF

ASSIGN EXPECTED WAIT TIME Skill1 TO exp_wait_cv
CONVERT exp_wait_cv TO STRING Exp_Wait_Time_value_cv
SEND REQUEST HDX_AppId HDX_WSID_cv, externalcallid, Exp_Wait_Time_cv, Exp_Wait_Time_value_cv, username, password
GET RESPONSE HDX_AppId HDX_Resp_cv, cv_wsresult

WAIT 30
If exp_wait_cv >= 500 THEN
EXECUTE Route_to_VoiceMail
END IF

EXECUTE update_EWT

SECTION Route_to_VoiceMail
...

Get the value of the expected wait time with for your Website with the WebService
getIntrinsicByName(String contactId, String key, String user, String password)


All times are GMT -7. The time now is 07:46 PM.