Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: zeindus on September 15, 2009, 02:59:51 PM

Title: Simulator G3 PBX
Post by: zeindus on September 15, 2009, 02:59:51 PM


Hi,
I am facing a problem concerning Simulator G3 PBX.  I have successfully installed all the framework components(dbserver, config server, etc.).  I can start/stop them without any problem.
When I try to launch the G3 PBX,  I got the following message :
Can't create equip from Cfg Server: can't open cfg-server for async client
Type any key to exit ...

Does anyone know what should I do to connect to the config server ?
Thanks for your help.

Notes: Following are the command and result:

command:
C:\GenSim2006\TestSim>n_simg3 -host localhost -port 7020 -sw madridswitch -ts ma

dridtserver -pass password


results:
Simulator G3 PBX, GIANT Version:  7.5.0.06(Total DNs<= 10000)

Compiled: Dec 19 2006

Genesys Telecommunications Laboratories, Inc., Copyright 1998 - 2006

Creating equipment from ConfigServer...

Can't create equip from Cfg Server: can't open cfg-server for async client

Type any key to exit ...



Title: Re: Simulator G3 PBX
Post by: G.F. on September 15, 2009, 04:39:40 PM
So from the information provided;
- your ConfigServer is running on [b]localhost[/b] port [b]7020[/b]
- your switch name in CME is [b]madridswitch[/b]
- your tserver name is [b]mamadridtserver[/b]
If this is all correct (specifically the port of your Config Server)...is there really the carriage return in the BAT file and pls post an export of the annex tab for the madridswitch.
Title: Re: Simulator G3 PBX
Post by: zeindus on September 16, 2009, 06:19:16 AM

1) Yes this is all correct (the tserver is named [i][b]madridtserver[/b][/i]). The localhost is also "gene2" in this command, because the BAT file is located and launch from "gene2". The result was the same even using "gene2" instead of "localhost".

2) In the BAT file, there is not the carriage return as it appears in the report I have posted first.

3) The following is the simulator section in the annex tab:

[Simulator]

console-port=17001

cti-protocol-mode=g3

entry-point00=2000,18002000,0.25

entry-point01=2001

entry-point02=2002

entry-point03=2003

hostname=gene2

port=17000

probability-answer=0.51

probability-no-answer=0.35

queue-tout=30

ringing-tout=30

start-call-id=500

start-trunk-num=1000

step_call-id=6

trunk-num-range=16

More details in the file uploaded (madridswitch.cfg and madridtserver.cfg).

Thanks
Title: Re: Simulator G3 PBX
Post by: ecki on September 16, 2009, 07:33:27 AM
Is the Configuration server running on the same host (gene2) ?
Title: Re: Simulator G3 PBX
Post by: zeindus on September 16, 2009, 08:28:10 AM
No the config server is running on another host (gene1).
The following is my config:
on host "gene1": cfg-dbserver, confserv, msgserver_log, scs_pri, sci, sce, logdbserver
on host "gene2": madridswitch, madridtserver, msgserver_urs, scs_bck

from gene1, I can ping gene2. And from gene2, I can  ping Gene1.
From Gene1, using SCI, I can start applications hosted by Gene2, even madridtserver and madridswitch. SCI shows the status "Started". But as madridswitch is concerned, on Gene2, the process n_simg3 is running but  the following  error appears "Can't create equip from Cfg Server: can't open cfg-server for async client"

Thanks
Title: Re: Simulator G3 PBX
Post by: ecki on September 16, 2009, 09:08:30 AM
Then your command line should look like this


C:\GenSim2006\TestSim>n_simg3 -host gene1 -port <config server port usualy 2020> -sw madridswitch -ts madridtserver -pass password
Title: Re: Simulator G3 PBX
Post by: zeindus on September 16, 2009, 09:26:41 AM
Yes it is exactly what I did. It was exactly the following from the working directory C:\GenSim2006\TestSim :

C:\GenSim2006\TestSim>n_simg3 -host gene1 -port 7020 -sw madridswitch -ts madridtserver -pass password

But the error is still there. I Can't connect to config server.

Do you have an idea concerning "async client" ? It seems like,  the cfg server does not permit this connection. Why so ?

Thanks


Title: Re: Simulator G3 PBX
Post by: ecki on September 16, 2009, 09:49:35 AM
First of all, is really config server listening on port 7020? If yes, could you check your config server logfile whether you can see there attempts to connect from simulator? Or post the log here. Additionally you could add to your command line these options
-user default -clapp default

Title: Re: Simulator G3 PBX
Post by: zeindus on September 16, 2009, 05:56:16 PM
I confirm the config server listens on port 7020.
I have checked config server log file. The application named pbx_madrid does try to connect to config server, but feld to get authorization. Reason depends on values of parameters  used in command line (user, pass, clapp, app, etc). Among these reasons we can find: "Application not found", "Application type doesn't match", etc.

Note: The Application type of pbx_madrid is Third party server.

Note: pbx_madrid is a third application server I have defined in CME and which help stat/stop the G3 PBX using SCI. pbx_madrid is like a BAT file.


pls, log file uploaded.
Title: Re: Simulator G3 PBX
Post by: ecki on September 17, 2009, 12:19:57 AM
So what did you configured within your CME app pbx_madrid under start_infor tab in command_line and command_line_arguments?
Title: Re: Simulator G3 PBX
Post by: zeindus on September 17, 2009, 04:52:20 AM

Following are pbx_madrid start info CL and CLA:

working directory: C:\gensim2006\Testsim
Command Line: n_simg3.exe
Command Line Argument: -host gene1 -port 7020 -sw madridswitch -ts madridtserver -pass password -app pbx_madrid

Pls do you make difference between madridswitch and pbx_madrid ?

I have declare madridswitch  as a Generic Switch type, and pbx_madrid as Third party server. Is this the correct way, doing that ?

Thanks
Title: Re: Simulator G3 PBX
Post by: ecki on September 17, 2009, 05:37:53 AM
Change the -app pbx_madrid to  -app default
Title: Re: Simulator G3 PBX
Post by: zeindus on September 17, 2009, 09:05:18 AM

if I replace -app="default" the result is the following error: "Application not found",
If I replace -app="pbx_madrid", the result is: "Application type doesn't match".
What should be the Application type of pbx_madrid ?

Thanks
Title: Re: Simulator G3 PBX
Post by: zeindus on September 24, 2009, 12:43:04 PM
Hi,
Eveything is Ok now. The error came from the command line arguments. It is necessary to provide  -pass and -clapp options. Otherwise it will result in an error.   

here is the  information that should be provided;
n_simg3.exe -host <cfgsrv_host> -port <cfgsrv_port> -sw <CME_switch_name>  -ts <CME_tsrv_name>  -pass <CME_user_password> -clapp <CME_name> -user <CME_user_name>

The command line I should have typed is the following:

n_simg3.exe -host gene1 -port 7020 -sw madridswitch -ts madridtserver -pass password -clapp CME -user superadm

Note: -pass, _clapp, -user are options relating to the config manager. The same you provide in order to log in config Manager.

(n_simg3.exe is the same as testsim.exe)

thank to all of you.

Good luck.