Real Time Interface
Posted: 11 Feb 2011 03:18
Dear members!
I'm implementing an application (VB.NET) that is supposed to collect ACD object events using RTI (Release 1.2.0). I have been successful in connecting to the server - and collecting the present objects.
However, I do not know how to handle subscriptions.
For instance, I have been able to connect to an acd object with the following code (italic):
Public Function ConnectToAcd(ByVal objType As Integer, ByVal objectkey As Integer) As String
Dim ObjectToGet As Object
Dim InterfaceState As Integer
Dim test As String = ""
Try
' ObjectKey : from a previous call to GetObjectist.
'ObjType : In this case AutmHdr.ObjectType.AgentObject
_result = _server.GetObject(objType, objectkey, ObjectToGet)
' Connects the object to the notification services.
_result = ObjectToGet.Connect(_notifReceiver)
' Retrieves the state of the interface.
_result = ObjectToGet.GetInterfaceState(InterfaceState)
_result = ObjectToGet.SubscribeToData(AutmHdr.AgentInfo.Agent_PhoneState)
Catch ex As Exception
test = ex.Message
End Try
Return test
End Function
ObjectToGet.SubscribeToData(AutmHdr.AgentInfo.Agent_PhoneState) returns ACD_S_OK which indicates that a subscription has been initialized.
But what object is receiving the phone state changes? I'm lost here, and I cannot find any help in the SDK documentation.
Please advice. Any assistance would be highly appreciated!
Kind regards,
Fred
I'm implementing an application (VB.NET) that is supposed to collect ACD object events using RTI (Release 1.2.0). I have been successful in connecting to the server - and collecting the present objects.
However, I do not know how to handle subscriptions.
For instance, I have been able to connect to an acd object with the following code (italic):
Public Function ConnectToAcd(ByVal objType As Integer, ByVal objectkey As Integer) As String
Dim ObjectToGet As Object
Dim InterfaceState As Integer
Dim test As String = ""
Try
' ObjectKey : from a previous call to GetObjectist.
'ObjType : In this case AutmHdr.ObjectType.AgentObject
_result = _server.GetObject(objType, objectkey, ObjectToGet)
' Connects the object to the notification services.
_result = ObjectToGet.Connect(_notifReceiver)
' Retrieves the state of the interface.
_result = ObjectToGet.GetInterfaceState(InterfaceState)
_result = ObjectToGet.SubscribeToData(AutmHdr.AgentInfo.Agent_PhoneState)
Catch ex As Exception
test = ex.Message
End Try
Return test
End Function
ObjectToGet.SubscribeToData(AutmHdr.AgentInfo.Agent_PhoneState) returns ACD_S_OK which indicates that a subscription has been initialized.
But what object is receiving the phone state changes? I'm lost here, and I cannot find any help in the SDK documentation.
Please advice. Any assistance would be highly appreciated!
Kind regards,
Fred