[asterisk-users] Create File Directory

Dan Journo dan at keshercommunications.com
Tue Aug 17 09:09:34 CDT 2010


Hello,

I have to following dial plan.

exten => 5551234,1,Answer()
exten => 5551234,n,Read(ACCOUNTNUMBER|/var/lib/asterisk/clientsounds/company/recordingsystem/welcome_accountnumberplease)
exten => 5551234,n,Read(MENUNUMBER|/var/lib/asterisk/clientsounds/ company /recordingsystem/menu_number_please)
exten => 5551234,n,Read(WHICHMESSAGE|/var/lib/asterisk/clientsounds/ company /recordingsystem/whichmessage|1)
exten => 5551234,n,Playback(/var/lib/asterisk/clientsounds/kesher/recordingsystem/recordaftertone)
exten => 5551234,n,Record(/var/lib/asterisk/clientsounds/features/${ACCOUNTNUMBER}/${MENUNUMBER}/${WHICHMESSAGE}.wav)

However, Record fails if the directory doesnt exist.
How can I automatically create the directory before (or while) running the Record command?

Thanks
Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100817/0e38f9d6/attachment.htm 


More information about the asterisk-users mailing list