- Contents
Interaction Scripter Developer's Guide
CallObject.remoteName Property
Definition
This property returns or sets the name of the caller.
Syntax
CallObject.remoteName
Usage
Read Yes
Write Yes
Value Assigned
- String
-
A string containing the caller name you wish to assign.
Value Returned
- String
-
For inbound calls, the name of the person that was looked up in the CIC whitepages. If a name does not exist, the city and state or country of the call will be used if it can be determined.
Example
<html>
<head> <title>Scripter Object</title> <meta name="IS_System_AgentName">
<script language="JavaScript"> var CallIDentifier = 0; function MakeCall() { var CallObject = scripter.createCallObject(); CallObject.extendedDial(Phonenumber.value, 30, "TRUE", "TRUE"); CallIDentifier = CallObject.id; scripter.myQueue.objectChangedHandler = CheckCallID; LocalId.value = CallObject.localId; LocalLocation.value = CallObject.localLocation; LocalName.value = CallObject.localName; }
function CheckCallID(TypeId, ObjectId) { if (ObjectId == CallIDentifier) { var CallObject = scripter.callObject; CallObject.id = ObjectId;
if (CallObject.state == 105) { alert("call connected successfully"); RemoteId.value = CallObject.remoteId; RemoteLocation.value = CallObject.remoteLocation; RemoteName.value = CallObject.remoteName; scripter.myQueue.objectChangedHandler = null; call.value = 0; CallIDentifier = 0; } } } </script> </head>
<body>
<table> <tr> <td><input type=button value="dial" onclick="MakeCall();"></input> </td> <td>Phonenumber</td> <td><input name="Phonenumber" id="Phonenumber"></input> </td> </tr> <tr> <td>Local Id</td> <td><input name="LocalId" value="" style="width:100"></input></td> <td>Local Location</td> <td><input name="LocalLocation" value="" style="width:100"></input></td> <td>Local Name</td> <td><input name="LocalName" value="" style="width:100"></input></td> </tr> <tr> <td>Remote Id</td> <td><input name="RemoteId" value="" style="width:100"></input></td> <td>Remote Location</td> <td><input name="RemoteLocation" value="" style="width:100"></input></td> <td>Remote Name</td> <td><input name="RemoteName" value="" style="width:100"></input></td> </tr> </table>
</body>
</html>