]> git.ipfire.org Git - thirdparty/freeswitch.git/log
thirdparty/freeswitch.git
12 years agoAvoid dereferencing potential null value
Travis Cross [Tue, 28 May 2013 03:55:48 +0000 (03:55 +0000)] 
Avoid dereferencing potential null value

12 years agoRemove assignment without effect
Travis Cross [Tue, 28 May 2013 03:46:53 +0000 (03:46 +0000)] 
Remove assignment without effect

12 years agoAvoid dereferencing potential null value
Travis Cross [Tue, 28 May 2013 03:41:44 +0000 (03:41 +0000)] 
Avoid dereferencing potential null value

12 years agoHandle potential malloc failure better
Travis Cross [Tue, 28 May 2013 03:40:58 +0000 (03:40 +0000)] 
Handle potential malloc failure better

12 years agoFix unlikely memory leak in ESL
Travis Cross [Tue, 28 May 2013 03:01:49 +0000 (03:01 +0000)] 
Fix unlikely memory leak in ESL

12 years agoRemove assignment without effect in fs_cli
Travis Cross [Mon, 27 May 2013 20:47:22 +0000 (20:47 +0000)] 
Remove assignment without effect in fs_cli

12 years agoAvoid dangling reference at end of fs_cli
Travis Cross [Mon, 27 May 2013 20:47:04 +0000 (20:47 +0000)] 
Avoid dangling reference at end of fs_cli

Not that it really matters since we're returning to the OS momentarily
at that point anyway.

12 years agoAdd common include paths for jni.h and jni_md.h
Travis Cross [Sun, 26 May 2013 10:53:31 +0000 (10:53 +0000)] 
Add common include paths for jni.h and jni_md.h

12 years agoFS-5479 --resolve
Jeff Lenk [Mon, 27 May 2013 14:21:43 +0000 (09:21 -0500)] 
FS-5479 --resolve

12 years agofix unused parameter warning on windows
Jeff Lenk [Mon, 27 May 2013 14:18:56 +0000 (09:18 -0500)] 
fix unused parameter warning on windows

12 years agoFix variable type in mod_nibblebill
Travis Cross [Sun, 26 May 2013 11:16:58 +0000 (11:16 +0000)] 
Fix variable type in mod_nibblebill

12 years agoWork around error in pocketsphinx-0.7
Travis Cross [Sun, 26 May 2013 11:25:08 +0000 (11:25 +0000)] 
Work around error in pocketsphinx-0.7

  fsg_search.c:263:2: error: non-void function 'fsg_search_reinit' should return a value [-Wreturn-type]

12 years agoRemove self-assignment without any effect
Travis Cross [Sun, 26 May 2013 09:25:29 +0000 (09:25 +0000)] 
Remove self-assignment without any effect

clang:

  error: explicitly assigning a variable of type 'uint16_t' (aka 'unsigned short') to itself [-Werror,-Wself-assign]

12 years agoRemove extraneous parentheses in mod_say_pl
Travis Cross [Sun, 26 May 2013 11:30:05 +0000 (11:30 +0000)] 
Remove extraneous parentheses in mod_say_pl

12 years agoAdd missing newline at end of mod_say_fa.c
Travis Cross [Sun, 26 May 2013 11:28:06 +0000 (11:28 +0000)] 
Add missing newline at end of mod_say_fa.c

12 years agoRemove extraneous parentheses
Travis Cross [Sun, 26 May 2013 09:17:19 +0000 (09:17 +0000)] 
Remove extraneous parentheses

This resolves a clang warning:

  error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]

12 years agoAdd commit note about shell escaping
Travis Cross [Sun, 26 May 2013 05:25:12 +0000 (05:25 +0000)] 
Add commit note about shell escaping

Disregard the supplemental commit text on
commit 04c3b913aa077f34dbeec710310da9cbeb8bcbd3.

switch_util_quote_shell_arg() is fine.

