[Asterisk-Users] execute a context from cron

C. Maj cmaj-SPAM at freedomcorpse.com
Thu Jul 1 07:09:13 MST 2004


On Thu, 1 Jul 2004, Michael George waxed:

> I want to have call forwarding (from the POTS) turned on at the close of work
> and turned off automatically by *.
> 
> I can create a context that should do just that, but I need a way to have that
> context spontaneously executed at a specific time.
> 
> I figured that one way to do it would be to have cron run "asterisk -rx<some
> command>" if there were some command that would tell asterisk to go to a
> specific context,extension,priority, but I cannot find that command.
> 
> Does such a command exist?  Or is there a better way to do this that I have
> overlooked?

Try looking at sample.call in the top asterisk source
directory.  Set up cron to create this file to connect to
the specific extention and dump it into:
/var/spool/asterisk/outgoing

--Chris


-- 
Chris Maj, Rochester
cmaj_at_freedomcorpse_dot_com
Pronunciation Guide: Maj == May



More information about the asterisk-users mailing list