WORKING OF VICIDIALER??

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

WORKING OF VICIDIALER??

Postby nitinsrivastava » Tue Jun 20, 2006 1:49 am

Hi,
I am totally a new user of linux and i have installed CentOS over it Asterisk's free PBX and then VICIDIALER, with the help of one linux administrator, who has done for me remotely. Now after this i want to run my VICIDIALER, from my server. I am able to view the Administartion panel and other two panels too. I want to make outbound calls through this vicidialer. Presently i am having My Database in MS-SQL server, where i have information about the users like name, phone number, ssn, etc.. I want to transfer those data from SQL SERVER to MYSQL so that i can start auto dialing.
The manuals provided at website is not having enough stuff to run VICI Dialer easily. I need some technical help from you so that i can start working with my VICIDAILER, and can make outbound calls. If you have any manual then please send me link or help me remotely.
My Asterisk PBX is working fine with IAX2 and SIP softphones very well. Help me....

with regards,
Nitin Srivastava
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Tue Jun 20, 2006 6:21 am

The Manager Manual for VICIDIAL is still being written at this time. I am about 50% done with it at this time and should be able to release it some time next month.

As for your issues, you should be able to export your data from MSSQL in some way and then you will just need to have that data in some form of TXT, CSV or XLS file then you can use the web-based super lead loader to import that file. The lead loader link is available from the LISTS section of the vicidial/admin.php page.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Working of VICIDialer

Postby Nitin » Tue Jun 20, 2006 9:10 am

Hi,

Thanks for your reply. I transfered the data from MSSQL to MYSQL and has been uploaded very well...But i am not able to do any dialing through this. Neither Manual dialing nor automatic dialing is working.

Please let me know - how do we start the automatic dialing through vicidialer. I have made a campaign and added script to it...But my outbound call must contain prefix 70 to make calls through the PBX (Asterisk).

Thanks again for your response

with regards,
Nitin
Nitin
 
Posts: 9
Joined: Tue Jun 20, 2006 8:59 am

Postby mflorell » Tue Jun 20, 2006 11:14 am

I think you would have an easier time if you contated one of our recommended consultants:
http://astguiclient.sourceforge.net/consultants.html

There are a whole lot of items that you need to make sure are configured properly (which is not very easy if you are not that familiar with Asterisk) or else this will take you weeks to get working and you will be asking a lot of questions.

On to your questions:
- is your AST_VDhopper.pl script running and putting leads in your hopper?
- is your AST_update.pl script runnng?
- you can set your dialing prefix for VICIDIAL in the Campaign Detail screen "dial prefix" field
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Working of VICI Dialer

Postby Nitin » Tue Jun 20, 2006 12:46 pm

Thanks for your response. Our Asterisk is configured and works well with the soft phone. We just need to integrate it with VICI dialer and start making outbound calls. Apart from the files that you mentioned in your response, do we need to do anything else in order to start making outbound calls? We have uploaded the data. Do we need to integrate the dialer with our Asterisk PBX and the softphone separately?

Thanks Again.
Nitin
 
Posts: 9
Joined: Tue Jun 20, 2006 8:59 am

Postby mflorell » Tue Jun 20, 2006 1:03 pm

Have you read through the entire SCRATCH_INSTALL?

I would recommend reading it since it contains every step you need to make to get VICIDIAL running, including extensions.conf changes and file configurations.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

IDEFISK softphone in CENTOS

Postby nitinsrivastava » Wed Jun 21, 2006 6:20 am

Hello Sir,
I have installed the IDEFISK softphone in CENTOS. but when i started it i get this error

[root@asterisk /]# ./idefisk
./idefisk: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

Is there any solution to it. Mean while i have installed its windows version and it has been registered to our PBX. I can make outbound calls through it. I am configuring the VICI Dialer as described in SCRATCH_INSTALL file. I am installing the utilities as described there. Hope that it must start running soon.
but help me how to make auto dialing work, i am not any linux guy.
with regards,
Nitin
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Wed Jun 21, 2006 6:56 am

Looks like it's expecting the expat library to be installed but it's not on your Centos box. I've never run into that problem before, but it should be a matter of finding out what RPM you need to load on your centos box to get libexpat installed.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

please help

