Project

General

Profile

Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm

Added by Dagbégnon MARTIN over 8 years ago

Hi all.
I have installed GoAutodial 3.3 and it's work well. When everything was ok, after an agent logged himself, a call is sent to X-Lite and when the agent unhook, he can hear the sound:conf-onlyperson.gsm and the call is maintained.
But recently, i have had to shutdown the server. After restarting, when an agent logged himself, he can't hear the conf-onlyperson.gsm and the call is automatically hang up.
Please can u help me to fix that??it's very important for me!!!thanks


Replies (8)

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Jefferson Varias over 8 years ago

Hi,

You can try to double check the codec used on the softphone. If possible, please post the asterisk cli logs.

Thanks

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Dagbégnon MARTIN over 8 years ago

Hi Jefferson.
Thanks for your reply.
Please what do you mean by "double check the codec used on the softphone"??
By the way, here is the cli logs of asterisk when i have tried to log as an agent after rebooting the server:

Connected to Asterisk 1.8.23.0-1_centos5.go RPM by currently running on go (pid = 3044)

Verbosity was 3 and is now 6
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:48] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:23:49] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
[Oct 6 08:24:25] WARNING3243: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:24:25] WARNING3243: db.c:649 ast_db_gettree: Database unavailable
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
[Oct 6 08:25:07] NOTICE[3965]: channel.c:5429 __ast_request_and_dial: Unable to request channel SIP/8022
Manager 'sendcron' logged off from 127.0.0.1
> Refreshing DNS lookups.
[Oct 6 08:25:25] WARNING3243: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:25] WARNING3243: db.c:649 ast_db_gettree: Database unavailable
> Refreshing DNS lookups.
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:33] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:34] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
-- Unregistered SIP '8022'
[Oct 6 08:25:36] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:36] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 6 08:25:37] WARNING3132: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
-- Registered SIP '8022' at 192.168.10.170:64733
> Saved useragent "X-Lite 4.8.4 76589-63cda97e-W6.1" for peer 8022
[Oct 6 08:25:37] NOTICE3132: chan_sip.c:21647 handle_response_peerpoke: Peer '8022' is now Reachable. (224ms / 2000ms)
Manager 'sendcron' logged on from 127.0.0.1
Using SIP RTP CoS mark 5
[Oct 6 08:25:45] NOTICE4045: res_rtp_asterisk.c:2361 ast_rtp_read: Unknown RTP codec 126 received from '192.168.10.170:58692'
> Channel SIP/8022-00000000 was answered.
Starting SIP/8022-00000000 at default,8600051,1 failed so falling back to exten 's'
Starting SIP/8022-00000000 at default,s,1 still failed so falling back to context 'default'
[Oct 6 08:25:45] WARNING4055: pbx.c:5363 __ast_pbx_run: Channel 'SIP/8022-00000000' sent into invalid extension 's' in context 'default', but no invalid handler
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Using SIP RTP CoS mark 5
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
> Channel SIP/8022-00000001 was answered.
Starting SIP/8022-00000001 at default,8600051,1 failed so falling back to exten 's'
Starting SIP/8022-00000001 at default,s,1 still failed so falling back to context 'default'
[Oct 6 08:26:08] WARNING[4148]: pbx.c:5363 __ast_pbx_run: Channel 'SIP/8022-00000001' sent into invalid extension 's' in context 'default', but no invalid handler
Manager 'sendcron' logged off from 127.0.0.1

Hop that you can help me to debug this problem. thanks.

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by striker 247 over 8 years ago

hi

can you post the output of below command from linux shell

asterisk -rx "dialplan show 8600051@default"

br
striker
www.striker24x7.blogspot.com

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Dagbégnon MARTIN over 8 years ago

