Genesys CTI User Forum > Genesys-related Development
How can I read agent and application configuration in WDE/IWS?
abudwill:
There is, perhaps through IAgent / IAgentManager (I forget the name of the interface and dont have the .chm files installed right now).
daniel_san:
You can try to read some configuration directly by IAgent.
Try with IConfigurationService.
Regards.
Gabi:
Thanks, daniel_san, that looks promising. However, I'm still having some problems.
I have done the following.
[code]IConfigurationService = container.Resolve<IConfigurationService>
RequestReadObjects requestReadObjects =
RequestReadObjects.Create(
(int)CfgObjectType.CFGApplication,
filterKey);
configurationService.ConfigServerProtocol.Request(requestReadObjects);[/code]
I have an Event Broker to handle the EventObjectsRead, which I know is deprecated but I still don't know a better way to do it, and in any case that worked when I created my own connection to the Config Server, but now...
This simply doesn't work. WDE gets stuck in some infinite loop and no log is produced.
Does anyone have any idea what I did wrong, and what should be done instead? Is it possible that the ConfigServerProtocol was not yet initialized or something?
Thanks in advance.
cavagnaro:
On CfgServer logs do you see your request?
PeteHoyle:
[quote author=Gabi link=topic=9465.msg42957#msg42957 date=1459869466]
Thanks, daniel_san, that looks promising. However, I'm still having some problems.
I have done the following.
[code]IConfigurationService = container.Resolve<IConfigurationService>
RequestReadObjects requestReadObjects =
RequestReadObjects.Create(
(int)CfgObjectType.CFGApplication,
filterKey);
configurationService.ConfigServerProtocol.Request(requestReadObjects);[/code]
I have an Event Broker to handle the EventObjectsRead, which I know is deprecated but I still don't know a better way to do it, and in any case that worked when I created my own connection to the Config Server, but now...
This simply doesn't work. WDE gets stuck in some infinite loop and no log is produced.
Does anyone have any idea what I did wrong, and what should be done instead? Is it possible that the ConfigServerProtocol was not yet initialized or something?
Thanks in advance.
[/quote]
Which application(s) are you trying to get and which information do you need from them?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version