Re: [asterisk-users] if statement recording - after hours

2014-09-11 Thread Mitul Limbani
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

Re: [asterisk-users] if statement recording - after hours

2014-09-11 Thread Brian LaVallee
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

Re: [asterisk-users] if statement recording - after hours

2014-09-11 Thread Eric Wieling
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

Re: [asterisk-users] if statement recording - after hours

2014-09-11 Thread Joseph
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

Re: [asterisk-users] if statement recording - after hours

2014-09-11 Thread James Thomas
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. --

[asterisk-users] if statement recording - after hours

2014-09-11 Thread Joseph
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