Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: eferreyra on May 22, 2007, 07:30:31 PM

Title: Why TExtension.TRegister() can return T_FAIL
Post by: eferreyra on May 22, 2007, 07:30:31 PM
Hi people, this is my first post, new in genesys world...

My problem...  im using Activex Desktop Toolkit 7.2 in Visual Studio 2005 in a C# project, i have a form acting as container of TConnection, TExtension, etc..

I succesfully connect to T-Server :

        private void InicializarConexion(String host, String port)
        {
            axTConnection.THost = host;
            axTConnection.TPort = port;
            if (!axTConnection.TConnect())
                throw new InicializarException(host, port);
.....

And the succesfully verify link to the switch receiving:

private void axTConnection_TEventLinkConnected(object sender, _DConnectionEvents_TEventLinkConnectedEvent e)
.....

Then i try to register the DN, and it returns T_FAIL ????

        private void InicializarRegistrarDN(String dn)
        {
            axTExtension.TDN = dn;

            TStatus estado = axTExtension.TRegister();

            if (estado == TStatus.T_FAIL)
                throw new InicializarException(axTConnection.THost, axTConnection.TPort, dn);
....

Why can this happen ???

If i try from the SoftPhone example app in VB6 i correctly register and login.

Thanks for any help....

E. Ferreyra
Title: Re: Why TExtension.TRegister() can return T_FAIL
Post by: eferreyra on May 23, 2007, 01:20:38 PM
The problem was an incorrect value at the ConnectionName attribute of the TExtension control.

Thanks anyway.

Title: Re: Why TExtension.TRegister() can return T_FAIL
Post by: Genesys CTI Forum Administration Team on May 24, 2007, 01:13:33 AM
I am glad you were able to resolve it! How did you figure out that ConnectionName was the culprit?
I could not see ConnectionName anywhere...

Vic