Open Source Training Seminar FreePBX Paid Support

Ticket #1715 (closed Feature Requests: fixed)

Opened 2 years ago

Last modified 2 months ago

Change call recoding format

Reported by: lazytt Assigned to:
Priority: minor Milestone: 4.0
Component: Core Version: 2.5-branch
Keywords: recoding formats Cc:
Confirmation: Need testing SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

If you chose to record calls, there recorded as .wav. Maybe we can have an option to record in other formats?

What would have to be done is to take the file extension (which dictates the format) from a database, and have a gui option (under general settings? its own module?) to pick the format.

line 546 exten => s,999,MixMonitor?(${CALLFILENAME}.wav)


the .wav would be changed based on the required format

Attachments

monitor.diff (3.7 kB) - added by lazytt on 07/04/08 08:40:14.

Change History

12/30/07 04:37:01 changed by lazytt

  • confirmation set to Unreviewed.

For the meantime, perhaps you can add a [macro-record-enable-custom] context where we can set the recording format so that it doesn't get overwritten on every update (probably by overriding the 999 priority in extnesions_custom,conf). Another way to do this would be to add a global variable for the format and change (${CALLFILENAME}.wav) to (${CALLFILENAME}.${FORMAT})

07/02/08 14:00:32 changed by lazytt

see also #2803

07/04/08 08:39:03 changed by lazytt

  • confirmation changed from Unreviewed to Need testing.

One approach would be to add the settings to the general page. I'va attached a patch for that. You need to add the following to the database for it to work:

INSERT INTO `asterisk`.`globals` (
`variable` ,
`value`
)
VALUES (
'MIXMON_FORMAT', ''
), (
'MIXMON_DIR', ''
), (
'MIXMON_POST', ''
);

I'm hoping to get some feedback on this approach

07/04/08 08:40:14 changed by lazytt

  • attachment monitor.diff added.

07/04/08 13:36:10 changed by p_lindheimer

My opinion on this is that call recording is already fairly heavy on a system and can really load it down and possibly add instability. If you are going to have a lot of recorded files (probably the reason you would wan this feature), it would seem like the added load of transcoding to compressed codecs could worsen the situation.

However - if you want to add the feature it's probably fine. The General Tab is already a real mess so making it a bit more until we com up with a better way to handle all the various things that end up there is probably fine. However, maybe better would simply be to make this configurable in amportal.conf so as not to add the extra clutter. That would be my vote if the feature is needed.

07/05/08 12:09:12 changed by lazytt

Call recording should probably be its own module - with global recording options. But there is also a lot of changes that I would believe should be made to ringroups/follow me which need to be resolved first (which would also remove a lot of the reliance on dialparties - but that's another story).

Most of my servers record calls, and record them in WAV. The only time I needed to shut off recordings for performance reasons was when at the peak of a campaign, push 50k minutes daily, calls where taking a long time (read: 5-10 seconds) to reach all members of the queues.

As far as actual transcoding - wav, ulaw, alaw, and sln will probably have minimal affect at most (aside for disk i/o issues which is codec independent). While gsm and g729 would take more cpu, if the calls are already transcoded (or being passed-thru) in compressed formats, it would probably take less cpu to recorded them in their already compressed format than in the now-default wav.

Yes - the 'advanced' options (directory and run after) should probably be in amportal. Maybe when the general page gets redone well move them there.

r5917

07/05/08 12:09:20 changed by lazytt

  • status changed from new to closed.
  • resolution set to fixed.

07/05/08 12:35:01 changed by p_lindheimer

r5918 also needed

07/05/08 12:35:18 changed by p_lindheimer

  • version changed from 2.2 to 2.5-branch.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads