Definity G3 reason codes with ActiveX

We have a visual basic application that uses the Genesys ActiveX controls.

I have logged the agents in and can put them in Aux but I can’t find a way to set the Aux reason code that works.

I have tried TSetAgentIdleReason but can’t seem to get that to work.

The only code sample I can find is for c++ and when I try to translate it into vb doesn’t seem to work.

has anyone done this succesfully? Do you have an code samples?

Are you certain the reasons codes are not being attached? How have you verified this? If its through CC Pulse or CCA you may not have configured the filters on the stat server to interpret the reason codes.

I am using Avaya CentreVu Supervisor to confirm the results of the request. So the ocnfiguration of the stat server shouldn’t be an issue

Have you checked the Tserver logs, as my understanding is that you attach data with a Key of _REASON. If that key value pair is there then your problem is not in the code. if it is not there then I suggest you use the Genesys softphone and attach the KV pair to prove that it will work first as that requires no programming effort.

You may find the following useful… the notReadyIndex equates to the single digit number in lucent (0 is default).

Dim reasonpair As New CTKVPair

Dim reasonlist As New CTKVList

reasonpair.Key = “ReasonCode”

reasonpair.Type = CKVTypeNum

reasonpair.NumValue = notReadyIndex

reasonlist.AddHead reasonpair

spTExt.TSetExtensions reasonlist

spTExt.TAgentWorkMode = auxwork

spTExt.TNotReady

set reasonpair = Nothing

set reasonlist = Nothing

Hope it helps

mark