Solved. exten => 5551234,1,Answer() exten => 5551234,n,Read(ACCOUNTNUMBER|/var/lib/asterisk/clientsounds/ company /recordingsystem/welcome_accountnumberplease) exten => 5551234,n,System(mkdir /var/lib/asterisk/clientsounds/features/${ACCOUNTNUMBER}) exten => 5551234,n,Read(MENUNUMBER|/var/lib/asterisk/clientsounds/ company /recordingsystem/menu_number_please) exten => 5551234,n,System(mkdir /var/lib/asterisk/clientsounds/features/${ACCOUNTNUMBER}//${MENUNUMBER}) exten => 5551234,n,Read(WHICHMESSAGE|/var/lib/asterisk/clientsounds/ company /recordingsystem/whichmessage|1) exten => 5551234,n,Playback(/var/lib/asterisk/clientsounds/ company /recordingsystem/recordaftertone) exten => 5551234,n,Record(/var/lib/asterisk/clientsounds/features/${ACCOUNTNUMBER}/${MENUNUMBER}/${WHICHMESSAGE}.wav)
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dan Journo Sent: 17 August 2010 15:10 To: asterisk-users@lists.digium.com Subject: [asterisk-users] Create File Directory 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
-- _____________________________________________________________________ -- 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