Postby nitinsrivastava » Wed Jun 21, 2006 7:24 am

Hi,
I have downloaded the latest version of that softphone from the link u have send me. please see what's the problem is there.
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

RPM VERSION

Postby nitinsrivastava » Wed Jun 21, 2006 7:34 am

I have installed this file idefisk131.tar.gz to my centos m/c
It is having some problems in library. please suggest some easiest way to make it work
with regards,
Nitin
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

vicidialer

Postby nitinsrivastava » Thu Jun 22, 2006 2:23 am

:?:
hi,
Urgently reply me
I have gone through the scratch_install file and have installed all the accessaries given there. I have my IAX softphone working very well with asterisk PBX. but i am not able to use VICIDIALER still now. I think there must be some blunder code change required to run VICI DIALER with ASTERISK PBX over CENTOS. I have created the phone using this URL
http://MYIP/astguiclient/admin.php
and it still not working please help me soon

with regards,
Nitin Srivastava

:?:
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Thu Jun 22, 2006 2:53 am

If you want help beyond what you are receiving already on the forums, double posting the same message will not get it for you. There are consultants who can help you with your setup if you are having trouble:
http://astguiclient.sourceforge.net/consultants.html

As for your specific issue with IDEfisk, if you cannot figure out how to install libexpat you should contact the writers of IDEfisk for support since I have no debug knowledge of IDEfisk or how to get it running beyond the systems I run it on.

Are you having any other VICIDIAL-specific issues?
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

vicidialer

Postby nitinsrivastava » Thu Jun 22, 2006 3:20 am

hello mflorell,
Don't get angry, since yesterday i have not received any reply that's why i have posted it twice so that u may see either of it.
I have still problem in working with your VICI DIALER. You must now understand what is my setting now. I have IDEfisk softphone on my windows machine on the public IP and PBX and VICIDIALER on another Public IP. My IDEfisk has registerd itself to my Asterisk PBX Server and can make outbound calls through it. Now i want only one thing that it starts automatic dialing from that phone and transfer it to some other extensions of the PBX. You have the great knowledge so please let me know how to make it possible. please paste in this forum soon.

with regards,
Nitin Srivastava
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Thu Jun 22, 2006 3:56 am

what is the output of this command in your Linux command-line:
"screen -r"

Are there any records in your vicidial_list table?
Are there any records in your vicidial_hopper table?
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby nitinsrivastava » Thu Jun 22, 2006 5:43 am