12 years agoFix typo
Travis Cross [Sun, 26 May 2013 04:55:36 +0000 (04:55 +0000)] 
Fix typo

12 years agoRemove unused variable in mod_rtmp
Travis Cross [Sun, 26 May 2013 04:53:16 +0000 (04:53 +0000)] 
Remove unused variable in mod_rtmp

Unused variables break the build with recent versions of gcc and
clang.

12 years agoQuote arguments to shell when sending email
Travis Cross [Sun, 26 May 2013 01:27:16 +0000 (01:27 +0000)] 
Quote arguments to shell when sending email

Note that the function switch_util_quote_shell_arg is implemented
incorrectly for unix shells, so this is still not safe until that
function is fixed.

Reported-by: Nathan Neulinger <nneul@mst.edu>
FS-5450 --resolve

12 years agoFix memory leaks in mod_tts_commandline
Travis Cross [Sun, 26 May 2013 01:03:08 +0000 (01:03 +0000)] 
Fix memory leaks in mod_tts_commandline

We were using both switch_util_quote_shell_arg and
switch_string_replace without freeing the results even though both
functions malloc.

12 years agoLeave room for switch_escape_string to add a terminating null
Travis Cross [Sat, 25 May 2013 23:28:55 +0000 (23:28 +0000)] 
Leave room for switch_escape_string to add a terminating null

Thanks-to: Nathan Neulinger <nneul@mst.edu>
FS-5448 --resolve

12 years agoFix comment spelling
Travis Cross [Sat, 25 May 2013 21:40:13 +0000 (21:40 +0000)] 
Fix comment spelling

Thanks-to: Mariusz Czułada <manieq.net@gmail.com>
12 years agoFix memory corruption in mod_erlang_event
Travis Cross [Sat, 25 May 2013 21:20:41 +0000 (21:20 +0000)] 
Fix memory corruption in mod_erlang_event

Thanks-to: Alexandre Snarskii <snar@snar.spb.ru>
FS-5465 --resolve

12 years agoDon't setup ZRTP without a session and channel
Travis Cross [Sat, 25 May 2013 20:53:52 +0000 (20:53 +0000)] 
Don't setup ZRTP without a session and channel

FS-5472 --resolve

12 years agodebian: wheezy is the new stable
Travis Cross [Sat, 25 May 2013 09:52:01 +0000 (09:52 +0000)] 
debian: wheezy is the new stable

And jessie is the new testing.

The king is dead, long live the king!

12 years agoHandle a failure of strerror_r
Travis Cross [Sat, 25 May 2013 09:49:32 +0000 (09:49 +0000)] 
Handle a failure of strerror_r

This fixes the build on gcc-4.7.3.  The build was breaking with:

  error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]

12 years agoAdd missing text editor local variable blocks
Travis Cross [Sat, 25 May 2013 09:47:12 +0000 (09:47 +0000)] 
Add missing text editor local variable blocks

12 years agoFix a possible deadlock scenario in the impossible scenario from the last patch.
William King [Sat, 25 May 2013 18:06:01 +0000 (11:06 -0700)] 
Fix a possible deadlock scenario in the impossible scenario from the last patch.

12 years agoRedundant code. The if/else block makes more sense than the equivalent in two separat...
William King [Sat, 25 May 2013 14:46:47 +0000 (07:46 -0700)] 
Redundant code. The if/else block makes more sense than the equivalent in two separate if's.

12 years agoBetter to not pass tmp_socket to setsockopt if there was an error here creating the...
William King [Sat, 25 May 2013 14:36:43 +0000 (07:36 -0700)] 
Better to not pass tmp_socket to setsockopt if there was an error here creating the socket.

12 years agoIt's been missing a break there for ~4 years and instead using the 8k max_ms values...
William King [Sat, 25 May 2013 14:15:49 +0000 (07:15 -0700)] 
It's been missing a break there for ~4 years and instead using the 8k max_ms values(the ptime_div value is the same).

