Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: sanjay on October 30, 2008, 04:02:10 PM

Title: Registering in Chat applicaiton.
Post by: sanjay on October 30, 2008, 04:02:10 PM
Hi

        I am using  the RequestRegister class in the BasicChat.Request namesace.

        While registering I am setting the following properties.

        nickName = "abc";
        userType = UserType.Supervisor;
        personID = "";
        userData = new keyvalueCollection();
        TimeZoneOffset = 20

        I always get the response as user already registered.
 
        Why is that so. How could I register.
Title: Re: Registering in Chat applicaiton.
Post by: mhsrinivasan on November 20, 2008, 01:47:33 PM
you need to specify the [b]agent id[/b] in the place of[b] person id[/b]
Title: Re: Registering in Chat applicaiton.
Post by: AlexeyK on December 24, 2008, 01:35:08 AM
In some previous versions of PSDK there was automatic registration implemented upon Open method (so when establishing the socket connection). The registration could be performed only once per connection – that is why you are getting such a response from ChatServer.

You need to turn off auto-registration during Open (which is by default I think) – then you will be able to send a specific registration request. For that I believe you need initialize “BasicChatProtocol.UserId” with some dummy string.

Or could specify all these parameters in advance before Open – so you will not need to register separately.
Title: Re: Registering in Chat applicaiton.
Post by: mhsrinivasan on February 03, 2009, 12:46:48 PM
How to turn off auto registration?
Title: Re: Registering in Chat applicaiton.
Post by: AlexeyK on February 14, 2009, 02:05:06 AM
you need initialize “BasicChatProtocol.UserId” with some dummy string.
Title: Re: Registering in Chat applicaiton.
Post by: AlexeyK on February 14, 2009, 02:15:01 AM
Actually - there is an attribute "AutoRegister" in BasicChatProtocol object - you could just set it to false.