Hi all.
Sorry for my lateness.
I have found a solution to get around the problem: i come back to my last snapshot of the server.
Now i have made some researches about the warning "Unable to open Asterisk database......".
It seems that the wrong user try to access the file or the rights are not configured correctly.
I have made a "ps -aux | grep asterisk" and a "ls -l" in the file where astdb is located and here are the output
1- when the server are ok and working correctly:
[root@go ~]# ps -aux | grep asterisk
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 3325 0.0 0.0 76744 1160 ? Ss Aug02 0:31 /usr/bin/SCREEN -S asterisk
root 3331 0.8 1.1 712128 47480 pts/2 Sl+ Aug02 810:56 /usr/sbin/asterisk -vvvvgcT
root 14494 0.0 0.0 61180 740 pts/9 R+ 08:27 0:00 grep asterisk
[root@go ~]# cd /var/lib/asterisk/
[root@go asterisk]# ls -l
total 88
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 agi-bin
-rw-r--r-- 1 root root 8192 Oct 9 08:27 astdb
drwxr-xr-x 2 root root 4096 Apr 20 18:04 default
drwxr-xr-x 3 asterisk asterisk 4096 Feb 7 2015 documentation
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 images
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 keys
drwxr-xr-x 2 asterisk asterisk 4096 Dec 7 2013 licenses
drwxr-xr-x 2 root root 4096 Oct 16 2014 mohmp3
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 phoneprov
drwxrwxrwx 7 root root 20480 Apr 20 11:39 sounds
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 static-http

2- when i restart the server and encountered the problem
[root@go ~]# ps -aux | grep asterisk
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 3037 0.0 0.0 65944 592 ? S 08:08 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 3056 0.5 0.6 580828 24548 ? Sl 08:08 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
root 3290 0.0 0.0 76648 1064 ? Ss 08:08 0:00 /usr/bin/SCREEN -S asterisk
root 3703 0.0 0.0 61180 732 pts/9 R+ 08:10 0:00 grep asterisk
[root@go ~]# cd /var/lib/asterisk/
You have new mail in /var/spool/mail/root
[root@go asterisk]# ls -l
total 88
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 agi-bin
-rw-r--r-- 1 root root 8192 Oct 9 08:03 astdb
drwxr-xr-x 2 root root 4096 Apr 20 18:04 default
drwxr-xr-x 3 asterisk asterisk 4096 Feb 7 2015 documentation
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 images
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 keys
drwxr-xr-x 2 asterisk asterisk 4096 Dec 7 2013 licenses
drwxr-xr-x 2 root root 4096 Oct 16 2014 mohmp3
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 phoneprov
drwxrwxrwx 7 root root 20480 Apr 20 11:39 sounds
drwxr-xr-x 2 asterisk asterisk 4096 Feb 7 2015 static-http

Here is my question: what user (root or the user "asterisk") should start up the services or access to files related to Asterisk. I have read somewhere that a "chown asterisk:asterisk .." on the file astdb would solve my problem.

I have tried the command gave by Striker (but when the system is ok) and here is the output:
[root@go ~]# asterisk -rx "dialplan show 8600051@default"
[ Context 'default' created by 'pbx_config' ]
'_86000[5-9]X' => 1. Meetme(${EXTEN},F) [pbx_config]
2. Hangup() [pbx_config]

= 1 extension (2 priorities) in 1 context. =
I will try it after after a reboot of the server.

Hope that these informations can help you to help me.
Thanks in adavance.

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Demian Biscocho over 8 years ago

Did you change the IP address of your GOautodial server? Can you post the output of

screen -ls

Looks like the default Asterisk startup script is called on startup. This Asterisk process is run by user Asterisk. The proper way is to use the Vicidial startup script for Asterisk.

2- when i restart the server and encountered the problem
[root@go ~]# ps -aux | grep asterisk
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 3037 0.0 0.0 65944 592 ? S 08:08 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 3056 0.5 0.6 580828 24548 ? Sl 08:08 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
root 3290 0.0 0.0 76648 1064 ? Ss 08:08 0:00 /usr/bin/SCREEN -S asterisk
root 3703 0.0 0.0 61180 732 pts/9 R+ 08:10 0:00 grep asterisk

Disable default Asterisk startup script:

chkconfig --level 2345 asterisk off

The Vicidial Asterisk startup script will then be called in /etc/rc.local.

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Dagbégnon MARTIN over 8 years ago

Hi all.
I have tried chkconfig --level 2345 asterisk off and it has worked.
After a reboot of a server, agent can log themselves normally.
Thanks all for your help.
Now how can i specified that this post is solved?

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Demian Biscocho over 8 years ago

That's good to hear. Just rename the title of the post. Add "[SOLVED]" at the beginning of the title.

RE: Bug goautodial 3.3 after restarting the server:can't hear conf-onlyperson.gsm - Added by Dagbégnon MARTIN over 8 years ago

Hi.
I'm afraid of not knowing how to change the title of the post.

    (1-8/8)
    Go to top