See ExecIf in the output of "core show applications". The IF function might be useful, see "core show functions". I assume the Asterisk Book also covers this.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Joseph Sent: Thursday, September 11, 2014 5:43 PM To: [email protected] Subject: [asterisk-users] if statement recording - after hours 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 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
