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? Thank you! -- -M There are 10 kinds of people in this world: Those who can count in binary and those who cannot.
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
On Thu, 2004-07-01 at 09:46, Michael George wrote:> 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?http://www.voip-info.org/tiki-index.php?page=Asterisk%20tips%20openhours
Hi!> 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.Use DbPut() to store a flag, DbGet() to check the flag and then act upon it with GotoIf(). You can also use "asterisk -rx" to issue commands like "database put" to perform the DbPut() from a script, i.e. outside of extensions.conf. Cheers, Philipp
Why don't you include a context on a schedule? I have a support queue included only at certain times, such as monday through friday, 6a to 6p. All other times I include a context that sends that extension straight to voicemail. Check out http://www.voip-info.org/wiki-Asterisk+tips+openhours On Jul 1, 2004, at 6:46 AM, Michael George wrote:> 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? > > Thank you! > > -- > -M > > There are 10 kinds of people in this world: > Those who can count in binary and those who cannot. > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
I simply use ; Timing list for includes is ; ; <time range>|<days of week>|<days of month>|<months> ; include => day|09:30-17:45|mon-fri|*|* include => eve|17:45-23:00|mon-fri|*|* include => eve|00:00-23:59|sat-sun|*|*
Seemingly Similar Threads
- R: execute a context from cron
- CTI (Computer-Telephony Integration) with Asterisk ?
- Has been working for 9 Months - Very Very Strange I cannot dial specific extensions from my dialplan - NOT A CONTEXT PROBLEM!!
- IRQ Misses and Dropped Calls?
- Asterisk PBX Functions via SIP phone