64 Commits

Author SHA1 Message Date
Dmitry Kunilov
d148a3e412
[mod_amr, mod_amrwb] Fix input data corruption
* Fix input data corruption in AMR and AMRWB codecs

* [amr/amrwb] Check encoded frame size before decoding

* [mod_amr, mod_amrwb] Coding guidelines cleanup.

---------

Co-authored-by: Dmitry Kunilov <dmitry.kunilov@upm.solutions>
Co-authored-by: Andrey Volk <andywolk@gmail.com>
2024-01-24 16:50:08 +03:00
Dragos Oancea
4734904d2d [mod_amr] introduce new cfg setting force-oa to change between OA/BE when originating, show session in debug logs, update configs. 2021-03-10 15:49:10 +02:00
Dragos Oancea
752e1c3386 [mod_amr] handle frame type NO_DATA and add unit test. 2021-03-03 19:51:24 +02:00
Andrey Volk
a2c657c7bb [mod_amr] scan-build: fix dead increment of fmtptmp_pos in switch_amr_init() 2020-05-08 02:56:37 +04:00
Andrey Volk
5b1088d39f
Merge pull request #133 from jay98237438/master
[mod_amr, mod_amrwb] RFC4867 mode-set compliancy
2020-05-08 01:55:50 +04:00
Dragos Oancea
d0502b405e [mod_amr] fix memory leak at load time (xml) 2020-03-06 15:00:33 +00:00
Dragos Oancea
0c2873e726 [mod_amr] scan-build: Array access (from variable 'tocs') results in a null pointer dereference - switch_amr_unpack_oa() 2020-02-25 17:51:09 +00:00
Dragos Oancea
d68a7e2490 FS-10642: [mod_amr], [mod_amrwb]: mark AMR and AMRWB as VBR (don't let mod_native_file load them for playback/recording) 2020-01-22 12:48:30 +00:00
jay98237438
e83c6a4607 [mod_amr] RFC4867 mode-set compliancy
Yield to offered mode-set when set.

From RFC4867:
If a mode set was supplied in the offer, the answerer SHALL return the mode-set unmodified or reject the payload type.
2019-11-21 13:54:33 +00:00
Sergey Safarov
df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Mike Jerris
ade33ae472 FS-9710: fix build in passthrough mode 2016-11-09 14:46:16 -06:00
Mike Jerris
3c17fa6f3f Merge pull request #1039 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:amr_rtcp_feedback to master
* commit 'be3aef4361a6e377dc7391feaf52483f6720b575':
  FS-9710 :  Add AMR Congestion Control / Codec Control (RTCP feedback enabled with "adjust-bitrate" setting)
2016-11-09 10:01:34 -06:00
Dragos Oancea
be3aef4361 FS-9710 : Add AMR Congestion Control / Codec Control (RTCP feedback enabled with "adjust-bitrate" setting) 2016-11-08 06:46:52 -05:00
Dragos Oancea
a0284af8ea FS-9670: add autodetection of opencore-amrnb lib and "--disable-amr" option to configure script 2016-10-27 11:43:58 -04:00
Dragos Oancea
63900a6d86 FS-9664: mod_amr: add AMR NB transcoding capability in bandwidth-efficient mode. Tested with VOLTE devices. 2016-10-24 12:17:53 -04:00
Dragos Oancea
bc8518858e FS-9613: mod_amr: fix AMR mode bitmap ("mode-set" param in remote fmtp) 2016-10-05 06:31:49 -04:00
Brian West
8fd8c84c3b FS-8878 fix compiling without the library installed 2016-03-07 12:20:00 -06:00
Dragos Oancea
8dcf8caa85 FS-8878: mod_amr: make AMR NB transcode in octet-align mode (when compiled with HAVE_AMR) 2016-02-26 10:50:18 -05:00
Ken Rice
6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Nathan Neulinger
32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Ken Rice
c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05: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
633f193dae add bitrate patch from moc with some extra stuff for late neg mode 2010-09-29 16:52:43 -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
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
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
Brian West
514abec169 more codec docs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10844 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-17 03:42:56 +00:00
Anthony Minessale
30c318b995 clean some old members and naming conventions in the codec structs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10084 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-20 17:48:42 +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
Brian West
7af7f3a093 update email address
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-06-18 18:22:20 +00:00
Anthony Minessale
f930eaeec7 indent pass 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8689 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:54:52 +00:00
Brian West
0828af5d34 fix compile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8168 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-22 14:12:59 +00:00
Michael Jerris
5ddf4aba76 honor disable dtx in fmtp (MODCODEC-3)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8135 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-21 19:02:51 +00:00
Brian West
3624982f79 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7539 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-07 04:53:04 +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
f41319e655 Massive codec update. I have also switched G726 to use Steve Underwoods code as it passes all the tests. G726 tested in AAL2 mode with Sipura and G726-32 tested with Snom which does proper bitpacking. Be sure to "make current" before you continue.
/b



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-01 06:22:13 +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
dcc3fb7608 more cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 02:54:41 +00:00
Anthony Minessale
58a8979c6e tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7199 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-13 18:39:51 +00:00
Michael Jerris
54ec86f6ce use switch_snprintf instead of snprintf becuase in insures null termination of strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6707 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 21:53:32 +00:00
Anthony Minessale
7c3f707fef more g722 fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5987 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-19 03:21:37 +00:00
Michael Jerris
8694a4a7ce add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5406 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:41:55 +00:00
Anthony Minessale
95f007586f stage 1 of wrecking ball (duck!)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 20:40:06 +00:00
Michael Jerris
b67f9c5b2a move some modules to use the new module interface macros.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5343 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 17:06:10 +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
3a54126261 spring cleaning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Anthony Minessale
033257583b reflect bit properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-28 18:24:41 +00:00
Michael Jerris
e40c1064ee fix fmtp pass through in pass through mode for amr and g729, add pass through mode for mod_amr, and add mod_amr to the windows build (in pass through mode) To build mod_amr in NON pass through mode you must now have the lib in libs/amr dir in your src tree.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 21:58:11 +00:00
Michael Jerris
d6f7158094 cast atoi returns.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3055 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-15 05:24:00 +00:00