Let me just say I am delighted to be using VICIdial again. Love the additions in version 4.
I am however having an issue with getting my DB/Web server connected to my Telephony Server in my cluster config.
Here is my build.
The DB/Web Server is a Dell 2950 Dual Quad Core server with 8GB of RAM, 146GB SAS drives, Raid 1.
The OS was installed using the ViciBox 4.0.3 preload iso. We ran into an issue installing the Telephony Server however (no CD drive) and had to do a scratch install. We couldn't get the ViciBox iso to install via flash (issue with kiwi boot loader) so we installed OpenSUSE 11.4 and used the vici-install-11.1.sh script (after updating the repository links from 11.1 to 11.4). The Telephony server is a Super Micro Dual Quad Core blade server with 16 GB RAM, 160 SATA drives, Raid 1.
[quote]DB Server Specs:
OpenSuSE v.12.1 64-bit
Kernel v.3.1.10-1.16
Asterisk v.1.4.44-vici
DAHDI v.2.6.1
LibPRI v.1.4.12
Sangoma Wanpipe v.3.5.28
Amfletec VoiceSync v.1.3.0.1
OpenR2 v.1.3.2 for MFC/R2 support
ViciDial SVN Trunk v.2.6-375a build 120831-1523 revision 1858
etc.
uname -a => Linux Vici-DB1 3.1.10-1.16-default #1 SMP Wed Jun 27 05:21:40 UTC 2012 (d016078) x86_64 x86_64 x86_64 GNU/Linux[/quote]
Telphony server specs:
[quote]OpenSuSE v.11.4 64-bit
Asterisk v. 1.4.21.2-vici
DAHDI v.2.5.1
LibPRI v.1.4.12
uname -a => Linux Vici-Dial1 2.6.37.6-24-desktop #1 SMP PREEMPT 2012-10-18 22:36:08 +0200 x86_64 x86_64 x86_64 GNU/Linux[/quote]
We ran through the installation for the DB using the vicibox-install command with no issue. Everything is up and running fine, I can log into the GUI etc. Everything is being saved to the DB, the works.
For the Telephony server I got the vici-install-11.1.sh script to work after a few minor tweaks. Asterisk is installed and can run independently. The right parameters are set for the server to act solely as a Telephony/Agent server during the install, write to server is select in the GUI. At first everything seems fine if I start Asterisk using the command asterisk. But nothing is being written to the configuration files, the sip-vicidial.conf file remains empty after adding phones in the GUI.
After searching the forum quite a bit I stumbled upon a post where Matt explained how the update process works and that the start_asterisk_boot.pl script has to be used for the configuration files to be written. However, when I run the start script I get the following output:
[quote]started screen
changed directory
started new screen session
detached screens
raised ulimit open files
Asterisk started... screen logging on[/quote]
But Asterisk does not start and the following error messages are found in /var/spool/mail/root
[quote]From
root@linux.local Tue Mar 26 19:00:01 2013
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To:
root@linux.localReceived: by linux.local (Postfix, from userid 0)
id D8E5728731; Tue, 26 Mar 2013 19:00:01 -0400 (EDT)
From:
root@linux.local (Cron Daemon)
To:
root@linux.localSubject: Cron <root@Vici-Dial1> /usr/share/astguiclient/AST_vm_update.pl
Content-Type: text/plain; charset=ANSI_X3.4-1968
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20130326230001.D8E5728731@linux.local>
Date: Tue, 26 Mar 2013 19:00:01 -0400 (EDT)
problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_vm_update.pl line 177
From
root@linux.local Tue Mar 26 19:00:03 2013
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To:
root@linux.localReceived: by linux.local (Postfix, from userid 0)
id F3EE722974; Tue, 26 Mar 2013 19:00:01 -0400 (EDT)
From:
root@linux.local (Cron Daemon)
To:
root@linux.localSubject: Cron <root@Vici-Dial1> /usr/share/astguiclient/AST_conf_update.pl
Content-Type: text/plain; charset=ANSI_X3.4-1968
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20130326230001.F3EE722974@linux.local>
Date: Tue, 26 Mar 2013 19:00:01 -0400 (EDT)
problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_conf_update.pl line 258[/quote]
I've re-run the installation for both the SQL and the Telephony server and tinkered quite a bit, quite a few times but to no avail.
The errors point to an attempt to telnet into the Asterisk manager. Is the request suppose to be sent to the localhost on the Telephony server or to the manager on the DB?
[quote] ### connect to asterisk manager through telnet
$t = new Net::Telnet (Port => $telnet_port,
Prompt => '/.*[\$%#>] $/',
Output_record_separator => '',);
#$fh = $t->dump_log("$telnetlog"); # uncomment for telnet log
if (length($ASTmgrUSERNAMEsend) > 3) {$telnet_login = $ASTmgrUSERNAMEsend;}
else {$telnet_login = $ASTmgrUSERNAME;}
[u] $t->open("$telnet_host");[/u]
$t->waitfor('/[01]\n$/'); # print login
$t->print("Action: Login\nUsername: $telnet_login\nSecret: $ASTmgrSECRET\n\n");
$t->waitfor('/Authentication accepted/'); [/quote]
Here are the config files that would be related to the connection between both servers:
DB server:
astguiclient.conf
[quote]# Paths used by astGUIclient
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /srv/www/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor
PATHDONEmonitor => /var/spool/asterisk/monitorDONE
# The IP address of this machine
VARserver_ip => 172.16.1.46
# Database connection information
VARDB_server => localhost
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_custom_user => custom
VARDB_custom_pass => custom1234
VARDB_port => 3306[/quote]
manager.conf
[quote][general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[updatecron]
secret = 1234
read = command
write = command
[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = command
[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user[/quote]
Telephony Server:
astguiclient.conf
[quote]# Paths used by astGUIclient
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /srv/www/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor
PATHDONEmonitor => /var/spool/asterisk/monitorDONE
# The IP address of this machine
VARserver_ip => 172.16.1.44
# Database connection information
VARDB_server => 172.16.1.46
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_custom_user => custom
VARDB_custom_pass => custom1234
VARDB_port => 3306[/quote]
manager.conf
[quote][general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[updatecron]
secret = 1234
read = command
write = command
[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = command
[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user[/quote]
I am at my wits end, the servers are located at a COLO location so I only have remote access. I have another ViciBox installation locally that has the Preloaded iso on it. I am going to try to connect to the DB using that server and see if I can compare the configuration between the local Telephony and the remote Telephony server. But I am not sure what that would accomplish since the configuration files look correct.
Can anyone point me in the right direction as to what the issue could be?
Thank you