reload dialplan asterisk using crontab


11 17 * * * sh /home/ecentrix/bin/test01.sh 2>&1 > /var/log/test01

TIDAK JALAN

cp -rf /etc/asterisk/extensions.conf /etc/asterisk/moses-$(date +%Y%m%d-%H%M%S)
asterisk -rx “dialplan reload”

BERJALAN DENGAN BENAR

cp -rf /etc/asterisk/extensions.conf /etc/asterisk/moses-$(date +%Y%m%d-%H%M%S)
/usr/sbin/asterisk -rx “dialplan reload”

 

menit|jam|hari_dalam_bulan|bulan|hari_dalam_seminggu
0-59|0-23|1-31|1-12|0-6

0=minggu,6=sabtu

Senin-Jumat pukul 15:59
59 15 * * 1,2,3,4,5 sh /home/ecentrix/bin/extensions_malam.sh 2>&1 > /var/log/extensions_malam.log

Sabtu Pukul 13:59
59 13 * * 6 sh /home/ecentrix/bin/extensions_malam.sh 2>&1 > /var/log/extensions_malam.log
Senin-Sabtu 07:59
59 07 * * 1,2,3,4,5,6 sh /home/ecentrix/bin/extensions_pagi.sh 2>&1 > /var/log/extensions_pagi.log

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: