Genesys CTI User Forum > Genesys-related Development
[SOLVED] Action code for NotReady state
luchosrock:
Hi guys, i have two questions, but related to the same:
[b]1.[/b] How can i set the Action code for a Not Ready state from a softphone application (let's say [i]bathroom[/i] or [i]lunch[/i])?
I have them set in Configuration manager like this:
[b]Configuration>Resources>Action Codes[/b]
[b]2.[/b] How can i retrieve all Action Codes set in configuration manager from my agent desktop application?
I'm using VB.net but an answer in C# or Java is also well received :)
Thanks in advance
cavagnaro:
Not by SDK by default, what I do is do a query on the cfgserver DB and then get those codes to be displayed
luchosrock:
Thanks for the quick reply cav. How can i send the action code whenever i set NotReady state?
I'm currently using a RequestAgentNotReady and sending a response IMessage and it works fine, but i don't know how to add the reason information to the notReady state.
cavagnaro:
Please search in the forum, we discussed this many many times
luchosrock:
I already searched in the forum and i found some useful stuff, but i don't know if i am implementing it right, because the questions in that case were too specific and most of it refered to the CCPulse.
Anyway my implementation of it was like this, please correct me if i'm wrong:
[code]
Dim reqAgentNotReady As RequestAgentNotReady
reqAgentNotReady = RequestAgentNotReady.Create()
reqAgentNotReady.ThisDN = DN 'value of DN
' Here is the part i don't know if it's wright
Dim reqReasons As New KeyValueCollection
reqReasons.Add(reasonCode, "1")
reqAgentNotReady.Reasons = reqReasons
'
Dim response As IMessage
response = Me.protocolManagementService("TServer").Request(reqAgentNotReady)
[/code]
BTW i'm using Platform SDK 8.1 for .NET development
Navigation
[0] Message Index
[#] Next page
Go to full version