12 years agoCleaning up logically dead code.
William King [Sat, 25 May 2013 14:02:33 +0000 (07:02 -0700)] 
Cleaning up logically dead code.

12 years agoThis condition should NEVER be hit, but in case the started thread is unable to locat...
William King [Sat, 25 May 2013 13:51:22 +0000 (06:51 -0700)] 
This condition should NEVER be hit, but in case the started thread is unable to locate itself in the EVENT_DISOATCH_QUEUE_THREADS array, it's best to return null here and kill the unexpected event thread rather than segfault FS by writing outside of the bounds of the EVENT_DISPATCH_QUEUE_RUNNING array.

12 years agoSmall off by one error. If the array is of size 144, then an index of 144 inclusive...
William King [Sat, 25 May 2013 13:41:03 +0000 (06:41 -0700)] 
Small off by one error. If the array is of size 144, then an index of 144 inclusive is an error.

12 years agoLet's bit a bit safer when dereferencing pointers.
William King [Sat, 25 May 2013 03:03:19 +0000 (20:03 -0700)] 
Let's bit a bit safer when dereferencing pointers.

12 years agoRemoving logically dead code
William King [Sat, 25 May 2013 02:59:20 +0000 (19:59 -0700)] 
Removing logically dead code

12 years agoIf there is a problem reading the dictionary file, don't leak memory...
William King [Sat, 25 May 2013 02:55:37 +0000 (19:55 -0700)] 
If there is a problem reading the dictionary file, don't leak memory...

12 years agoRemoving unused code
William King [Sat, 25 May 2013 02:53:10 +0000 (19:53 -0700)] 
Removing unused code

12 years agoMore explicit and defensive code so if the init fails we know we handling this pointe...
William King [Sat, 25 May 2013 02:49:20 +0000 (19:49 -0700)] 
More explicit and defensive code so if the init fails we know we handling this pointer safely, because  rc_config_init will free the pointer if there was a problem, but it will not set the pointer to NULL.

12 years agoAnother location where mod_rtmp would leak memory.
William King [Sat, 25 May 2013 02:45:24 +0000 (19:45 -0700)] 
Another location where mod_rtmp would leak memory.

12 years agoFix improper handling of a double linked list that could have caused a memory leak.
William King [Sat, 25 May 2013 02:42:02 +0000 (19:42 -0700)] 
Fix improper handling of a double linked list that could have caused a memory leak.

12 years agoAppears to have been a copy paste error because this doesn't do what the api claims...
William King [Sat, 25 May 2013 02:35:43 +0000 (19:35 -0700)] 
Appears to have been a copy paste error because this doesn't do what the api claims, and it also leaks the reference to the new node.

12 years agoFixing a memory leak. name needs to be freed since it's being strdup'd lower.
William King [Sat, 25 May 2013 02:30:57 +0000 (19:30 -0700)] 
Fixing a memory leak. name needs to be freed since it's being strdup'd lower.

12 years agobump
Anthony Minessale [Fri, 24 May 2013 19:25:07 +0000 (14:25 -0500)] 
bump

12 years agobump v1.5.1
Anthony Minessale [Fri, 24 May 2013 19:18:07 +0000 (14:18 -0500)] 
bump

12 years agoFS-5470 --resolve
Anthony Minessale [Fri, 24 May 2013 14:37:25 +0000 (09:37 -0500)] 
FS-5470 --resolve

12 years agoFS-5466 --resolve
Anthony Minessale [Fri, 24 May 2013 14:14:13 +0000 (09:14 -0500)] 
FS-5466 --resolve

12 years agoFS-5453 --resolve
Anthony Minessale [Fri, 24 May 2013 13:13:41 +0000 (08:13 -0500)] 
FS-5453 --resolve

12 years agoFS-5042 changed event body creation
Mariusz Czułada [Fri, 24 May 2013 10:18:00 +0000 (12:18 +0200)] 
FS-5042 changed event body creation

