David 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?
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 Selvan