hi,
Output i have attached
[root@asterisk ~]# screen -r
There are screens on:
29590.ASTsend (Dead ???)
4988.ASTlisten (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed.


in both the tables vicidial_list and vicidial_hopper has 7 and 1 records respectively.

I have seen now one error in http://MYIP/VICIDAIL/admin.php

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/VICIDIAL/admin.php on line 3784


please help

with regards,
Nitin Srivastava
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Thu Jun 22, 2006 7:10 am

It looks like none of your keepalive cron scripts are running properly. Did you enter all of the entries into the crontab as it states to do in the SCRATCH_INSTALL?

If you did then we need to start by trying to run them manually from the command line and see if they are giving you any errors.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

vicidialer

Postby nitinsrivastava » Thu Jun 22, 2006 7:22 am

Hi,
I am now facing some new problem

screen -r
There are screens on:
29590.ASTsend (Dead ???)
15226.pts-1.asterisk (Attached)
4988.ASTlisten (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be resumed.

Can u tell me in which table the numbers must be placed for auto dialing. Since in manual dialing it is showing that Time out while ringing for 60 sec. but i have no sound of ring.

please reply soon

With regards,
Nitin Srivastava
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Thu Jun 22, 2006 9:30 am

If you are not going to answer my questions then I cannot help you. Where the leads are doesn't matter until you get the core server scripts running. First things first:

It looks like none of your keepalive cron scripts are running properly. Did you enter all of the entries into the crontab as it states to do in the SCRATCH_INSTALL?

If you did then we need to start by trying to run them manually from the command line and see if they are giving you any errors.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Working of ViciDialer

Postby Nitin » Thu Jun 22, 2006 10:19 am

Sorry about that. We have followed the scratch_install - is there a way to double check that the Keepalive cron scripts are running properly?

Seems like we are almost there...hopefully we should be able to test it today. Thanks for all your help.
Nitin
 
Posts: 9
Joined: Tue Jun 20, 2006 8:59 am

Working of ViciDialer

Postby Nitin » Thu Jun 22, 2006 10:22 am

Sorry about that. We have followed the scratch_install - other than doing it manually, is there a way to double check that the Keepalive cron scripts are running properly?

Seems like we are almost there...hopefully we should be able to test it today. Thanks for all your help.
Nitin
 
Posts: 9
Joined: Tue Jun 20, 2006 8:59 am

Postby mflorell » Thu Jun 22, 2006 11:27 am

Run each of them manually in the Linux command line and see if any errors appear:

/home/cron/AST_update.pl --debug

/home/cron/AST_VDauto-dial.pl --debug

These are just two of them, but usually the problem for all can be diagnosed by looking at issues with these two. Post any errors.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby marvin » Fri Jun 23, 2006 12:58 am

Hello Nitin,

try doing "ps -x"
it is expected that you will see these scripts running if not there might be a problem with your cron


3203 ? Ss 0:03 /usr/bin/SCREEN -d -m -S ASTVDauto /home/cron/AST_VDauto_dial.pl
3204 pts/2 Ss+ 6:39 /usr/bin/perl /home/cron/AST_VDauto_dial.pl
3209 ? Ss 0:28 /usr/bin/SCREEN -d -m -S ASTVDremote /home/cron/AST_VDremote_agents.pl
3211 ? Ss 0:00 /usr/bin/SCREEN -d -m -S ASTupdate /home/cron/AST_update.pl
3212 pts/3 Ss+ 2:50 /usr/bin/perl /home/cron/AST_VDremote_agents.pl
3213 pts/4 Ss+ 19:13 /usr/bin/perl /home/cron/AST_update.pl
11798 ? SNs 0:00 /usr/bin/SCREEN -d -m -S ASTlisten /home/cron/AST_manager_listen.pl
11799 pts/0 SNs+ 0:11 /usr/bin/perl /home/cron/AST_manager_listen.pl
11802 ? SNs 0:00 /usr/bin/SCREEN -d -m -S ASTlisten /home/cron/AST_manager_listen.pl
11803 pts/1 SNs+ 0:12 /usr/bin/perl /home/cron/AST_manager_listen.pl
11811 ? SNs 0:00 /usr/bin/SCREEN -d -m -S ASTsend /home/cron/AST_manager_send.pl
11812 pts/5 SNs+ 0:40 /usr/bin/perl /home/cron/AST_manager_send.pl


possible workaround is to put this in your /etc/inittab but is not recommended
21:3:respawn:/home/cron/AST_manager_send.pl --debug
22:3:respawn:/home/cron/AST_manager_listen.pl --debug
23:3:respawn:/home/cron/AST_update.pl --debug
24:3:respawn:/home/cron/AST_VDauto_dial.pl --debug
25:3:respawn:/home/cron/AST_conf_update.pl --debug
marvin
 
Posts: 69
Joined: Wed Jun 21, 2006 1:35 am
Location: Cebu, Philippines

Postby nitinsrivastava » Fri Jun 23, 2006 2:31 am

Hi,
I have gone through the SCRATCH _INSTALL FILE and have now done all the changes indicated there. Now I am facing one error while running this command scree -r

LOOKING FOR Zap clients assigned to this server:
send: Cannot determine peer address at /usr/lib/perl5/site_perl/5.8.5/Net/MySQL.pm line 293


and in this file there is this code

sub _execute_command
{
my $self = shift;
my $command = shift;
my $sql = shift;
my $mysql = $self->{socket};

my $message = pack('V', length($sql) + 1). $command. $sql;
$mysql->send($message, 0);
$self->_dump_packet($message) if Net::MySQL->debug;

my $result;
$mysql->recv($result, BUFFER_LENGTH, 0);
$self->_dump_packet($result) if Net::MySQL->debug;
$self->_reset_status;

if ($self->_is_error($result)) {
return $self->_set_error_by_packet($result);
}
elsif ($self->_is_select_query_result($result)) {
return $self->_get_record_by_server($result);
}
elsif ($self->_is_update_query_result($result)){
return $self->_get_affected_rows_information_by_packet($result); }
else {
croak 'Unknown Result: '. $self->_get_result_length($result). 'byte';
}
}

one more problem while using this command i have this error too
/usr/local/mysql/bin/mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Please help and let me know that where these files resides in the system
AST_VDhopper.pl
AST_update.pl

hope to get reply soon
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby nitinsrivastava » Fri Jun 23, 2006 2:36 am

hello,

I have gon through this command too as sugested by you. I have following output.

[root@asterisk astguiclient]# /home/cron/AST_update.pl --debug
LOOKING FOR Zap clients assigned to this server:
|SELECT extension FROM phones where protocol = 'Zap' and server_ip='59.144.165.1 4'|
send: Cannot determine peer address at /usr/lib/perl5/site_perl/5.8.5/Net/MySQL. pm line 293



[root@asterisk astguiclient]# /home/cron/AST_VDauto-dial.pl --debug
bash: /home/cron/AST_VDauto-dial.pl: No such file or directory



please see.
with regards,
Nitin
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Fri Jun 23, 2006 3:42 am

What version of Net::MySQL are you using?

0.08 is required because 0.09 does not work. The instructions in the SCRATCH INSTALL should have installed 0.08 if you ran them exactly.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby nitinsrivastava » Fri Jun 23, 2006 3:54 am

Hi,

My MYSQL VERSION is 4.1.12
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Fri Jun 23, 2006 4:25 am

Net::MySQL, the perl module, what version of the perl module Net::MySQL is installed on your system, NOT what version of the database software.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby nitinsrivastava » Fri Jun 23, 2006 4:31 am

How to get it, please send me the commands to get it.
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Fri Jun 23, 2006 4:35 am

# locate -u
# locate MySQL.pm

you should see something like this as one of the results:
/usr/lib/perl5/site_perl/5.8.7/Net/MySQL.pm

then just head that file:
# head /usr/lib/perl5/site_perl/5.8.7/Net/MySQL.pm


and you should see a $VERSION variable:
$VERSION = '0.08';
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby nitinsrivastava » Fri Jun 23, 2006 4:45 am

Hi,
Thanks for giving me such valuable info.
Output of your commands.

[root@asterisk ~]# locate -u
[root@asterisk ~]# locate MYSQL.pm
locate: decode_db() aborted. Corrupt database?

I am re installing the Perl Module as given in SCARTCH_INSTALL
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby marvin » Fri Jun 23, 2006 6:39 am

nitinsrivastava wrote:hello,


[root@asterisk astguiclient]# /home/cron/AST_VDauto-dial.pl --debug
bash: /home/cron/AST_VDauto-dial.pl: No such file or directory



please see.
with regards,
Nitin


thats suppose to be an underscore not a dash
/home/cron/AST_VDauto_dial.pl --debug
Last edited by marvin on Sun Jun 25, 2006 9:09 pm, edited 1 time in total.
marvin
 
Posts: 69
Joined: Wed Jun 21, 2006 1:35 am
Location: Cebu, Philippines

Postby marvin » Fri Jun 23, 2006 6:47 am

nitinsrivastava wrote:Hi,
Thanks for giving me such valuable info.
Output of your commands.

[root@asterisk ~]# locate -u
[root@asterisk ~]# locate MYSQL.pm
locate: decode_db() aborted. Corrupt database?

I am re installing the Perl Module as given in SCARTCH_INSTALL


try updating/reinstalling your slocate module "yum update slocate.i386" then do the locate command again "locate -u" & "locate MYSQL.pm"
marvin
 
Posts: 69
Joined: Wed Jun 21, 2006 1:35 am
Location: Cebu, Philippines

Installation problem in CRON

Postby nitinsrivastava » Fri Jun 23, 2006 7:07 am

Hi
while installing this file
install Bundle::CPAN
i have this error

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00signature.....gpg: failed to create temporary file `/root/.gnupg/.#lk0xb7edf9b8.asterisk.local.12781': No such file or directory
gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: Signature made Mon 27 Feb 2006 12:27:02 PM IST using DSA key ID A317C15D
gpg: no writable keyring found: eof
gpg: error reading `[stream]': general error
gpg: Can't check signature: public key not found
==> BAD/TAMPERED signature detected! <==
t/00signature.....FAILED test 1
Failed 1/1 tests, 0.00% okay
t/01loadme........ok
t/02nox...........ok
t/03pkgs..........ok
t/10version.......ok
t/11mirroredby....ok
t/12cpan..........ok
t/30shell.........skipped
all skipped: no Expect, maybe try env CPAN_RUN_SHELL_TEST=1
t/50pod...........skipped
all skipped: Test::Pod 1.00 required for testing POD
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/00signature.t 1 1 100.00% 1
2 tests skipped.
Failed 1/9 test scripts, 88.89% okay. 1/71 subtests failed, 98.59% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Bundle summary: The following items in bundle Bundle::CPAN had installation
problems:
Module::Build CPAN

Now what to do this time. Please reply me.
with regards,
Nitin
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Fri Jun 23, 2006 8:48 am

you don't actually need gpg on there just do a force install:

"force install Bundle::CPAN"

or next time when it asks you if you want to include GPG type "n"
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby nitinsrivastava » Sat Jun 24, 2006 4:34 am

Hi,
I have this message when i run this cmd.

cpan> force install MD5
Running install for module MD5
Running make for G/GA/GAAS/MD5-2.03.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://CPAN.mirror.rafal.ca/pub/CPAN/aut ... .03.tar.gz
Fetching with LWP:
ftp://CPAN.mirror.rafal.ca/pub/CPAN/aut ... /CHECKSUMS
gpg: failed to create temporary file `/root/.gnupg/.#lk0x21f9b8.asterisk.local.18465': No such file or directory
gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: Signature made Wed 21 Jun 2006 02:52:06 PM IST using DSA key ID 450F89EC
gpg: no writable keyring found: eof
gpg: error reading `[stream]': general error
gpg: Can't check signature: public key not found

Signature invalid for distribution file. Please investigate.

Distribution id = G/GA/GAAS/MD5-2.03.tar.gz
CPAN_USERID GAAS (Gisle Aas <gisle@ActiveState.com>)
CALLED_FOR MD5
CHECKSUM_STATUS
CONTAINSMODS MD5
UPLOAD_DATE 2003-11-27
force_update 1
incommandcolor 1
localfile /root/.cpan/sources/authors/id/G/GA/GAAS/MD5-2.03.tar.gz

I'd recommend removing /root/.cpan/sources/authors/id/G/GA/GAAS/CHECKSUMS.
Its signature
is invalid. Maybe you have configured your 'urllist' with
a bad URL. Please check this array with 'o conf urllist', and
retry.


Then i have removed this CHECKSUMS and MD5-2.03.tar.gz files but it not runned well.
please suggest any solutions to this

with regards,
Nitin Srivastava
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby nitinsrivastava » Sat Jun 24, 2006 8:38 am

Hi,
I got this error when try to acess mysql

[root@asterisk cron]# /usr/local/mysql/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@asterisk bin]# ./mysqladmin status
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'


Please help me

Regards

Nitin
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Sat Jun 24, 2006 10:40 am

depending on how you installed mysql or what version you are using, the mysql.sock may be in another location than /tmp/mysql.sock like /var/run/mysql/mysql.sock

in this case the easiest thing to do is just sym-link the file:

ln -s /var/run/mysql/mysql.sock /tmp/mysql.sock
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby enjay » Mon Jun 26, 2006 11:08 am

additionally make sure mysql is running and that it is listening on localhost.

-enjay
enjay
 
Posts: 806
Joined: Mon Jun 19, 2006 12:40 pm
Location: Utah

Postby nitinsrivastava » Tue Jun 27, 2006 7:00 am

Hi,
i have two new problems first is
[root@asterisk asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
second is
[root@asterisk asterisk]# mysql -u root -ppassw0rd
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)

but there is a file named mysql.sock
that's why i am unable to access my database
help me.
nitinsrivastava
 
Posts: 49
Joined: Tue Jun 20, 2006 1:29 am
Location: NEW DELHI, INDIA

Postby mflorell » Tue Jun 27, 2006 7:09 am

are asterisk and mysql actually running?

"ps -A" on the command line will give you a list of all running programs.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 104 guests