Page 1 of 1
verifying vicidial installation
Posted:
Sat Feb 13, 2021 8:59 pm
by Zaraab
[root@vicibox ~]# screen -ls
There are screens on:
1819.ASTconf3way (Detached)
1807.ASTemail (Detached)
1804.ASTVDadFILL (Detached)
1796.ASTfastlog (Detached)
1791.ASTVDadapt (Detached)
1709.asterisk (Detached)
1702.astshell20210214020132 (Detached)
7 Sockets in /var/run/screen/S-root.
What might be wrong? how to achieve 11 sockets?
Using latest SVN for ASTGui client, Asterisk 13.17
Re: verifying vicidial installation
Posted:
Sat Feb 13, 2021 9:20 pm
by carpenox
theres no asterisk 13.17.....but besides that it looks like your asterisk manager isnt running right. It could be a few things, check to see if dahdi is running. if ou are unsure how to do that, check out my blog post:
https://cyburityllc.com/?p=1521
Re: verifying vicidial installation
Posted:
Tue Feb 16, 2021 3:46 pm
by Zaraab
check this vicibox*CLI> core show version
Asterisk 13.17.2-vici built by root @ vicibox on a x86_64 running Linux on 2021-02-14 00:51:55 UTC
[root@vicibox ~]# dahdi_cfg -vv
DAHDI Tools Version - 2.11.1
DAHDI Version: 2.11.1
Echo Canceller(s):
Configuration
======================
Channel map:
0 channels to configure.
[root@vicibox ~]# screen -ls
There are screens on:
24191.ASTemail (Detached)
18484.ASTconf3way (Detached)
18470.ASTVDadapt (Detached)
1804.ASTVDadFILL (Detached)
1796.ASTfastlog (Detached)
1709.asterisk (Detached)
1702.astshell20210214020132 (Detached)
7 Sockets in /var/run/screen/S-root.
Re: verifying vicidial installation
Posted:
Tue Feb 16, 2021 10:10 pm
by carpenox
How do you have that version?lol try updating it maybe. That was probably dropped fast for a reason i never even seen that used before or even heard of it
Re: verifying vicidial installation
Posted:
Wed Feb 17, 2021 4:30 am
by Zaraab
So what can be the solution now?
Re: verifying vicidial installation
Posted:
Wed Feb 17, 2021 9:17 am
by striker
ASTlisten
ASTsend
ASTVDremote
ASTupdate
these sockets are not running in background
run the relevant perl script with debugX to find is there any issue.
/usr/share/astguiclient/AST_manager_listen.pl --debugX
/usr/share/astguiclient/AST_manager_send.pl --debugX
/usr/share/astguiclient/AST_update.pl --debugX
/usr/share/astguiclient/AST_VDremote_agents.pl --debugX
make sure right asterisk version update in the ADMIN > SERVERS
and enabled rebuild conf files in ADMIN > SERVERS.
reload asterisk once.
Re: verifying vicidial installation
Posted:
Wed Feb 17, 2021 6:43 pm
by Zaraab
[root@vdial ~]# /usr/share/astguiclient/AST_manager_listen.pl --debugX
----- DEBUGGING ENABLED -----
----- SUPER-DUPER DEBUGGING -----
problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_manager_listen.pl line 236
Re: verifying vicidial installation
Posted:
Wed Feb 17, 2021 11:59 pm
by striker
you got the clue now
roblem connecting to "localhost", port 5038: Connection refused at
check port 5038 is blocked for localhost.
check the vi /etc/asterisk/manager.conf with necessary settings
make sure right asterisk version update in the ADMIN > SERVERS
and enabled rebuild conf files in ADMIN > SERVERS
Re: verifying vicidial installation
Posted:
Thu Feb 18, 2021 4:42 pm
by carpenox
it is most likely manager.conf, redo it from scratch
Re: verifying vicidial installation
Posted:
Mon Feb 22, 2021 7:18 am
by Zaraab
/usr/share/astguiclient/AST_manager_listen.pl --debugX
----- DEBUGGING ENABLED -----
----- SUPER-DUPER DEBUGGING -----
bad named parameter "Max_buffer_length" given to Net::Telnet::new() at /usr/share/astguiclient/AST_manager_listen.pl line 228
/usr/share/astguiclient/AST_manager_send.pl --debugX
----- DEBUGGING -----
----- EXTRA-VERBOSE DEBUGGING -----
COUNTER_OUTPUT: 1
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1728000
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727999
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727998
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727997
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727996
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727995
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727994
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727993
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727992
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727991
2021-02-22 12:15:25 checking to see if listener is dead ||0|1727990|0|
| 1 /usr/lib/systemd/systemd --switched-root --system --deserialize 22|
| 2 [kthreadd]|
| 4 [kworker/0:0H]|
| 5 [kworker/u4:0]|
| 6 [ksoftirqd/0]|
| 7 [migration/0]|
| 8 [rcu_bh]|
| 9 [rcu_sched]|
| 10 [lru-add-drain]|
| 11 [watchdog/0]|
| 12 [watchdog/1]|
| 13 [migration/1]|
| 14 [ksoftirqd/1]|
| 16 [kworker/1:0H]|
| 18 [kdevtmpfs]|
| 19 [netns]|
| 20 [khungtaskd]|
| 21 [writeback]|
| 22 [kintegrityd]|
| 23 [bioset]|
| 24 [bioset]|
| 25 [bioset]|
| 26 [kblockd]|
| 27 [md]|
| 28 [edac-poller]|
| 29 [watchdogd]|
| 35 [kswapd0]|
| 36 [ksmd]|
| 37 [khugepaged]|
| 38 [crypto]|
| 46 [kthrotld]|
| 47 [kworker/u4:1]|
| 48 [kmpath_rdacd]|
| 49 [kaluad]|
| 51 [kpsmoused]|
| 52 [kworker/0:2]|
| 53 [ipv6_addrconf]|
| 66 [deferwq]|
| 101 [kauditd]|
| 106 [kworker/1:2]|
| 231 [ata_sff]|
| 237 [scsi_eh_0]|
| 239 [scsi_tmf_0]|
| 241 [scsi_eh_1]|
| 242 [scsi_tmf_1]|
| 249 [ttm_swap]|
| 250 [kworker/0:1H]|
| 260 [kworker/1:1H]|
| 272 [jbd2/vda1-8]|
| 273 [ext4-rsv-conver]|
| 352 /usr/lib/systemd/systemd-journald|
| 373 /usr/lib/systemd/systemd-udevd|
| 410 /usr/lib/polkit-1/polkitd --no-debug|
| 412 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation|
| 413 [hwrng]|
| 469 /usr/lib/systemd/systemd-logind|
| 470 /usr/sbin/irqbalance --foreground|
| 472 [nfit]|
| 473 /usr/sbin/crond -n|
| 486 /sbin/agetty --noclear tty1 linux|
| 490 /usr/sbin/chronyd|
| 491 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid|
| 787 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid -H vdial eth0|
| 843 /usr/sbin/sshd -D|
| 845 /usr/sbin/rsyslogd -n|
| 851 /usr/sbin/httpd -DFOREGROUND|
| 852 /usr/bin/python2 -Es /usr/sbin/tuned -l -P|
| 947 /bin/sh /usr/bin/mysqld_safe --basedir=/usr|
| 1130 /usr/sbin/httpd -DFOREGROUND|
| 1131 /usr/sbin/httpd -DFOREGROUND|
| 1132 /usr/sbin/httpd -DFOREGROUND|
| 1133 /usr/sbin/httpd -DFOREGROUND|
| 1137 /usr/sbin/httpd -DFOREGROUND|
| 1331 /usr/libexec/postfix/master -w|
| 1339 pickup -l -t unix -u|
| 1340 qmgr -l -t unix -u|
| 1350 cleanup -z -t unix -u|
| 1355 trivial-rewrite -n rewrite -t unix -u|
| 1367 local -t unix|
| 1368 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock|
| 1525 sshd: root@pts/0|
| 1609 -bash|
| 1710 /usr/bin/SCREEN -d -m -S ASTVDadapt /usr/share/astguiclient/AST_VDadapt.pl --debug|
| 1711 /usr/bin/perl /usr/share/astguiclient/AST_VDadapt.pl --debug|
| 1713 /usr/bin/SCREEN -d -m -S ASTfastlog /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1715 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1718 /usr/bin/SCREEN -d -m -S ASTVDadFILL /usr/share/astguiclient/AST_VDauto_dial_FILL.pl --debug|
| 1721 /usr/bin/perl /usr/share/astguiclient/AST_VDauto_dial_FILL.pl --debug|
| 1782 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1785 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1786 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1787 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1788 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 2043 /usr/bin/SCREEN -S astshell20210222120440|
| 2044 /bin/bash|
| 2058 SCREEN -L -S asterisk|
| 2059 /bin/bash|
| 2074 /usr/sbin/asterisk -vvvvvvvvvvvvvvvvvvvvvgcT|
| 2798 [kworker/0:0]|
| 2987 local -t unix|
| 3190 [kworker/1:0]|
| 3908 /usr/sbin/CROND -n|
| 3921 /usr/bin/perl /usr/share/astguiclient/AST_manager_kill_hung_congested.pl|
| 3956 /usr/bin/SCREEN -d -m -S ASTVDauto /usr/share/astguiclient/AST_VDauto_dial.pl|
| 3957 /usr/bin/perl /usr/share/astguiclient/AST_VDauto_dial.pl|
| 4019 [kworker/1:1]|
| 4026 /usr/bin/perl /usr/share/astguiclient/AST_manager_send.pl --debugX|
| 4034 /bin/ps -o %p %a --no-headers -A|
LISTENER DEAD STOPPING PROGRAM... ATTEMPTING TO START keepalive SCRIPT
0 NEW and 0 QUEUE Actions to send on server 45.77.201.75 1727990
loop counter: |1727989|
PROCESS KILLED MANUALLY... EXITING
2021-02-22 12:15:25 checking to see if listener is dead |1|0|0|0|
| 1 /usr/lib/systemd/systemd --switched-root --system --deserialize 22|
| 2 [kthreadd]|
| 4 [kworker/0:0H]|
| 5 [kworker/u4:0]|
| 6 [ksoftirqd/0]|
| 7 [migration/0]|
| 8 [rcu_bh]|
| 9 [rcu_sched]|
| 10 [lru-add-drain]|
| 11 [watchdog/0]|
| 12 [watchdog/1]|
| 13 [migration/1]|
| 14 [ksoftirqd/1]|
| 16 [kworker/1:0H]|
| 18 [kdevtmpfs]|
| 19 [netns]|
| 20 [khungtaskd]|
| 21 [writeback]|
| 22 [kintegrityd]|
| 23 [bioset]|
| 24 [bioset]|
| 25 [bioset]|
| 26 [kblockd]|
| 27 [md]|
| 28 [edac-poller]|
| 29 [watchdogd]|
| 35 [kswapd0]|
| 36 [ksmd]|
| 37 [khugepaged]|
| 38 [crypto]|
| 46 [kthrotld]|
| 47 [kworker/u4:1]|
| 48 [kmpath_rdacd]|
| 49 [kaluad]|
| 51 [kpsmoused]|
| 52 [kworker/0:2]|
| 53 [ipv6_addrconf]|
| 66 [deferwq]|
| 101 [kauditd]|
| 106 [kworker/1:2]|
| 231 [ata_sff]|
| 237 [scsi_eh_0]|
| 239 [scsi_tmf_0]|
| 241 [scsi_eh_1]|
| 242 [scsi_tmf_1]|
| 249 [ttm_swap]|
| 250 [kworker/0:1H]|
| 260 [kworker/1:1H]|
| 272 [jbd2/vda1-8]|
| 273 [ext4-rsv-conver]|
| 352 /usr/lib/systemd/systemd-journald|
| 373 /usr/lib/systemd/systemd-udevd|
| 410 /usr/lib/polkit-1/polkitd --no-debug|
| 412 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation|
| 413 [hwrng]|
| 469 /usr/lib/systemd/systemd-logind|
| 470 /usr/sbin/irqbalance --foreground|
| 472 [nfit]|
| 473 /usr/sbin/crond -n|
| 486 /sbin/agetty --noclear tty1 linux|
| 490 /usr/sbin/chronyd|
| 491 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid|
| 787 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid -H vdial eth0|
| 843 /usr/sbin/sshd -D|
| 845 /usr/sbin/rsyslogd -n|
| 851 /usr/sbin/httpd -DFOREGROUND|
| 852 /usr/bin/python2 -Es /usr/sbin/tuned -l -P|
| 947 /bin/sh /usr/bin/mysqld_safe --basedir=/usr|
| 1130 /usr/sbin/httpd -DFOREGROUND|
| 1131 /usr/sbin/httpd -DFOREGROUND|
| 1132 /usr/sbin/httpd -DFOREGROUND|
| 1133 /usr/sbin/httpd -DFOREGROUND|
| 1137 /usr/sbin/httpd -DFOREGROUND|
| 1331 /usr/libexec/postfix/master -w|
| 1339 pickup -l -t unix -u|
| 1340 qmgr -l -t unix -u|
| 1350 cleanup -z -t unix -u|
| 1355 trivial-rewrite -n rewrite -t unix -u|
| 1367 local -t unix|
| 1368 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock|
| 1525 sshd: root@pts/0|
| 1609 -bash|
| 1710 /usr/bin/SCREEN -d -m -S ASTVDadapt /usr/share/astguiclient/AST_VDadapt.pl --debug|
| 1711 /usr/bin/perl /usr/share/astguiclient/AST_VDadapt.pl --debug|
| 1713 /usr/bin/SCREEN -d -m -S ASTfastlog /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1715 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1718 /usr/bin/SCREEN -d -m -S ASTVDadFILL /usr/share/astguiclient/AST_VDauto_dial_FILL.pl --debug|
| 1721 /usr/bin/perl /usr/share/astguiclient/AST_VDauto_dial_FILL.pl --debug|
| 1782 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1785 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1786 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1787 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 1788 /usr/bin/perl /usr/share/astguiclient/FastAGI_log.pl --debug|
| 2043 /usr/bin/SCREEN -S astshell20210222120440|
| 2044 /bin/bash|
| 2058 SCREEN -L -S asterisk|
| 2059 /bin/bash|
| 2074 /usr/sbin/asterisk -vvvvvvvvvvvvvvvvvvvvvgcT|
| 2798 [kworker/0:0]|
| 2987 local -t unix|
| 3190 [kworker/1:0]|
| 3908 /usr/sbin/CROND -n|
| 3921 /usr/bin/perl /usr/share/astguiclient/AST_manager_kill_hung_congested.pl|
| 3956 /usr/bin/SCREEN -d -m -S ASTVDauto /usr/share/astguiclient/AST_VDauto_dial.pl|
| 3957 /usr/bin/perl /usr/share/astguiclient/AST_VDauto_dial.pl|
| 4019 [kworker/1:1]|
| 4026 /usr/bin/perl /usr/share/astguiclient/AST_manager_send.pl --debugX|
| 4035 /bin/ps -o %p %a --no-headers -A|
LISTENER DEAD STOPPING PROGRAM... ATTEMPTING TO START keepalive SCRIPT
DONE... Exiting... Goodbye... See you later... Not really, initiating next loop...0 left
DONE... Exiting... Goodbye... See you later... Really I mean it this time
/usr/share/astguiclient/AST_VDremote_agents.pl --debugX
-----DEBUGGING -----
----- SUPER-DUPER DEBUGGING -----
TIME DEBUG: ||0| GMT: 12:16
TIME DEBUG: -5.00|-5.00|0| GMT: 17:16
2021-02-22 12:16:46|PROGRAM STARTED|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2021-02-22 12:16:46|LOGGED INTO MYSQL SERVER ON 1 CONNECTION||
TIME DEBUG: -5.00|-5.00|0| GMT: 17:16
PROCESS KILLED NO LISTENER RUNNING... EXITING
checking to see if listener is dead |0|
0 live remote agents ACTIVE
0 remote agents on calls
CALL WIPE UPDATE: 0E0|READY|||
CALL WIPE UPDATE: 0E0|READY|||
loop counter: |-1|0| |2000|
DONE... Exiting... Goodbye... See you later... Not really, initiating next loop...
2021-02-22 12:16:46|HANGING UP||
2021-02-22 12:16:46|CLOSING DB CONNECTION||
DONE... Exiting... Goodbye... See you later... Really I mean it this time
/usr/share/astguiclient/AST_update.pl --debugX
problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_update.pl line 469
though my port 5038 is open and allowd
Re: verifying vicidial installation
Posted:
Tue Feb 23, 2021 2:03 am
by okli
Is this scratch installation or using Vicibox?
bad named parameter "Max_buffer_length" given to Net::Telnet::new() at /usr/share/astguiclient/AST_manager
This usually indicates different perl Telnet package is installed, need to remove it and use the one coming with vicidial in /extras/Net/ or from Cpan.
Away from computer to guide you further, but you should be able to locate it.
Re: verifying vicidial installation
Posted:
Tue Feb 23, 2021 11:56 am
by Zaraab
Its a scratch and used the normal cpan module installation procedure though.
Re: verifying vicidial installation
Posted:
Wed Feb 24, 2021 2:40 am
by okli
Hard to know what and how was installed with scratch install.
Replace perl Telnet with the vicidial package and these scripts should start working.
Telnet package you currently have is missing that parameter in the code and scripts error out, unable to make the telnet connection to asterisk AMI. That's clearly shown in the log you posted.
Re: verifying vicidial installation
Posted:
Fri Feb 26, 2021 9:40 am
by Zaraab
can u please guide how to "Replace perl Telnet with the vicidial package and these scripts should start working."
i am using centOS 7 and followed this
http://cc24x7.blogspot.com/2019/01/vici ... tos-7.htmlhttps://anwer.home.blog/2019/05/23/vici ... terisk-13/
Re: verifying vicidial installation
Posted:
Fri Feb 26, 2021 4:14 pm
by carpenox
cpan Net::Telnet
Re: verifying vicidial installation
Posted:
Sat Feb 27, 2021 12:14 pm
by Zaraab
Still the same
[root@vc ~]# /usr/share/astguiclient/AST_manager_listen.pl --debugX
----- DEBUGGING ENABLED -----
----- SUPER-DUPER DEBUGGING -----
unknown remote host: at /usr/share/astguiclient/AST_manager_listen.pl line 236
[root@vc ~]# /usr/share/astguiclient/AST_update.pl --debugX
----- SUPER-DUPER DEBUGGING -----
BUILD: 171208-1543
2021-02-27 17:14:11|PROGRAM STARTED|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2021-02-27 17:14:11|LOGGED INTO MYSQL SERVER ON 1 CONNECTION||
SHOW CHANNELS format: 1
|1|SELECT count(*) FROM server_updater where server_ip='45.77.102.143';|
LOOKING FOR Zap/DAHDI clients assigned to this server:
|SELECT extension FROM phones where protocol='Zap' and server_ip='45.77.102.143'|
LOOKING FOR IAX2 clients assigned to this server:
|SELECT extension FROM phones where protocol='IAX2' and server_ip='45.77.102.143' and phone_type NOT LIKE "%trunk%";|
LOOKING FOR SIP clients assigned to this server:
|SELECT extension FROM phones where protocol='SIP' and server_ip='45.77.102.143'|
Zap Clients: |
IAX2 Clients: |
SIP Clients: |
2021-02-27 17:14:11|STARTING NEW MANAGER TELNET CONNECTION||ATTEMPT|ONE DAY INTERVAL:12000||
unknown remote host: at /usr/share/astguiclient/AST_update.pl line 469
Re: verifying vicidial installation
Posted:
Sat Feb 27, 2021 1:54 pm
by carpenox
why is it trying to connect to a remote host for asterisk manager instead of "localhost" ?
Re: verifying vicidial installation
Posted:
Sun Feb 28, 2021 1:06 pm
by Zaraab
yes. how to solve it and make it connect to the local host?
Re: verifying vicidial installation
Posted:
Sun Feb 28, 2021 6:05 pm
by carpenox
manager.conf settings