[Home]

Summary:ASTERISK-05982: [patch] app_chanspy.c record in MP3 and other tweaks
Reporter:Juan Carlos Castro y Castro (jccyc)Labels:
Date Opened:2006-01-04 15:36:55.000-0600Date Closed:2011-06-07 14:03:05
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_chanspy
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) spytweaks.diff
Description:This patch does a number of things to app_chanspy.c:

- It creates the 'e' option to encode the raw audio file after recording. Right now, only MP3 encoding is supported through Lame.

- It creates the 'x' option to exit ChanSpy() with a return code of 0 if no channels matching the prefix are found at the first search.

- It attempts a "mkdir -p" if you specify a recording path that doesn't exist.

- It deletes the raw audio file if it is found to be of size zero.

****** ADDITIONAL INFORMATION ******

I would REALLY REALLY like to be able to encode the audio to wav49 (gsm-encoded .WAV) but sox seems to be blissfully unaware of such format. Suggestions are most welcome.
Comments:By: critch (critch) 2006-01-04 15:58:46.000-0600

sox can encode a gsm wave file via the -g option. example

sox orig.wav -g gsm-encoded.wav

By: Russell Bryant (russell) 2006-02-14 13:31:15.000-0600

You should not have to use sox, lame, or any other external resource for encoding the resulting sound file.  You should use the built in translators and file format handlers implemented by the codec_ and format_ modules.  There are many examples, such as app_record, that you can refer to for how to do this.

By: Serge Vecher (serge-v) 2006-05-01 14:36:15

JCCyC: are you able to rewrite this patch as per Russell's comments?

By: Michael Jerris (mikej) 2006-05-19 14:36:36

Closed due to no response.  Feel free to re-open if you can produce a patch as requested.