Read GotoIfTime function.p
On 12-Sep-2014 3:13 AM, "Joseph" wrote:
> In my dial plan I have these two lines:
>
> exten => _NXX,n,Set(recordfilename=${CALLERID(num)}-${EXTEN}-${
> STRFTIME(${EPOCH},MST,%C%y-%m-%d-%H%M)}.wav)
> exten => _NXX,n,MixMonitor(${recordfilename},b)
>
> How to add
s.digium.com
Subject: [asterisk-users] if statement recording - after hours
In my dial plan I have these two lines:
exten =>
_NXX,n,Set(recordfilename=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y-%m-%d-%H%M)}.wav)
exten => _NXX,n,MixMonitor(${recordfilename},b)
[main]
exten =&g
igium.com] On Behalf Of Joseph
Sent: Thursday, September 11, 2014 5:43 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] if statement recording - after hours
In my dial plan I have these two lines:
exten =>
_NXX,n,Set(recordfilename=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPO
I'm trying to avoid type the same sub-routine on each pattern, so I included
the time in [outgoing] first three lines.
The way I understand if the time is past 17pm it will start recording, execute
next two lines.
But I'm not certain what will happen if the time is before 17pm will it go to
"e
GotoIfTime()
Check out-
http://www.voip-info.org/wiki/view/Asterisk+cmd+GotoIfTime
If the time is within a certain range, execute the recording dialplan. If
it's outside the range, then skip to the dialplan after the recording stuff.
--
In my dial plan I have these two lines:
exten =>
_NXX,n,Set(recordfilename=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y-%m-%d-%H%M)}.wav)
exten => _NXX,n,MixMonitor(${recordfilename},b)
How to add "if" statement to execute these line only after let say 5pm. To
record convers