on 01-25-2014 10:36 AM
Arul, are you seeing the BA variables in the CallControl gadget? If you are, you can look at the console in the debugger and see the contents of the Dialog object. Can you copy and paste that here?Arul Selvan:Hi, I am also facing similar issue unable to take outbound variable BAStatus, BABuddyName, BAAccountNumber using dialog.getData().mediaProperties inside NewDialog but other call variables(variable 1-10) able to get. handleNewDialog = function (dialog) { mpData = dialog.getData().mediaProperties; console.log("Call Variables:" + JSON.stringify(mpData)); } Thanks, --Arul
Thanks for your quick response. Yes i am able to see in callcontrol gadget. but unable to get in the getmediaPropery method inside NewHandleDialog but from xml response i am able to see the values: Console Logs: ------------------- dialog.getData().mediaProperties Response: Call Variables:{"associatedDialogUri":null,"fromAddress":null,"id":"2130706443","mediaProperties":{"DNIS":"4107","callType":"OUTBOUND_PREVIEW","callvariables":{"CallVariable":[{"name":"callVariable1","value":null},{"name":"callVariable2","value":null},{"name":"callVariable3","value":null},{"name":"callVariable4","value":null},{"name":"callVariable5","value":null},{"name":"callVariable6","value":null},{"name":"callVariable7","value":null},{"name":"callVariable8","value":null},{"name":"callVariable9","value":null},{"name":"callVariable10","value":null}]},"dialedNumber":"3015"},"mediaType":"Voice","participants":{"Participant":{"actions":null,"mediaAddress":"4107","mediaAddressType":"AGENT_DEVICE","state":"ALERTING","stateCause":null}},"state":"ALERTING","toAddress":"4107","uri":"/finesse/api/Dialog/2130706443"} XML Response: 961084588 2130706436 4107 OUTBOUND_PREVIEW callVariable1 callVariable2 callVariable3 callVariable4 callVariable5 callVariable6 callVariable7 callVariable8 callVariable9 callVariable10 BACampaign fareportal_preview BAStatus PREVIEW_OUTBOUND_RESERVATION BAAccountNumber BAResponse BADialedListID 66 BATimeZone +00330 BABuddyName ,santhosh 3015 Voice UPDATE_CALL_DATA CLOSE ACCEPT REJECT 4107 AGENT_DEVICE ACTIVE ACTIVE 4107 /finesse/api/Dialog/2130706436 PUT /finesse/api/Dialog/2130706436 Thanks, --Arul SelvanDavid Lender:Arul Selvan: Hi, I am also facing similar issue unable to take outbound variable BAStatus, BABuddyName, BAAccountNumber using dialog.getData().mediaProperties inside NewDialog but other call variables(variable 1-10) able to get. handleNewDialog = function (dialog) { mpData = dialog.getData().mediaProperties; console.log("Call Variables:" + JSON.stringify(mpData)); } Thanks, --Arul Arul, are you seeing the BA variables in the CallControl gadget? If you are, you can look at the console in the debugger and see the contents of the Dialog object. Can you copy and paste that here?
David Lender:The only other thing I can think of is that maybe the initial dialog object does not have the BA Variables in it and the BA variables come in a subsequent Dialog update. You can check this out by reviewing all the Dialog updates in the console that are logged by the CallControl gadget. Try doing the screenpop on a subsequent dialog update after the initial handleNewDialog by adding a dialog change handler like this: dialog.addHandler('change', _processCall); then add a _processCall function to display the callvars.
I just implemented this. It works however it does not let you screen pop before answering a call. The process event happens after the answer button is selected. This is ok... but not if an agent wants to see a screen pop prior to answering.
So on inbound calls I can have a screen pop happen prior, but not for outbound. Hopefully in 10.0 this will be addressed.
I think it is a matter of the dialer not updating the BAAccountNumber ecc variable prior to the Alerting event. You may wish to try setting up a WorkflowActionEvent and screen pop the BAAccountNumber “when the call arrives”
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: