P
P
peronik2014-08-22 21:15:50
Asterisk
peronik, 2014-08-22 21:15:50

How to allow international calls only at certain times of the day in Asterisk?

For example, from 9 a.m. to 12 p.m.
So far, the following comes to mind: change the extension.conf file using cron and do dialplan reload in Asterisk. But maybe there are some built-in Asterisk tools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bahek2462774, 2014-08-22
@peronik

you write some current hour to a variable,
you can get it like this www.voip-info.org/wiki/view/Asterisk+func+strftime
then comparing variables and GotoIf
www.voip-info.org/wiki/view/Asterisk+cmd+ will help you GotoIf
And depending on the condition - move to the desired label

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question