Feedback

  • Contents
 

CallObject.localId Property

Definition

This property returns the Station Id associated with the call.

Syntax

CallObject.localId

Usage

Read       Yes

Write       No

Value Assigned

None.

Value Returned

localID

When you retrieve this value, a string identifying the Station Id is returned.


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>