No Asterisk reload on .conf file update.

All installation and configuration problems and questions

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

No Asterisk reload on .conf file update.

Postby jshasteen » Tue May 05, 2015 7:58 am

I'm trying to get a scratch install to work, specifically this one: https://gist.github.com/wheezydial/cdd12087d5c5f2df1668 using Debian 7. I need support for Sangoma A104 cards and I don't they are currently working with a Vicibox version that includes Asterisk 1.8 (Asterisk 1.8 is another one of my requirements). The scratch install howto is nicely done and everything is working fine except for Asterisk reloads. For instance when I make a change to carriers or phones or any other change that requires a .conf file update Asterisk never gets reloaded. I can see that the configuration file is updated but I then have to do a manual reload. So let's say I add a sip phone to my test scratch-install server. I can see that 'sip-vicidial.conf' gets updated with my new sip phone but I then must manually issue a "asterisk -rx 'sip reload'" for it to work.


AMI is working and my 'manager.conf' has the proper passwords and permissions.

Here is my output from 'crontab -e':
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl


### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f
### recording mixing/compressing/ftping scripts
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3
#0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=server.ip --ftp-login=user --ftp-pass=pass --ftp-directory=/ --ftp-persistent --ftp-validate --transfer-limit=100000 --list-limit=100000
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=192.168.1.115 --ftp-login=vici --ftp-pass=coasta1admin --ftp-directory=RECORDINGS

### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl

### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl

### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl

### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q

### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl

### remove old recordings more than 5 days old, and delete originals after 1 day
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +5 -print | xargs rm -f
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f

### Reboot nightly to manage asterisk issues and memory leaks - uncomment if issues arise
25 2 * * * /usr/sbin/asterisk -r -x stop\ now
30 2 * * * /sbin/shutdown -r 0


### remove text to speech file more than 4 days old
#20 0 * * * /usr/bin/find /var/lib/asterisk/sounds/tts/ -maxdepth 2 -type f -mtime +4 -print | xargs rm -f



screen -ls only shows this:
There are screens on:
2950.ASTfastlog (05/05/2015 08:57:02 AM) (Detached)
2947.ASTVDremote (05/05/2015 08:57:02 AM) (Detached)
2944.ASTVDauto (05/05/2015 08:57:02 AM) (Detached)
2941.ASTlisten (05/05/2015 08:57:02 AM) (Detached)
2938.ASTsend (05/05/2015 08:57:02 AM) (Detached)
2935.ASTupdate (05/05/2015 08:57:02 AM) (Detached)
2880.asterisk (05/05/2015 08:56:51 AM) (Detached)
7 Sockets in /var/run/screen/S-root.



Am I missing a screen service? Seems something is missing that would automatically issue and Asterisk reload.
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am

Re: No Asterisk reload on .conf file update.

Postby bobchaos » Tue May 05, 2015 12:10 pm

those updates are controlled by ADMIN_keepalive_all.pl, which I see properly listed in your crontab. That script requires flags be set in astguiclient.conf (the numbered ones, there's instructions in the sample file on which flags to enable for your given situation), that's a good place to start looking. Also in your asterisk console, you should see sendcron (or whatever name you gave it) log in every minute or so. Does it? That`s what should trigger the reload. You can also verify that `Rebuild conf` is automatically set to true on the dialing server after you do some edits. It will revert to false within a minute so you'll want to hit F5 real fast on the server page :/
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm

Re: No Asterisk reload on .conf file update.

Postby jshasteen » Tue May 05, 2015 1:03 pm

Thanks for the reply. Yes sendcron logs in every minute. The astguiclient.conf flags are set to: VARactive_keepalives => 123468

I'll check the "Rebuild conf" setting to make sure it sticks to 'Y'.
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am

Re: No Asterisk reload on .conf file update.

Postby jshasteen » Tue May 05, 2015 1:44 pm

The problem was that Debian was trying to start Asterisk and then when Vicidial was setting up the Asterisk screen job it would fail since Asterisk was already running. I disabled the Asterisk startup script and let Vicidial take care of Asterisk like it should. I then re-tested and it was working.

Bobchaos, thank you for your help. I feel like you led me in the right direction. Thank you!
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am

Re: No Asterisk reload on .conf file update.

Postby bobchaos » Tue May 05, 2015 4:30 pm

Well, your issue had nothing to do with my suggestion XD Glad you found it tho, nice postback.

*Edit*

If you like .deb distros, check out Vicibox server. It's an OpenSuSE distro fully customized for Vicidial. Scratch install is an awesome learning tool but when moving into prod Vicibox (or GoAutoDial or whichever you like) seriously accelerates deployments and mostly guarantees you won`t forget any detail.
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm

Re: No Asterisk reload on .conf file update.

Postby jshasteen » Wed May 06, 2015 8:20 am

I don't think there is a version of Vicibox that has Asterisk 1.8 and will allow the Sangoma drivers to be compiled. We use channel banks here to interface our sales agents with our dialers and not softphones. I think there is a little better support for Digium T1 cards but then we would have to purchase new cards.
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am

Re: No Asterisk reload on .conf file update.

Postby bobchaos » Wed May 06, 2015 1:16 pm

I've always used Digium hardware and that's supported right out of the box, and I know Sangoma used to be but according to the vicibox server page wanpipe is no longer listed... Don't mean it's not in there tho, no reason to remove it really.

Anyhow, check this out: http://vicibox.com/server/index.html . Asterisk 1.8, pre-patched for vicidial too! The only thing you need that's not listed there is wanpipe. And if for some reason it's not in, you can compile pretty much anything anywhere in the wonderful world of *Nix systems :D just a matter of having the right tools and libs.
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 74 guests