Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: victor on March 18, 2009, 11:45:12 AM

Title: Retrieving information about other servers
Post by: victor on March 18, 2009, 11:45:12 AM
Hi,

a very quick question that I think a lot of us will enjoy answering (and I REALLY NEED TO FIGURE IT OUT).
We know that T-Servers know about each other in a multi-site configuration. Is there some sort of Genesys ActiveX request that would give me the names of other T-Servers connected to my T-Server. I am too lazy to access either CME or modify something in config.txt file of my softphone. This way I would be able to get the names of all the T-Servers I can forward to without doing much work :)



Title: Re: Retrieving information about other servers
Post by: cmcshane on March 18, 2009, 03:00:04 PM
Hi Vic,

You'll get this info from your t-server startup file. You'll see the t-server connections as below. Is this what you're looking for ?

23:05:53.3940 [TCONF] Remote Server application info received: DBID [245], type [TServer], name [tserver_72_war]
@23:05:53.3940 [TCONF] Remote Server application info received: DBID [300], type [TServer], name [t_server_72_ark]
Title: Re: Retrieving information about other servers
Post by: René on March 18, 2009, 03:27:10 PM
Hi Vic,

Try to use the method TQueryLocation("",LocationInfoAllLocations). It should return list of all remote TServers.

R.
Title: Re: Retrieving information about other servers
Post by: victor on March 19, 2009, 06:12:29 AM
René!!!

This is exactly what I was looking for! Thanks!!!
but, wait... it does not tell you the hostname or the port!!! How is it possible?