12 years agoFS-4871: reduce logging a bit
Raymond Chandler [Fri, 24 May 2013 00:51:25 +0000 (20:51 -0400)] 
FS-4871: reduce logging a bit

12 years agoFS-5453 --resolve this is a different issue, we just have to hangup the loopback...
Anthony Minessale [Thu, 23 May 2013 14:59:00 +0000 (09:59 -0500)] 
FS-5453 --resolve this is a different issue, we just have to hangup the loopback channel so the loopback and the sip don't both execute the extension

12 years agoswig
Anthony Minessale [Thu, 23 May 2013 14:53:50 +0000 (09:53 -0500)] 
swig

12 years agoFS-5042 --resolve
Anthony Minessale [Thu, 23 May 2013 13:07:10 +0000 (08:07 -0500)] 
FS-5042 --resolve

12 years agoFS-5453 --resolve
Anthony Minessale [Thu, 23 May 2013 13:00:03 +0000 (08:00 -0500)] 
FS-5453 --resolve

12 years agoFS-5431: --resolve fix socket creation loop for mod_skinny to avoid segfault
Nathan Neulinger [Thu, 23 May 2013 13:13:44 +0000 (08:13 -0500)] 
FS-5431: --resolve fix socket creation loop for mod_skinny to avoid segfault

12 years agoMore phrases
Michael S Collins [Thu, 23 May 2013 00:39:07 +0000 (17:39 -0700)] 
More phrases

12 years agoesl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR
Stefan Knoblich [Thu, 23 May 2013 00:07:55 +0000 (02:07 +0200)] 
esl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR

ivrd doesn't use sigaction + SA_RESTART for SIGCHILD. An exiting
child process will interrupt accept() in the parent to handle
the signal, which makes accept() return -1 (errno = EINTR) after
the sighandler function returns.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
12 years agoivrd: fflush() stdout before entering esl_listen()
Stefan Knoblich [Thu, 23 May 2013 00:05:25 +0000 (02:05 +0200)] 
ivrd: fflush() stdout before entering esl_listen()

