Genesys CTI User Forum > Genesys-related Development
How can I get configured status messages of an agent?
jkaewprateep:
After changed the 'clientname', it returns another error like in below:
at line :
[b]ICollection<Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.CfgObjects.CfgActionCode> CfgActionCode =
CfgActionCodeQuery.Execute();[/b]
Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ConfigException was unhandled
Message=[b]"Exception on sending request"[/b]
Source="Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel"
StackTrace:
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.GlobalConfService.BeginLoadObject(IProtocol protocol, ICfgQuery query, ConfService confService, AsyncCallback finishCallback, AsyncCallback dataCallback, Int64 timeout, Object state, Boolean isBriefInfo)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.CfgObjectFactory.BeginRetrieveMultipleObjects(ICfgQuery query, ConfService confService, AsyncCallback finishCallback, AsyncCallback dataCallback, Int64 timeout, Object state, Boolean isBriefInfo)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ConfService.BeginRetrieveMultipleObjects(ICfgQuery query, AsyncCallback finishCallback, AsyncCallback dataCallback, Object state, Int64 timeout, Boolean isBriefInfo)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ConfService.RetrieveMultipleObjects[T](ICfgQuery query, AsyncCallback finishCallback, AsyncCallback dataCallback, Int64 timeout)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.ConfService.RetrieveMultipleObjects[T](ICfgQuery query)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.Queries.CfgQuery.Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.Queries.ICfgQuery.Execute[T]()
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.Queries.CfgActionCodeQuery.Execute()
at COMAPI_1.Form1.test2() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\COMAPI_1\COMAPI_1\Form1.cs:line 56
at COMAPI_1.Form1..ctor() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\COMAPI_1\COMAPI_1\Form1.cs:line 17
at COMAPI_1.Program.Main() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\COMAPI_1\COMAPI_1\Program.cs:line 18
InnerException: Genesyslab.Platform.Commons.Protocols.ChannelClosedOnSendException
Message="Connection is not opened"
Source="Genesyslab.Platform.Commons.Protocols"
StackTrace:
at Genesyslab.Platform.Commons.Protocols.AbstractChannel.ThrowNotOpenedOnSend()
at Genesyslab.Platform.Commons.Protocols.DuplexChannel.Send(IMessage message)
at Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.GlobalConfService.BeginLoadObject(IProtocol protocol, ICfgQuery query, ConfService confService, AsyncCallback finishCallback, AsyncCallback dataCallback, Int64 timeout, Object state, Boolean isBriefInfo)
Environment: Win32NT [64-bit] 6.1.7601 Service Pack 1 | CLR: 2.0.50727.8784 | iso-8859-1 (1252) | CPU: [x2]
DEMOSRV [DEMOSRV\Administrator]: "C:\Users\Administrator\Documents\Visual Studio 2008\Projects\COMAPI_1\COMAPI_1\bin\Debug\COMAPI_1.exe"
InnerException:
Any one have example of query data from the configuration manager?
Thank you
Kubig:
Connection to the Confserv is not opened as you can see in provided fargment of log. Check your WS (WarmStandby) block whether its implementation is right and you opened conenction before execute queries. Examples describing how to use WS block you can find on official site with PSDK documentation.
jkaewprateep:
Hi, I also look at the recommended document but both my script and what is provided in the document have the same result. Which is as below error:
Genesyslab.Platform.Configuration.Protocols.Exceptions.ConfRegistrationException was caught
Message="Error registering. Code: 2230535 Description: [b]Application name is prohibited to login[/b]"
Source="Genesyslab.Platform.Commons.Protocols"
ErrorDescription="Application name is prohibited to login"
StackTrace:
[Rethrow at]
at Genesyslab.Platform.Commons.Protocols.DuplexChannel.DoOpenImpl(TimeSpan timeOut, Boolean async, Boolean checkExternalControl)
at Genesyslab.Platform.Commons.Protocols.DuplexChannel.Open(TimeSpan timeOut)
at Genesyslab.Platform.Commons.Protocols.DuplexChannel.Open()
at COMAPI_2.Form1.test() in C:\Users\Administrator\AppData\Local\Temporary Projects\COMAPI-2\Form1.cs:line 41
Environment: Win32NT [64-bit] 6.1.7601 Service Pack 1 | CLR: 2.0.50727.8784 | iso-8859-1 (1252) | CPU: [x2]
DEMOSRV [DEMOSRV\Administrator]: "C:\Users\Administrator\AppData\Local\Temporary Projects\COMAPI-2\bin\Debug\COMAPI-2.vshost.exe"
InnerException:
Kubig:
What is the application type you are using for?
jkaewprateep:
Genesyslab.Platform.Configuration.Protocols.Types.CfgAppType.[b]CFGConfigServer[/b].ToString())
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version