[asterisk-users] Date in Dialplan
James Sneeringer
jsneerin at gmail.com
Tue Jun 3 18:14:08 CDT 2008
On Mon, Jun 2, 2008 at 8:05 PM, Sanjay Rajdev
<sanjay.rajdev at featherstoneinformatics.com> wrote:
> I want to save the recording of each day in Date Folder e.g.
> exten => s,1,Answer()
> exten => s,2,MixMonitor(/sanjay/recording/${DATE}/${UNIQUEID}.wav)
> How can I compute the $DATE variable?
Looks at the STRFTIME() function. It works just like the strftime(3)
library function and accepts all of the same % conversions. I use it
for exactly the same purpose you have in your example.
-James
More information about the asterisk-users
mailing list