I would set up 5 shell files called pray1.sh, pray2.sh, etc and then set up
5 entries in /etc/crontab to run them at the specified time daily.  The file
pray1.sh should look something like this:

#!/bin/sh

cp /pray1/*.call /tmp

mv /tmp/*.call /var/spool/asterisk/outgoing

 

the entry in /etc/crontab would look like this

0 8 *** root /usr/bin/pray1.sh

 

This would run pray1.sh at 8 am daily.

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bharat
Lalcheta
Sent: Thursday, December 27, 2012 2:22 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Paging for Praying

 

I dont think this is existed.

 

However, its easy to build a script in php or perl or any other language
which check time from file or database and generate call file which execute
paging in asterisk. Just put this script in cron. Thats it...

 

Regards,

 

Bharat Lalcheta

 



 

On Thu, Dec 27, 2012 at 1:29 PM, bilal ghayyad <bilmar...@yahoo.com> wrote:

Hello;

How can I have Paging on Asterisk to call for pray?

The pray is 5 times in a day and there is a timing for pray (actually it can
be existed in a text file or database for the next 2 or 5 years).

My question is compound from two parts:

How can I have Automatic Page?

The automatic page should happens by reading the time and check if the time
is same as this time, then do the Page. How? Is it by cron?

Someone told me that do a cron that call a script which will check the time,
if the time came to do th Page, then do a Page. But really I do not know how
this can be done and I do not know if this is already existed?

Regards
Bilal

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Bharat Lalcheta 

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to