Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Michel Periard on January 01, 1970, 12:00:00 AM

Title: Tserver Framework
Post by: Michel Periard on January 01, 1970, 12:00:00 AM
Developping a program using Tserver APIs and being pretty new with Genesys, i have the following questions:

When a TOpenServer request is posted, a server name must be passed as an argument.

What is the magic behind such server name an the tcp/ip connection parameters (ip adress and port) of the Tserver?

Do i have to create a profile (the server name argument being the key) for each of my Tservers? If so, what need to be in the profile, where is it kept? Does it have to be built using Configuration Manager?

If not, how can i express my Tserver connection parameters using TOpenServer?

Anything will help. Thanks.
Title: Tserver Framework
Post by: Michel Periard on January 01, 1970, 12:00:00 AM
I saw in the icom program a call to conn_startup/conn_cleanup, is it part of the magic?

If so, where are these functions?

Thanks.
Title: Tserver Framework
Post by: Akiko@Negishi on January 01, 1970, 12:00:00 AM
Good morning, Michael!

You need to remember that TLib is just a wrapper class for CSocket and treat it accordingly. We are using an array of classes to keep track of TServers.

Why do you even NEED to know TServer name? It is nice to use CME, but you do not have to. Just use the handle name returned by the connection function, because this is the only thing that you cannot lose.
Title: Tserver Framework
Post by: Michel Periard on January 01, 1970, 12:00:00 AM
What do you mean by the connection function?

In the sample
...
char *server_name = "servername";
char *appl_name = "applname";
TServer server;
TOpenMode open_mode = AsyncMode;

if ((server = TOpenServer(server_name,dispatch_function,appl_name,NULL,open_mode)) < 0){
printf("TOpenServer error= %d\n",server);
return;
}
...

What does the string pointer server_name represent?
Is it a key in some kind of profile file?
If so what information needs to be in such profile?
How is it created?

Again i'm knew to TServer programming so apologize if the answers to these questions are obvious.

Thanks.