Hi, i just have a maybe dummy question but .... it is still a question :P *<action application="record" data="${recordpath}/${service_instance}/${record_filename} 20 200"/>* in my case ${service_instance} is something dynamic and has to be created on the fly. Is there any way FS can create a directory prior to dump the file there? Tihomir.
Run system(); from the dialplan... /b On Sep 14, 2009, at 8:58 AM, Tihomir Culjaga wrote:
Hi,
i just have a maybe dummy question but .... it is still a question :P
<action application="record" data="${recordpath}/${service_instance}/ ${record_filename} 20 200"/>
in my case ${service_instance} is something dynamic and has to be created on the fly.
Is there any way FS can create a directory prior to dump the file there?
Hi, You could use a system call for that: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_system regards, Leon On Sep 14, 2009, at 3:58 PM, Tihomir Culjaga wrote:
Hi,
i just have a maybe dummy question but .... it is still a question :P
<action application="record" data="${recordpath}/${service_instance}/ ${record_filename} 20 200"/>
in my case ${service_instance} is something dynamic and has to be created on the fly.
Is there any way FS can create a directory prior to dump the file there?
Tihomir. _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
yep, just sow it in the meantime... thanks. btw: can i use mod_shout to stream files to a server.. e.g. *<action application="record" data="shout:// server.domain.com/${recordpath}/${service_instance}/${record_filename} 20 200"/>* can it work? T. On Mon, Sep 14, 2009 at 4:15 PM, Leon de Rooij <leon@scarlet-internet.nl>wrote:
Hi, You could use a system call for that:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_system
regards,
Leon
On Sep 14, 2009, at 3:58 PM, Tihomir Culjaga wrote:
Hi,
i just have a maybe dummy question but .... it is still a question :P
*<action application="record" data="${recordpath}/${service_instance}/${record_filename} 20 200"/>*
in my case ${service_instance} is something dynamic and has to be created on the fly.
Is there any way FS can create a directory prior to dump the file there?
Tihomir. _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This works for me: <action application="mkdir" data="${filebase_dir}"/> You must set ' filebase_dir ' before. ----- Original Message ----- From: Tihomir Culjaga To: freeswitch-users@lists.freeswitch.org Sent: Monday, September 14, 2009 4:58 PM Subject: [Freeswitch-users] FS create directory Hi, i just have a maybe dummy question but .... it is still a question :P <action application="record" data="${recordpath}/${service_instance}/${record_filename} 20 200"/> in my case ${service_instance} is something dynamic and has to be created on the fly. Is there any way FS can create a directory prior to dump the file there? Tihomir. ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
nice ... thx. T. On Mon, Sep 14, 2009 at 4:41 PM, Evgeniy Zolotov <zolotov@altron.ua> wrote:
This works for me:
<action application="mkdir" data="${filebase_dir}"/>
You must set ' filebase_dir ' before.
----- Original Message ----- *From:* Tihomir Culjaga <tculjaga@gmail.com> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Monday, September 14, 2009 4:58 PM *Subject:* [Freeswitch-users] FS create directory
Hi,
i just have a maybe dummy question but .... it is still a question :P
*<action application="record" data="${recordpath}/${service_instance}/${record_filename} 20 200"/>*
in my case ${service_instance} is something dynamic and has to be created on the fly.
Is there any way FS can create a directory prior to dump the file there?
Tihomir.
------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Brian West
-
Evgeniy Zolotov
-
Leon de Rooij
-
Tihomir Culjaga