[asterisk-users] if statement recording - after hours

Joseph syscon780 at gmail.com
Thu Sep 11 16:43:04 CDT 2014


In my dial plan I have these two lines:

exten => _NXXXXXX,n,Set(recordfilename=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},MST,%C%y-%m-%d-%H%M)}.wav)
exten => _NXXXXXX,n,MixMonitor(${recordfilename},b)

How to add "if" statement to execute these line only after let say 5pm.  To record conversation only after 5pm.

-- 
Joseph



More information about the asterisk-users mailing list