Commit Graph

129 Commits

Author SHA1 Message Date
Anthony Minessale e375d1d2f2 reset offset_pos on seek to 0 2011-05-17 13:00:40 -05:00
Marc Olivier Chouinard 68c9381770 switch_core_file: Fix a regression from earlier commit on some distro forcing warning on 'forced' return function value 2011-04-24 22:47:12 -04:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Anthony Minessale 4ae8282e6c fix possible bad pointer in global vars (please test) 2011-02-02 15:43:26 -06:00
Anthony Minessale 6294bc1620 have samples_out reflect what was written to the FH not the file even with buffering 2011-01-24 09:42:11 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Anthony Minessale 0100eff635 update 2010-11-11 15:37:58 -06:00
Anthony Minessale 17ac6ba9c6 add record overwrite 2010-10-26 19:34:47 -05:00
Anthony Minessale 28046a89de downgrade log message to debug and add more details 2010-09-09 09:27:17 -05:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Anthony Minessale 9cf0d7f846 add append and truncate to audio file api
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15503 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-17 21:40:09 +00:00
Anthony Minessale a58fd5ae15 prevent obscure divide by zero code path
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-10 23:50:58 +00:00
Anthony Minessale 940ba327e7 fix some sample count issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15395 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-06 23:29:36 +00:00
Anthony Minessale df7637f687 change switch_strlen_zero to zstr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale 1fd13eeb5e fix playback_ms and record_ms to work right and add playback_seconds and record_seconds
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15155 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-13 22:29:20 +00:00
Anthony Minessale eab6464f62 fix the crash that was caused by fixing the leak that was preventing the crash in the previous revision
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15115 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-08 14:55:16 +00:00
Anthony Minessale 1ad32b8df1 fix file handle mem leak (thanks pressuerman)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-08 14:01:03 +00:00
Anthony Minessale 32e927514d dont enforce existing file check on streams
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15014 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-29 19:58:02 +00:00
Brian West b2699403a0 FSCORE-443
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14928 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-20 20:16:28 +00:00
Anthony Minessale 67823be168 BOUNTY-9 (regression)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14897 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-16 22:56:30 +00:00
Anthony Minessale bf5e4c30e9 BOUNTY-9 (regression)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14896 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-16 22:25:21 +00:00
Anthony Minessale 9fb893702b BOUNTY-9 (regression)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14895 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-16 22:19:36 +00:00
Anthony Minessale 1a774b9d99 BOUNTY-9 (Thank you Xpander Communications)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14889 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-16 20:09:27 +00:00
Anthony Minessale 0573d3cf09 FSCORE-403
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14331 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-23 15:55:13 +00:00
Brian West a99020173d MODAPP-305 FSCORE-401
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14199 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-10 17:18:02 +00:00
Brian West 5460efa78e remove unused code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13243 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-06 17:34:29 +00:00
Anthony Minessale 8d863760c6 fix memory issue in core file resampling code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13233 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-05 15:09:32 +00:00
Anthony Minessale 523e0653ed FSCORE-341
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12728 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 14:54:13 +00:00
Anthony Minessale c2692bf05a FSCORE-339
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12682 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-20 13:58:45 +00:00
Anthony Minessale ea88aed04b avoid operations on closed file handles in embedded languages
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-23 19:52:29 +00:00
Michael Jerris e8e2bf0ee8 fix msvc 2005 build warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-18 06:22:43 +00:00
Brian West babb2f83f5 update copyright
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:37:37 +00:00
Anthony Minessale c31a7f2563 replace the resampler code with the awesome code from speex
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:35:17 +00:00
Brian West cff0c8b16b do not print waring on record because we can record a file in stereo and mux stereo to mono on playback
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11939 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:05:44 +00:00
Brian West ae220d3341 update email
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Anthony Minessale 459649c654 bang it all, MODAPP-205
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11491 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-26 18:05:00 +00:00
Anthony Minessale 6984e63340 add error checking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11482 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-24 18:11:42 +00:00
Anthony Minessale 2fd7f0b6bb update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11348 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-22 00:18:00 +00:00
Anthony Minessale 51aea0ea08 mux multi-channel audio files to mono to support playing stereo sound files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 17:47:21 +00:00
Anthony Minessale cbc680adc0 fix buffering issue in mod_shout/core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11200 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-14 19:44:14 +00:00
Brian West 6c622d5c27 sigh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11157 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-13 05:22:21 +00:00
Brian West 3e40557761 doh I did that wrong
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-13 05:17:07 +00:00
Brian West ad60ae2a1a If you were to be in a 32k or 48k conference and play an 8k or 16k file into either one you would over run this buffer.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11155 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-13 03:56:40 +00:00
Anthony Minessale f5ece7dc15 fix another buffering regression
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11152 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-12 23:14:55 +00:00
Anthony Minessale 4997507dfe adjust buffering sizes to allow resampling of high defination audio codecs so they can be transcoded to lower and higher levels
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11145 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-12 19:12:09 +00:00
Anthony Minessale c711a50846 fix double close of filehandles and add recording of native files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11108 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-10 03:52:28 +00:00
Anthony Minessale ea5c385281 numerous fixes from regression testing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11104 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-09 20:34:01 +00:00
Brian West df2913511c avoid segfault when playing a 48k wav as a transfer ringback to an 8k ulaw channel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-09 03:28:52 +00:00
Anthony Minessale e6302e9407 fix resampling issues (add to 1.0 branch)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11090 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-08 01:42:09 +00:00
Anthony Minessale 722b830652 look out below....(make current)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10363 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-12 19:28:05 +00:00
Michael Jerris 90f79c3f0d better error message.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10356 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-12 13:41:18 +00:00
Brian West e708b762dc revert previous change so voicemail length check works
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10205 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-30 17:37:52 +00:00
Anthony Minessale 623ba5c271 patch for FSCORE-205
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10202 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-30 12:46:09 +00:00
Brian West b9e0bd8f8d more cleanup polishing things along
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9958 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-11 05:44:11 +00:00
Michael Jerris 64997c4d8e vim extendtab is bad
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Anthony Minessale 4eae981ff2 make local_stream more solid
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-28 15:14:18 +00:00
Anthony Minessale 3c349c274e indent pass 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8686 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:30:03 +00:00
Brian West b0ad7ab50c set tab mode properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Brian West 89b9e1fbf1 small tweak to resampler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7435 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-30 15:45:52 +00:00
Brian West 84161010ab cleanup and consistency.. blah rain @ PHX fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 20:01:02 +00:00
Brian West c815c0599e code formating cleanup, More when I land at PHX
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7392 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 17:36:53 +00:00
Brian West aab6766ece more house keeping.. and one commit tony forgot to commit from my dev box
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7385 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 05:02:52 +00:00
Anthony Minessale f589bee1e6 fix mem err
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7163 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-10 03:12:32 +00:00
Anthony Minessale 9f6f77014f leak protection, better than mighty putty
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7141 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-08 18:35:51 +00:00
Michael Jerris 0932532e6c simplify file interface for stream file interfaces, cleanup.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7042 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-31 19:41:39 +00:00
Michael Jerris 33bd22a308 avoid seg on invalid params to record app.(MODAPP-63)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7026 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-29 23:15:57 +00:00
Michael Jerris fa9efe04e1 fix msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6784 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-14 03:17:30 +00:00
Anthony Minessale 3953014f24 add buffering to local_stream
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6770 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-13 21:34:13 +00:00
Anthony Minessale 44636d333f sample platter
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 21:30:55 +00:00
Anthony Minessale 59e8656698 add missing code to free pools in certian conditions that were overlooked
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6699 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 14:16:24 +00:00
Michael Jerris 55a194e54e use switch_assert macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6661 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 19:23:57 +00:00
Michael Jerris 622a2733dc use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-01 11:28:26 +00:00
Anthony Minessale 230a77714d EXECUTE ORDER 66
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-12 03:28:59 +00:00
Anthony Minessale 7feef76fb2 add uuid fsapi function, last_file_position variable, and volume controls to js callback volume:+1 etc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5498 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-05 17:03:14 +00:00
Traun Leyden 6f78befac9 implement flushEvents() flushDigits() setAutoHangup() and setHangupHook(). reworked dtmfhandler and some aspects relating to threadstate. folded in memory pool thing from mishehu. added more asserts to switch_core_file (coordinated w/ anthony on this)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5442 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 19:14:53 +00:00
Anthony Minessale bcd32125d0 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-14 17:10:46 +00:00
Anthony Minessale c15d7892c0 indent again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:15:25 +00:00
Anthony Minessale debdfb1aab indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale e6a60a20bc spring cleaning 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:34:40 +00:00