There are record_ variables that let you set metadata in recordings (title etc), stereo,rate,direction etc. I would assume it'll be something similar. On 11 November 2014 14:46, Christopher Rienzo <cmrienzo@gmail.com> wrote:
Getting the lib to do it is easy. It's mainly an API problem- how will FS expose something like this?
On Tue, Nov 11, 2014 at 9:38 AM, Brian West <brian@freeswitch.org> wrote:
Looking at the libsndfile API this should be doable but I would need to read up on it more, If you require this feature email consulting@freeswitch.org for a quote on adding this functionality.
Thanks
On Tue, Nov 11, 2014 at 8:33 AM, Brian West <brian@freeswitch.org> wrote:
If he wants to record without transcoding it is the only viable way to do so currently via mod_native_file. The task was a nice exercise as it exposed a nice little segfault in the stop record. (FS-6980).
I fully understood what he wanted, and that it wasn't possible, offering up what we currently can do with mod_native_file.
On Tue, Nov 11, 2014 at 7:49 AM, Ben Langfeld <ben@langfeld.co.uk> wrote:
Brian, was this answer supposed to be to some other question? The question here was about transcoding the recording, not about stereo vs two mono recordings...
On 11 November 2014 11:35, Brian West <brian@freeswitch.org> wrote:
just record to a file without any extension.
<extension name="testing">
<condition field="destination_number" expression="^(1213)$">
<action application="answer"/>
<action application="record_session" data= "/tmp/${uuid}-testing"/>
<action application="sleep" data="50000"/>
</condition>
</extension>
2014-11-11 07:32:26.713403 [INFO] mod_native_file.c:101 Opening File [/tmp/6f1e83a6-1d06-4e31-b641-7d4f825c99d6-testing-in.G722] 16000hz
2014-11-11 07:32:26.713403 [INFO] mod_native_file.c:101 Opening File [/tmp/6f1e83a6-1d06-4e31-b641-7d4f825c99d6-testing-out.G722] 16000hz
Now you'll be all set to waste more time dealing with two files vs the single wav file.
On Tue, Nov 11, 2014 at 4:33 AM, ik <idokan@gmail.com> wrote:
In this specific case, I'm using g711, but can have either a-law or u-law but the service that requires the recording understand only a-law, at the moment I'm using ffmpeg to convert after the call ended, and then send it to that service.
Thanks Ido On Nov 11, 2014 12:24 PM, "Stanislav Sinyagin" <ssinyagin@gmail.com> wrote:
> as far as I understand, FreeSWITCH chooses the WAV parameters which > are matching the current channel sampling frequency and codec. For > example, if you record a G722 call, you would get a 16kHZ WAV file. > > Forcing it into one specific encoding would add real-time CPU load. I > think it's still more preferable to run a post-processing job in low > priority -- this way you ensure that the ongoing calls get the best > serving. > > You can easily catch the event of call ending and trigger the > conversion job, by listening to the events via ESL connection. > > > > > On Tue, Nov 11, 2014 at 10:52 AM, ik <idokan@gmail.com> wrote: > > Thinking in learning better the source code, and might create my > first patch > > to FS :) > > > > On Tue, Nov 11, 2014 at 8:09 AM, Seven Du <dujinfang@gmail.com> > wrote: > >> > >> No. Maybe bounty it? > >> > >> On Monday, November 10, 2014 at 8:53 PM, ik wrote: > >> > >> Hello, > >> > >> I could not find any documentation on this subject. > >> I require to have a recording of an a-law wav file (RIFF > (little-endian) > >> data, WAVE audio, ITU G.711 A-law, mono 8000 Hz). > >> > >> Can I set a variable that tells the record command what type of > codec to > >> store the file with ? > >> > >> I know how to convert a normal wav recording into it using ffmpeg > (for > >> example): > >> > >> $ ffmpeg -i 0.wav -ar 8000 -ac 1 -acodec pcm_alaw 0-alaw.wav > >> > >> But I wish to avoid it, if I can use the record app, or use the > >> uuid_record API for it. > >> > >> Thanks, > >> Ido > >> > _________________________________________________________________________ > >> Professional FreeSWITCH Consulting Services: > >> consulting@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://confluence.freeswitch.org > >> http://www.cluecon.com > >> > >> 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 > >> > >> > >> > >> > _________________________________________________________________________ > >> Professional FreeSWITCH Consulting Services: > >> consulting@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://confluence.freeswitch.org > >> http://www.cluecon.com > >> > >> 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 > > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting@freeswitch.org > > http://www.freeswitchsolutions.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://confluence.freeswitch.org > > http://www.cluecon.com > > > > 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 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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