]>
git.ipfire.org Git - thirdparty/freeswitch.git/log
Travis Cross [Wed, 30 Apr 2014 23:02:03 +0000 (23:02 +0000)]
Drop dead assignments
We goto done at the end of these blocks.
Raymond Chandler [Wed, 30 Apr 2014 22:46:59 +0000 (18:46 -0400)]
Travis Cross [Wed, 30 Apr 2014 22:43:33 +0000 (22:43 +0000)]
Drop dead assignment
Travis Cross [Wed, 30 Apr 2014 22:40:30 +0000 (22:40 +0000)]
Drop dead assignments
Raymond Chandler [Wed, 30 Apr 2014 22:36:40 +0000 (18:36 -0400)]
unused
Travis Cross [Wed, 30 Apr 2014 22:08:23 +0000 (22:08 +0000)]
Remove dead assignment, but why...
This assignment isn't doing anything, so it safe to remove it, but
there remains the question of whether there could have been some
actually necessary intention behind this line.
Travis Cross [Wed, 30 Apr 2014 22:00:58 +0000 (22:00 +0000)]
Drop dead assignment
Travis Cross [Wed, 30 Apr 2014 21:57:07 +0000 (21:57 +0000)]
Avoid dead assignment of return value of execv
execv(3) only returns on error, and will always return -1 in that
case.
William King [Wed, 30 Apr 2014 21:37:17 +0000 (14:37 -0700)]
Fix a use after free in a 'theoretical' case in switch_cache_db_persistant_execute_trans_full where the pre_trans_execute statement fails, but SQLSetAutoCommitAttr succeeds
Michael Jerris [Wed, 30 Apr 2014 20:43:35 +0000 (16:43 -0400)]
check return value for es_say_general_count
Michael Jerris [Wed, 30 Apr 2014 20:36:14 +0000 (16:36 -0400)]
make sure old_pid_buffer is null terminated
Michael Jerris [Wed, 30 Apr 2014 20:10:08 +0000 (16:10 -0400)]
fix leaked body in error case
Michael Jerris [Wed, 30 Apr 2014 19:56:36 +0000 (15:56 -0400)]
don't leak file handle if fd = 0
Michael Jerris [Wed, 30 Apr 2014 19:53:26 +0000 (15:53 -0400)]
don't leak if first realloc fails but second one succeeds
Michael Jerris [Wed, 30 Apr 2014 19:48:23 +0000 (15:48 -0400)]
split this into 2 functions so its clear if this function allocates or not
Steve Underwood [Wed, 30 Apr 2014 18:56:53 +0000 (02:56 +0800)]
More fixes from Coverity scans
Michael Jerris [Wed, 30 Apr 2014 17:49:58 +0000 (13:49 -0400)]
make sure receive buffer is always null terminated
Michael Jerris [Wed, 30 Apr 2014 17:44:59 +0000 (13:44 -0400)]
don't leak xml string in dl_logger
Michael Jerris [Wed, 30 Apr 2014 17:31:06 +0000 (13:31 -0400)]
add better bounds checking in dtmf_accepting array to avoid buffer overrun in mod_voicemail_ivr
Michael Jerris [Wed, 30 Apr 2014 17:25:22 +0000 (13:25 -0400)]
fix read beyond buffer length error
Steve Underwood [Wed, 30 Apr 2014 17:19:28 +0000 (01:19 +0800)]
A couple more Coverity issues fixed
Travis Cross [Wed, 30 Apr 2014 17:10:30 +0000 (17:10 +0000)]
Bisect with make -j
Travis Cross [Wed, 30 Apr 2014 17:01:00 +0000 (17:01 +0000)]
Don't unset CCACHE_DIR when bisecting
Michael Jerris [Wed, 30 Apr 2014 16:16:02 +0000 (12:16 -0400)]
FS-6497: --resolve fix for loop initial declaration not allowed
Steve Underwood [Wed, 30 Apr 2014 14:51:59 +0000 (22:51 +0800)]
Another couple of Coverity related cleanups
Michael Jerris [Wed, 30 Apr 2014 14:34:08 +0000 (10:34 -0400)]
remove generated file from tree
Steve Underwood [Wed, 30 Apr 2014 14:27:29 +0000 (22:27 +0800)]
More elimination of warnings with clang
Steve Underwood [Wed, 30 Apr 2014 14:18:46 +0000 (22:18 +0800)]
Eliminate some clang warnings
Chris Rienzo [Wed, 30 Apr 2014 14:06:42 +0000 (10:06 -0400)]
mod_http_cache: CID
1025858 : Thread deadlock (ORDER_REVERSAL)
Michael Jerris [Wed, 30 Apr 2014 12:55:39 +0000 (08:55 -0400)]
gracefully handle allocation failure
Michael Jerris [Wed, 30 Apr 2014 12:51:52 +0000 (08:51 -0400)]
we always have the session in the dialplan function
Michael Jerris [Wed, 30 Apr 2014 12:50:29 +0000 (08:50 -0400)]
we always have the caller profile at this point, if for some reason we don't just instead of crashing
Michael Jerris [Wed, 30 Apr 2014 12:46:11 +0000 (08:46 -0400)]
we always have the seesion in the app function
Michael Jerris [Wed, 30 Apr 2014 12:43:57 +0000 (08:43 -0400)]
remove useless checks of array == 0
Michael Jerris [Wed, 30 Apr 2014 12:33:09 +0000 (08:33 -0400)]
do set compiler flag that compiler doesn't support
Steve Underwood [Wed, 30 Apr 2014 06:41:06 +0000 (14:41 +0800)]
Eliminated another Coverity issue
Steve Underwood [Wed, 30 Apr 2014 05:10:59 +0000 (13:10 +0800)]
Some more coverity issues cleaned up
Steve Underwood [Wed, 30 Apr 2014 04:42:46 +0000 (12:42 +0800)]
Cleared some simple Coverity issues
Anthony Minessale [Tue, 29 Apr 2014 22:24:59 +0000 (18:24 -0400)]
FS-6476 regression where sock would sometimes drop while reading logical frames
William King [Tue, 29 Apr 2014 22:22:38 +0000 (15:22 -0700)]
Correction to commit
0ba59aa6c2d252886eb4889c5d37fe114e07b4f4 using the correct variable in tel uri param parsing for mod_sofia
Michael Jerris [Tue, 29 Apr 2014 18:34:49 +0000 (14:34 -0400)]
silence incorrect warnings about null pointer derference and remove unused code
Anthony Minessale [Mon, 28 Apr 2014 23:20:46 +0000 (04:20 +0500)]
add heartbeat_use_scheduler variable to force the heartbeat to use the scheduler rather than the media stream and also make it auto-chage between modes when going in and out of the media path
Travis Cross [Mon, 28 Apr 2014 22:06:24 +0000 (22:06 +0000)]
Add helper for running git bisect
Michael Jerris [Mon, 28 Apr 2014 20:30:19 +0000 (16:30 -0400)]
this should never happen, but just in case, this will at least calm coverity
Michael Jerris [Mon, 28 Apr 2014 20:21:45 +0000 (16:21 -0400)]
handle null 'status' passed to 'switch_channel_perform_presence' more gracefully
Michael Jerris [Mon, 28 Apr 2014 20:17:56 +0000 (16:17 -0400)]
only enable passthru_ptime_mismatch when set to a true value, not when it is set to any value
Michael Jerris [Mon, 28 Apr 2014 20:12:10 +0000 (16:12 -0400)]
only enable passthru_ptime_mismatch when set to a true value, not when it is set to any value
Michael Jerris [Mon, 28 Apr 2014 20:06:39 +0000 (16:06 -0400)]
remove unused var ocp
Michael Jerris [Mon, 28 Apr 2014 20:02:39 +0000 (16:02 -0400)]
if we can't open /dev/null, you have much bigger issues to deal with
Michael Jerris [Mon, 28 Apr 2014 19:49:57 +0000 (15:49 -0400)]
improve null checks
Michael Jerris [Mon, 28 Apr 2014 19:19:19 +0000 (15:19 -0400)]
remove useless variable
Michael Jerris [Mon, 28 Apr 2014 19:16:03 +0000 (15:16 -0400)]
remove useless statement
Michael Jerris [Mon, 28 Apr 2014 19:12:02 +0000 (15:12 -0400)]
improve error checking for null path
Michael Jerris [Mon, 28 Apr 2014 19:06:39 +0000 (15:06 -0400)]
fix bitwise flag unsetting
Michael Jerris [Mon, 28 Apr 2014 19:00:22 +0000 (15:00 -0400)]
remove unused variable
Michael Jerris [Mon, 28 Apr 2014 18:46:05 +0000 (14:46 -0400)]
don't set variable we don't use, and fix off by 1 buffer overflow in 1 case
Michael Jerris [Mon, 28 Apr 2014 18:38:38 +0000 (14:38 -0400)]
remove unnecessary null check, we would have crashed already if that strdup failed
Brian West [Mon, 28 Apr 2014 18:03:09 +0000 (13:03 -0500)]
don't use memory after free when using naptr with mod_enum with multiple routes
Michael Jerris [Mon, 28 Apr 2014 17:41:48 +0000 (13:41 -0400)]
block of code in here twice was writing over expanded, causing it to potentially leak
Michael Jerris [Mon, 28 Apr 2014 17:31:55 +0000 (13:31 -0400)]
add bounds check to keep rtcp packets with > 5 report blocks from creating a buffer overrun
Anthony Minessale [Mon, 28 Apr 2014 17:10:09 +0000 (22:10 +0500)]
FS-4779 FS-6467 the behaviour from 4479 is now masked behind the param 3pcc-reinvite-bridged-on-ack FS-6467 please test master
Michael Jerris [Mon, 28 Apr 2014 17:01:12 +0000 (13:01 -0400)]
fix deref before null check
Michael Jerris [Mon, 28 Apr 2014 16:40:55 +0000 (12:40 -0400)]
remove unused variable
Anthony Minessale [Mon, 28 Apr 2014 16:16:52 +0000 (21:16 +0500)]
FS-6491 --resolve
This seems to be a paradox when running a perl script from a session then executing perl again on the same session from a different thread.
I fixed it by converting any execution of perl in the execute_on_* family of operators to only run background mode which is to store the command in the session stack to be executed only by the session thread instead of on the spot by the outide thread. changing the execute_on_answer to perl::/path/to/script.pl would also eliminate the crash in code that has not been updated with this patch.
This is just a limitation of embedded perl we have to live with.
William King [Mon, 28 Apr 2014 15:46:48 +0000 (08:46 -0700)]
fixing commit
a7108411233058511c59227617e446f28384dbd0 in switch_config
Previous commit actually broke the functionality since it was now returning if cfg->path[0] was not null.
Also since cfg->path can never be null, this check can be simplified to only check the first index.
Michael Jerris [Mon, 28 Apr 2014 13:54:20 +0000 (09:54 -0400)]
check return value of switch_vasprintf
Michael Jerris [Mon, 28 Apr 2014 13:47:30 +0000 (09:47 -0400)]
fix assigned but never used issue and code cleanup for readability
Michael Jerris [Sat, 26 Apr 2014 19:41:34 +0000 (15:41 -0400)]
we only call this with values, and it would crash if you passed it null anyways, just assert to make it 100% clear
Michael Jerris [Sat, 26 Apr 2014 19:35:27 +0000 (15:35 -0400)]
contact->m_url is an array, don't check array for zero as its useless
Michael Jerris [Sat, 26 Apr 2014 19:29:01 +0000 (15:29 -0400)]
Fix buffer overrun that could have been exploited with a crafted skinny packet designed to exploit this mistake in bounds checking.
Georgiewskiy Yuriy [Sat, 26 Apr 2014 00:49:35 +0000 (04:49 +0400)]
fix memory leaks, tanks to Sharath from packetizer forum.
Brian West [Fri, 25 Apr 2014 20:53:11 +0000 (15:53 -0500)]
FS-3332 --resolve
William King [Fri, 25 Apr 2014 20:49:59 +0000 (13:49 -0700)]
Expanding on
052638186b2784c4142089008adf4289d40c80bc to support boolean tel url params in mod_sofia
William King [Fri, 25 Apr 2014 19:11:09 +0000 (12:11 -0700)]
BNPH-6470 follow up to commit
68d863a179c90d2524f8e761dedb3aebd09c3e75 removing the original line that performed the curl request to avoid a double request in mod_xml_curl
Brian West [Fri, 25 Apr 2014 16:50:06 +0000 (11:50 -0500)]
FS-6470
Brian West [Thu, 24 Apr 2014 19:05:15 +0000 (14:05 -0500)]
FS-6482 --resolve
Anthony Minessale [Thu, 24 Apr 2014 18:21:15 +0000 (23:21 +0500)]
fix issues with heartbeat in bypass media mode
William King [Thu, 24 Apr 2014 16:13:00 +0000 (09:13 -0700)]
Fixing memory leak that would occur when reloading mod_xml_curl
Anthony Minessale [Thu, 24 Apr 2014 15:58:23 +0000 (20:58 +0500)]
revert
Anthony Minessale [Tue, 22 Apr 2014 18:51:44 +0000 (23:51 +0500)]
FS-6477 --resolve
Anthony Minessale [Tue, 22 Apr 2014 18:25:34 +0000 (23:25 +0500)]
FS-6476 --resolve
Chris Rienzo [Tue, 22 Apr 2014 17:29:43 +0000 (13:29 -0400)]
mod_rayo: preserve old caller ID behavior if display name is not given
Chris Rienzo [Tue, 22 Apr 2014 12:50:25 +0000 (08:50 -0400)]
mod_rayo: relax recent caller ID restrictions a bit
Michael Jerris [Mon, 21 Apr 2014 17:33:41 +0000 (13:33 -0400)]
ESL-91: --resolve bigger buffer for args
Travis Cross [Sat, 19 Apr 2014 19:26:27 +0000 (19:26 +0000)]
Remove extraneous abort(3) when sending chat
This appears to have been accidentally added in commit
79ebcb104b92fa37ed291e96ab2d611f297e6078 which sought to provide a
mechanism for disabling Sofia's chat interface. The abort(3) here
achieved that a bit too well.
Anthony Minessale [Sat, 19 Apr 2014 17:29:00 +0000 (12:29 -0500)]
add enable-chat sofia profile param which defaults to true when not present, set to false to turn off the chat interface in sofia
Travis Cross [Sat, 19 Apr 2014 06:29:24 +0000 (06:29 +0000)]
Drop pinned memcached file download from debian
Travis Cross [Sat, 19 Apr 2014 01:44:40 +0000 (01:44 +0000)]
Correct display of last write timestamp
On start DTMF packets we were showing the last write timestamp as a
signed value when it's an unsigned value, which could result in it
appearing incongruous with later packets where the value was displayed
correctly.
Brian West [Fri, 18 Apr 2014 20:18:41 +0000 (15:18 -0500)]
OPENZAP-222 --resolve
Brian West [Fri, 18 Apr 2014 20:17:23 +0000 (15:17 -0500)]
FS-6082 --resolve
Brian West [Fri, 18 Apr 2014 01:35:57 +0000 (20:35 -0500)]
Dispatch will call you on register, and call you back if you hangup on next register
Brian West [Fri, 18 Apr 2014 01:19:39 +0000 (20:19 -0500)]
fix bug in dispatch
Brian West [Fri, 18 Apr 2014 01:12:27 +0000 (20:12 -0500)]
FS-6452 mod_spy doesn't react on events without variable_domain_name
Anthony Minessale [Thu, 17 Apr 2014 19:06:24 +0000 (00:06 +0500)]
don't send heartbeat until the first timeout has elapsed rather than instantly
Seven Du [Thu, 17 Apr 2014 06:58:18 +0000 (14:58 +0800)]
fix compiler warning
Anthony Minessale [Wed, 16 Apr 2014 23:33:02 +0000 (04:33 +0500)]
update
Anthony Minessale [Wed, 16 Apr 2014 23:26:43 +0000 (04:26 +0500)]
FS-6462 --resolve
I found a problem here but it may not completely match your expectations.
I reviewed the RFC 4028 and checked against the code and I discovered we should not be putting a Min-SE in any response at all besides a 422:
section 5:
The Min-SE header field MUST NOT be used in responses except for
those with a 422 response code. It indicates the minimum value of
the session interval that the server is willing to accept.
I corrected this problem and implemented the 422 response so if you request a value lower than the minimum specified for the profile.
If the value is equal or higher to the minimum, it will be reflected in the Session-Expires header in the response and no Min-SE will be present.
Anthony Minessale [Wed, 16 Apr 2014 21:41:40 +0000 (02:41 +0500)]
FS-5997 regression from commit
70accd9f272472ac2081283f1927d901b409acb6 this caused some attended transfers to calls with multiple targets to get the abondoned channels to be stuck on write lock
William King [Wed, 16 Apr 2014 16:27:34 +0000 (09:27 -0700)]
Get rid of a small memory leak when the configs are reloaded in mod_enum
Anthony Minessale [Wed, 16 Apr 2014 01:02:44 +0000 (06:02 +0500)]
add generic keepalive system and implement it in sofia to send MESSAGE or INFO packets in-dialog at specified interval.
Adds app: enable_keepalive 0|<seconds>
This app can be run in the dialplan or with execute_on_* type variables for B-legs.
Adds sofia param: keepalive-method : defaults to MESSAGE can also be "INFO"
This param sets which SIP method to use.