summaryrefslogtreecommitdiff
path: root/dahdi_monitor.c
AgeCommit message (Collapse)Author
2012-09-21dahdi-monitor: Fix broken control-C behavior and -F output optionRuss Meyerriecks
After hitting control-C when writing a wav file, dahdi_monitor reports "Failed to read in a full wav header. Expect bad things." Also when using the -F output option, the wav header is not written. Reported-by: Richard Miller Internal-Issue-ID: DAHTOOL-59 Patch: dahdi_monitor.diff by Richard Miller (license #5685) Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10717 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-15Use configure to determine the location of header files instead of relying onSean Bright
the platform. Still need to copy bootstrap.sh from asterisk and tonezone.c still needs to be updated appropriately. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7137 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-15Fix some FreeBSD compatibility issues in -toolsTzafrir Cohen
Part of issue #15877. Reported by: Max Khon Patches: dahdi-tools.diff uploaded by Max Khon (license 884) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7134 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-23Pay attention to the return value of fwrite() to silence a compiler warning.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6887 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-08Resolve a compiler warning in dahdi_monitor.Russell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6834 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-23dahdi_monitor: Allow dahdi_monitor to save recordings in wav format.Shaun Ruffell
This is a patch that will allow dahdi_monitor to save recordings directly in wav format for convenience. If the output files extension is '.wav', dahdi_monitor will add the wave header onto the output file. (closes issue #15307) Patch by: mspiceland git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6709 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-21Correct error check for fopen() calls in dahdi_monitor.c.Sean Bright
dahdi_monitor.c was checking for an error calling fopen() by determining if the return value was less than 0. fopen(), however, returns a FILE * and returns NULL on failure. (closes issue #14894) Reported by: gknispel_proformatique Patches: dahdi_monitor_fix_check_fopen_result.patch uploaded by gknispel (license 261) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6421 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-21Use correct return value type for getopt().Sean Bright
In dahdi_monitor.c, the return value of getopt() was being assigned to a char while the function actually returns an int. Fix suggested by reporter. (closes issue #14893) Reported by: gknispel_proformatique git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6420 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-21Whitespace and coding guidelines changesSean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6419 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-17Remove remnants of -p option, since it no longer exists.Jason Parker
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6189 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-14This commit deserves no comment.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5657 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-13The problem with using dahdi_copy_string here is that it is guaranteed to NULLSean Bright
terminate the destination string, which in this case was not correct. So revert back to using strncpy and also decrease the buffer by 1 since it was reserving an extra byte behind NULL for some reason. Fix suggested by reporter. (closes issue #14103) Reported by: gork git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5656 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-21minor fixes to accommodate compilers who check return result usageKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5365 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05clean up license headers in files, add LICENSE files, and apply LGPL ↵Kevin P. Fleming
(instead of GPL) to libtonezone files git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4708 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05use a different name for this file, so it won't try to overwrite existing ↵Kevin P. Fleming
(non-version-controlled) files in existing checkouts git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4707 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-09Fix -f option.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4588 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-01merge r4384 from zaptel/branches/1.4 here tooKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4501 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-01merge r4381 from zaptel/branches/1.4 here tooKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4500 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-26Merge the getopt changes of ztmonitor from zaptel 1.4 .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4466 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-26Remove unused include of tonezone.h from dahdi_monitor and dahdi_tool.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4465 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-25* dahdi.conf -> /etc/dahdi/system.conf in the tools this time.Tzafrir Cohen
* Kill some remaining zaptel strings. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4460 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Remove remaining references to zap devices and some zaptel referencesMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4352 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Remove zapata.conf referenceMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4350 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23Remove Linux Support Services referencesMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4347 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23add version string to all tools, visible using "strings" for nowKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4346 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23yay, all the tools compile nowKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4339 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-05-23initial copyKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4335 a0bf4364-ded3-4de4-8d8a-66a801d63aff