Fixes repeatedly printing the 'Starting forking listener' message,
if stdout has been redirected into a logfile (for example).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
12 years agoAdd new to-be-recorded phrases highlighting weekly conf call (to add to new demo...
Michael S Collins [Wed, 22 May 2013 20:17:04 +0000 (13:17 -0700)] 
Add new to-be-recorded phrases highlighting weekly conf call (to add to new demo IVR)

12 years agoFS-5440: don't assert on bad input rtmp data
William King [Wed, 22 May 2013 19:38:15 +0000 (12:38 -0700)] 
FS-5440: don't assert on bad input rtmp data

12 years agoFS-5402 --resolve the problem is ent originate has many channels and many causes...
Anthony Minessale [Wed, 22 May 2013 16:01:39 +0000 (11:01 -0500)] 
FS-5402 --resolve the problem is ent originate has many channels and many causes to parse so we need to check it against all the causes

12 years agoFS-5360 change defaults
Anthony Minessale [Wed, 22 May 2013 15:20:29 +0000 (10:20 -0500)] 
FS-5360 change defaults

12 years agoMerge branch 'master' of ssh://git.freeswitch.org:222/freeswitch
Chris Rienzo [Wed, 22 May 2013 17:22:19 +0000 (13:22 -0400)] 
Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch

12 years agomod_http_cache: fix example config
Chris Rienzo [Wed, 22 May 2013 17:22:03 +0000 (13:22 -0400)] 
mod_http_cache: fix example config

12 years agoFS-5455 try this
Anthony Minessale [Wed, 22 May 2013 13:11:24 +0000 (08:11 -0500)] 
FS-5455 try this

12 years agowindows fix trivial compiler warning
Jeff Lenk [Wed, 22 May 2013 15:38:04 +0000 (10:38 -0500)] 
windows fix trivial compiler warning

12 years agoFS-5429: --resolve add minimal idivert support for skinny
Nathan Neulinger [Wed, 22 May 2013 14:58:28 +0000 (09:58 -0500)] 
FS-5429: --resolve add minimal idivert support for skinny

12 years agoFS-5379: --resolve fix skinny phone codec agreement issues due to incorrect hardwired...
Nathan Neulinger [Wed, 22 May 2013 14:27:09 +0000 (09:27 -0500)] 
FS-5379: --resolve fix skinny phone codec agreement issues due to incorrect hardwired ptime, update field names for future coding to be more descriptive

12 years agoFS-5225: --resolve add ability to dial by pressing line button
Nathan Neulinger [Wed, 22 May 2013 14:17:41 +0000 (09:17 -0500)] 
FS-5225: --resolve add ability to dial by pressing line button

12 years agoFS-5267: --resolve avoid null deref if sessions missing
Nathan Neulinger [Wed, 22 May 2013 14:12:46 +0000 (09:12 -0500)] 
FS-5267: --resolve avoid null deref if sessions missing

12 years agomod_http_cache: a couple more unit test cases
Chris Rienzo [Wed, 22 May 2013 12:47:49 +0000 (08:47 -0400)] 
mod_http_cache: a couple more unit test cases

12 years agomod_http_cache: remove unnecessary memset() now that switch_b64_encode() is fixed
Chris Rienzo [Wed, 22 May 2013 12:22:04 +0000 (08:22 -0400)] 
mod_http_cache: remove unnecessary memset() now that switch_b64_encode() is fixed

12 years agomod_http_cache: fix unit test now that switch_b64_encode is fixed
Chris Rienzo [Wed, 22 May 2013 12:19:36 +0000 (08:19 -0400)] 
mod_http_cache: fix unit test now that switch_b64_encode is fixed

12 years agoFS-5436 --resolve
Anthony Minessale [Wed, 22 May 2013 00:39:02 +0000 (19:39 -0500)] 
FS-5436 --resolve

12 years agoFS-5402 revert wait till tomorrow
Anthony Minessale [Tue, 21 May 2013 18:29:05 +0000 (13:29 -0500)] 
FS-5402 revert wait till tomorrow

12 years agoFS-5402
Anthony Minessale [Tue, 21 May 2013 18:22:17 +0000 (13:22 -0500)] 
FS-5402

12 years agoFS-5453 --resolve
Anthony Minessale [Tue, 21 May 2013 17:01:57 +0000 (12:01 -0500)] 
FS-5453 --resolve

12 years agoFS-5457
Anthony Minessale [Tue, 21 May 2013 15:21:45 +0000 (10:21 -0500)] 
FS-5457

12 years agoFS-5376 --resolve
Anthony Minessale [Tue, 21 May 2013 15:04:35 +0000 (10:04 -0500)] 
FS-5376 --resolve

12 years agoFS-5242
Anthony Minessale [Tue, 21 May 2013 15:03:22 +0000 (10:03 -0500)] 
FS-5242

12 years agoFS-5211 --resolve
Anthony Minessale [Tue, 21 May 2013 14:29:50 +0000 (09:29 -0500)] 
FS-5211 --resolve

12 years agoftmod_libpri: Fix possible NULL-ptr dereference crash in on_restart(_ack)()
Stefan Knoblich [Tue, 21 May 2013 15:42:24 +0000 (17:42 +0200)] 
ftmod_libpri: Fix possible NULL-ptr dereference crash in on_restart(_ack)()

Catch single channel RESTART/RESTART ACK events for non-B-channels,
that would lead to a NULL pointer dereference, because those do not have
per-channel private data (chan->call_data = chan_priv == NULL).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
12 years agomod_http_cache: forgot to add write to http_cache:// format
Chris Rienzo [Tue, 21 May 2013 13:27:39 +0000 (09:27 -0400)] 
mod_http_cache: forgot to add write to http_cache:// format

12 years agoAdd mod_say_pl to debian build
Travis Cross [Tue, 21 May 2013 02:33:56 +0000 (02:33 +0000)] 
Add mod_say_pl to debian build

12 years agoSpelling fix
Travis Cross [Tue, 21 May 2013 02:00:43 +0000 (02:00 +0000)] 
Spelling fix

12 years agoFS-5360
Anthony Minessale [Mon, 20 May 2013 17:22:58 +0000 (12:22 -0500)] 
FS-5360

12 years agogetting read_impl too soon here
Anthony Minessale [Mon, 20 May 2013 16:22:37 +0000 (11:22 -0500)] 
getting read_impl too soon here

12 years agoFS-5444 --resolve
Anthony Minessale [Mon, 20 May 2013 13:20:33 +0000 (08:20 -0500)] 
FS-5444 --resolve

12 years agomod_http_cache: added write file format
Chris Rienzo [Mon, 20 May 2013 15:18:40 +0000 (11:18 -0400)] 
mod_http_cache: added write file format

12 years agomod_http_cache: added native Amazon S3 support
Chris Rienzo [Mon, 20 May 2013 13:31:28 +0000 (09:31 -0400)] 
mod_http_cache: added native Amazon S3 support

12 years agoFixed a weakness in error UDPTL lost packet recovery. Hopefully this addresses
Steve Underwood [Mon, 20 May 2013 03:30:11 +0000 (11:30 +0800)] 
Fixed a weakness in error UDPTL lost packet recovery. Hopefully this addresses
FS5202.

12 years agoAdd mod_xml_radius to the modules list, though disabled by default.
William King [Sun, 19 May 2013 03:49:51 +0000 (20:49 -0700)] 
Add mod_xml_radius to the modules list, though disabled by default.

12 years agoTheoretical memory leak where if attr_init failed, then check would have still been...
William King [Sun, 19 May 2013 03:42:03 +0000 (20:42 -0700)] 
Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used.

12 years agoMinor code cleanup. calling va_start without calling va_end doesn't leak does it...
William King [Sun, 19 May 2013 03:15:14 +0000 (20:15 -0700)] 
Minor code cleanup. calling va_start without calling va_end doesn't leak does it? Either way, it's fixed now.

12 years agofull_contact must be freed by sofia. There isn't a chance of this having blown anythi...
William King [Sun, 19 May 2013 02:13:18 +0000 (19:13 -0700)] 
full_contact must be freed by sofia. There isn't a chance of this having blown anything up, but Coverity is right that this should be initialized with NULL to be safe against future refactors.

12 years agoWas causing a very small leak on naptr lookups. Upon review just happened to be a...
William King [Sun, 19 May 2013 00:50:50 +0000 (17:50 -0700)] 
Was causing a very small leak on naptr lookups. Upon review just happened to be a typo missing a bang.

12 years agoMy bad. some how a make didn't catch this issue after a cleanup refactor. In this...
William King [Sun, 19 May 2013 00:46:13 +0000 (17:46 -0700)] 
My bad. some how a make didn't catch this issue after a cleanup refactor. In this instance buf is being treated as an 8 byte number, not a pointer.

12 years agoCoverity reported an Uninitialized pointer read. Upon further digging it appears...
William King [Sun, 19 May 2013 00:34:16 +0000 (17:34 -0700)] 
Coverity reported an Uninitialized pointer read. Upon further digging it appears that there is a code path where incoming packets can come in out of order, so this section of code tries to see if it can find the missed packets. As per FS-5202 there is a case where under heavy load the packet exists, and has most of the packet parsed, but still has a NULL pointer for the packet buffer. These two lines would at least help detect the edge case.

12 years agoEdge case for when you are subscribing to presence on a valet parking lot. In which...
William King [Sun, 19 May 2013 00:06:54 +0000 (17:06 -0700)] 
Edge case for when you are subscribing to presence on a valet parking lot. In which case there would be a small leak.