Page 1 of 1

Astguiclient not sending messages to asterisk

PostPosted: Sat Jul 15, 2006 2:03 pm
by naresh
I have successfully completed all steps of scratch_install.txt
Asterisk runs successfully . i.e i can call internally, do
conferencing via meetme only using ztdummy, i can also call outside
lines, I do IAX trunking
ASTguiclient runs properly from a web browser, when i click on a local
extension is says in a messagebox that originate command has been sent
but nothing shows up in ASTERISK CLI not even saying that cron has
logged in (I think this should happen right ?)

PostPosted: Sat Jul 15, 2006 4:00 pm
by mflorell
check that your crontab entries are in place and see if they run when you run them from command line.

Also, run this command and post the results:
screen -r

PostPosted: Sat Jul 15, 2006 11:58 pm
by naresh
I have all entries properly in crontab
1,6,11,16,21,26,31,36,41,46,51,56 * * * 1,2,3,4,5,6
/home/cron/AST_CRON_mix_recordings_BASIC.pl
* * * * * /home/cron/ADMIN_keepalive_AST_update.pl
* * * * * /home/cron/ADMIN_keepalive_AST_send_listen.pl
* * * * * /home/cron/ADMIN_keepalive_AST_VDautodial.pl
* * * * * /home/cron/ADMIN_keepalive_AST_VDremote_agents.pl
* * * * * /home/cron/AST_manager_kill_hung_congested.pl
* * * * * /home/cron/AST_vm_update.pl
* * * * * /home/cron/AST_conf_update.pl
11 * * * * /home/cron/AST_flush_DBqueue.pl -q
/home/cron/AST_conf_update.pl


When i do screen -r

The *CLI> shows up and what ever i do in web browser nothing shows up
in this window
I am running the system as root.

PostPosted: Sun Jul 16, 2006 1:07 am
by naresh
When i do crontab -l the output is
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/croninit installed on Sun Jul 16 11:20:05 2006)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
MAILTO="root"
LANG="en_US"
1,6,11,16,21,26,31,36,41,46,51,56 * * * * /home/cron/AST_CRON_mix_recordings_BASIC.pl
* * * * * /home/cron/ADMIN_keepalive_AST_update.pl
* * * * * /home/cron/ADMIN_keepalive_AST_send_listen.pl
* * * * * /home/cron/ADMIN_keepalive_AST_VDautodial.pl
* * * * * /home/cron/ADMIN_keepalive_AST_VDremote_agents.pl
* * * * * /home/cron/AST_manager_kill_hung_congested.pl
* * * * * /home/cron/AST_conf_update.pl
11 * * * * /home/cron/AST_flush_DBqueue.pl -q
33 * * * * /home/cron/AST_cleanup_agent_log.pl
* * * * * /home/cron/AST_VDhopper.pl -q
1 1 * * * /home/cron/ADMIN_adjust_GMTnow_on_leads.pl --debug
2 1 * * * /home/cron/AST_reset_mysql_vars.pl
3 1 * * * /home/cron/AST_DB_optimize.pl
30 * * * * /usr/local/bin/ntpdate -u 18.145.0.30 2>/dev/null 1>&2
2 0 * * 0 /home/cron/AST_agent_week.pl
You have mail in /var/spool/mail/root


When i look into mail /var/spool/mail/root
I get

From root@calls.gkg.in Sun Jul 16 11:30:16 2006
Return-Path: <root@calls.gkg.in>
X-Original-To: root
Delivered-To: root@calls.gkg.in
Received: by calls.gkg.in (Postfix, from userid 0)
id 03C6759500; Sun, 16 Jul 2006 11:30:15 +0530 (IST)
From: root@calls.gkg.in
To: root@calls.gkg.in
Subject: Cron <root@calls> /home/cron/AST_manager_kill_hung_congested.pl
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <LANG=en_US>
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: <20060716060016.03C6759500@calls.gkg.in>
Date: Sun, 16 Jul 2006 11:30:15 +0530 (IST)

send: Cannot determine peer address at /usr/lib/perl5/site_perl/5.8.8/Net/MySQL.pm line 293


I look in /usr/lib/perl5/site_perl/5.8.8/Net/ there is no MySQL.pm

and have installed in CPAN NET::MySQL version 0.09

PostPosted: Sun Jul 16, 2006 7:08 am
by mflorell
You need to install Net::MySQL version 0.08 as per the SCATCH_INSTALL:
install O/OY/OYAMA/Net-MySQL-0.08.tar.gz

version 0.09 does not work and I don't know anyone who has gotten it to work.

PostPosted: Mon Jul 17, 2006 12:42 am
by naresh
I had already intalled NET::MYSQL 0.08 before doing 0.09
but when i do
/home/cron/ADMIN_area_code_populate.pl


It gave an error saying that this does not work with newer versions of mysql so i installed 0.09

PostPosted: Mon Jul 17, 2006 1:22 am
by mflorell
See the FAQ, that is a password issue and can easily be fixed by
running a command in MySQL or starting mysql with the --old-passwords
option as mentioned in the SCRATCH_INSTALL:
http://astguiclient.sourceforge.net/faq.html#21212

Net::MySQL 0.09 does not work for anyone, and is one of the several
reasons we are changing to DBI DBD::mysql for astGUIclient 2.0.

PostPosted: Tue Jul 18, 2006 4:14 am
by naresh
Ok I have install 0.08 and starting mysql with --old password but still the same

I am now trying with slackware to follow scratch install step by step ona different machine hope it works