]> git.ipfire.org Git - thirdparty/freeswitch.git/log
thirdparty/freeswitch.git
12 years agoDrop dead assignments
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.

12 years agoCID: 1210646
Raymond Chandler [Wed, 30 Apr 2014 22:46:59 +0000 (18:46 -0400)] 
CID: 1210646

12 years agoDrop dead assignment
Travis Cross [Wed, 30 Apr 2014 22:43:33 +0000 (22:43 +0000)] 
Drop dead assignment

12 years agoDrop dead assignments
Travis Cross [Wed, 30 Apr 2014 22:40:30 +0000 (22:40 +0000)] 
Drop dead assignments

12 years agounused
Raymond Chandler [Wed, 30 Apr 2014 22:36:40 +0000 (18:36 -0400)] 
unused

12 years agoRemove dead assignment, but why...
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.

12 years agoDrop dead assignment
Travis Cross [Wed, 30 Apr 2014 22:00:58 +0000 (22:00 +0000)] 
Drop dead assignment

12 years agoAvoid dead assignment of return value of execv
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.

12 years agoFix a use after free in a 'theoretical' case in switch_cache_db_persistant_execute_tr...
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

12 years agocheck return value for es_say_general_count
Michael Jerris [Wed, 30 Apr 2014 20:43:35 +0000 (16:43 -0400)] 
check return value for es_say_general_count

12 years agomake sure old_pid_buffer is null terminated
Michael Jerris [Wed, 30 Apr 2014 20:36:14 +0000 (16:36 -0400)] 
make sure old_pid_buffer is null terminated

12 years agofix leaked body in error case
Michael Jerris [Wed, 30 Apr 2014 20:10:08 +0000 (16:10 -0400)] 
fix leaked body in error case

12 years agodon't leak file handle if fd = 0
Michael Jerris [Wed, 30 Apr 2014 19:56:36 +0000 (15:56 -0400)] 
don't leak file handle if fd = 0

12 years agodon't leak if first realloc fails but second one succeeds
Michael Jerris [Wed, 30 Apr 2014 19:53:26 +0000 (15:53 -0400)] 
don't leak if first realloc fails but second one succeeds

12 years agosplit this into 2 functions so its clear if this function allocates or not
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

12 years agoMore fixes from Coverity scans
Steve Underwood [Wed, 30 Apr 2014 18:56:53 +0000 (02:56 +0800)] 
More fixes from Coverity scans

12 years agomake sure receive buffer is always null terminated
Michael Jerris [Wed, 30 Apr 2014 17:49:58 +0000 (13:49 -0400)] 
make sure receive buffer is always null terminated

12 years agodon't leak xml string in dl_logger
Michael Jerris [Wed, 30 Apr 2014 17:44:59 +0000 (13:44 -0400)] 
don't leak xml string in dl_logger

12 years agoadd better bounds checking in dtmf_accepting array to avoid buffer overrun in mod_voi...
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

12 years agofix read beyond buffer length error
Michael Jerris [Wed, 30 Apr 2014 17:25:22 +0000 (13:25 -0400)] 
fix read beyond buffer length error

12 years agoA couple more Coverity issues fixed
Steve Underwood [Wed, 30 Apr 2014 17:19:28 +0000 (01:19 +0800)] 
A couple more Coverity issues fixed

12 years agoBisect with make -j
Travis Cross [Wed, 30 Apr 2014 17:10:30 +0000 (17:10 +0000)] 
Bisect with make -j

12 years agoDon't unset CCACHE_DIR when bisecting
Travis Cross [Wed, 30 Apr 2014 17:01:00 +0000 (17:01 +0000)] 
Don't unset CCACHE_DIR when bisecting

12 years agoFS-6497: --resolve fix for loop initial declaration not allowed
Michael Jerris [Wed, 30 Apr 2014 16:16:02 +0000 (12:16 -0400)] 
FS-6497: --resolve fix for loop initial declaration not allowed

12 years agoAnother couple of Coverity related cleanups
Steve Underwood [Wed, 30 Apr 2014 14:51:59 +0000 (22:51 +0800)] 
Another couple of Coverity related cleanups

12 years agoremove generated file from tree
Michael Jerris [Wed, 30 Apr 2014 14:34:08 +0000 (10:34 -0400)] 
remove generated file from tree

12 years agoMore elimination of warnings with clang
Steve Underwood [Wed, 30 Apr 2014 14:27:29 +0000 (22:27 +0800)] 
More elimination of warnings with clang

12 years agoEliminate some clang warnings
Steve Underwood [Wed, 30 Apr 2014 14:18:46 +0000 (22:18 +0800)] 
Eliminate some clang warnings

12 years agomod_http_cache: CID 1025858: Thread deadlock (ORDER_REVERSAL)
Chris Rienzo [Wed, 30 Apr 2014 14:06:42 +0000 (10:06 -0400)] 
mod_http_cache: CID 1025858:  Thread deadlock  (ORDER_REVERSAL)

12 years agogracefully handle allocation failure
Michael Jerris [Wed, 30 Apr 2014 12:55:39 +0000 (08:55 -0400)] 
gracefully handle allocation failure

12 years agowe always have the session in the dialplan function
Michael Jerris [Wed, 30 Apr 2014 12:51:52 +0000 (08:51 -0400)] 
we always have the session in the dialplan function

12 years agowe always have the caller profile at this point, if for some reason we don't just...
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

12 years agowe always have the seesion in the app function
Michael Jerris [Wed, 30 Apr 2014 12:46:11 +0000 (08:46 -0400)] 
we always have the seesion in the app function

12 years agoremove useless checks of array == 0
Michael Jerris [Wed, 30 Apr 2014 12:43:57 +0000 (08:43 -0400)] 
remove useless checks of array == 0

12 years agodo set compiler flag that compiler doesn't support
Michael Jerris [Wed, 30 Apr 2014 12:33:09 +0000 (08:33 -0400)] 
do set compiler flag that compiler doesn't support

12 years agoEliminated another Coverity issue
Steve Underwood [Wed, 30 Apr 2014 06:41:06 +0000 (14:41 +0800)] 
Eliminated another Coverity issue

12 years agoSome more coverity issues cleaned up
Steve Underwood [Wed, 30 Apr 2014 05:10:59 +0000 (13:10 +0800)] 
Some more coverity issues cleaned up

12 years agoCleared some simple Coverity issues
Steve Underwood [Wed, 30 Apr 2014 04:42:46 +0000 (12:42 +0800)] 
Cleared some simple Coverity issues

12 years agoFS-6476 regression where sock would sometimes drop while reading logical frames
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

12 years agoCorrection to commit 0ba59aa6c2d252886eb4889c5d37fe114e07b4f4 using the correct varia...
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

12 years agosilence incorrect warnings about null pointer derference and remove unused code
Michael Jerris [Tue, 29 Apr 2014 18:34:49 +0000 (14:34 -0400)] 
silence incorrect warnings about null pointer derference and remove unused code

12 years agoadd heartbeat_use_scheduler variable to force the heartbeat to use the scheduler...
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

12 years agoAdd helper for running git bisect
Travis Cross [Mon, 28 Apr 2014 22:06:24 +0000 (22:06 +0000)] 
Add helper for running git bisect

12 years agothis should never happen, but just in case, this will at least calm coverity
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

12 years agohandle null 'status' passed to 'switch_channel_perform_presence' more gracefully
Michael Jerris [Mon, 28 Apr 2014 20:21:45 +0000 (16:21 -0400)] 
handle null 'status' passed to 'switch_channel_perform_presence' more gracefully

12 years agoonly enable passthru_ptime_mismatch when set to a true value, not when it is set...
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

12 years agoonly enable passthru_ptime_mismatch when set to a true value, not when it is set...
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

12 years agoremove unused var ocp
Michael Jerris [Mon, 28 Apr 2014 20:06:39 +0000 (16:06 -0400)] 
remove unused var ocp

12 years agoif we can't open /dev/null, you have much bigger issues to deal with
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

12 years agoimprove null checks
Michael Jerris [Mon, 28 Apr 2014 19:49:57 +0000 (15:49 -0400)] 
improve null checks

12 years agoremove useless variable
Michael Jerris [Mon, 28 Apr 2014 19:19:19 +0000 (15:19 -0400)] 
remove useless variable

12 years agoremove useless statement
Michael Jerris [Mon, 28 Apr 2014 19:16:03 +0000 (15:16 -0400)] 
remove useless statement

12 years agoimprove error checking for null path
Michael Jerris [Mon, 28 Apr 2014 19:12:02 +0000 (15:12 -0400)] 
improve error checking for null path

12 years agofix bitwise flag unsetting
Michael Jerris [Mon, 28 Apr 2014 19:06:39 +0000 (15:06 -0400)] 
fix bitwise flag unsetting

12 years agoremove unused variable
Michael Jerris [Mon, 28 Apr 2014 19:00:22 +0000 (15:00 -0400)] 
remove unused variable

12 years agodon't set variable we don't use, and fix off by 1 buffer overflow in 1 case
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

12 years agoremove unnecessary null check, we would have crashed already if that strdup failed
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

12 years agodon't use memory after free when using naptr with mod_enum with multiple routes
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

12 years agoblock of code in here twice was writing over expanded, causing it to potentially...
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

12 years agoadd bounds check to keep rtcp packets with > 5 report blocks from creating a buffer...
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

12 years agoFS-4779 FS-6467 the behaviour from 4479 is now masked behind the param 3pcc-reinvite...
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

12 years agofix deref before null check
Michael Jerris [Mon, 28 Apr 2014 17:01:12 +0000 (13:01 -0400)] 
fix deref before null check

12 years agoremove unused variable
Michael Jerris [Mon, 28 Apr 2014 16:40:55 +0000 (12:40 -0400)] 
remove unused variable

12 years agoFS-6491 --resolve
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.

12 years agofixing commit a7108411233058511c59227617e446f28384dbd0 in switch_config
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.

12 years agocheck return value of switch_vasprintf
Michael Jerris [Mon, 28 Apr 2014 13:54:20 +0000 (09:54 -0400)] 
check return value of switch_vasprintf

12 years agofix assigned but never used issue and code cleanup for readability
Michael Jerris [Mon, 28 Apr 2014 13:47:30 +0000 (09:47 -0400)] 
fix assigned but never used issue and code cleanup for readability

12 years agowe only call this with values, and it would crash if you passed it null anyways,...
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

12 years agocontact->m_url is an array, don't check array for zero as its useless
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

12 years agoFix buffer overrun that could have been exploited with a crafted skinny packet design...
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.

12 years agofix memory leaks, tanks to Sharath from packetizer forum.
Georgiewskiy Yuriy [Sat, 26 Apr 2014 00:49:35 +0000 (04:49 +0400)] 
fix memory leaks, tanks to Sharath from packetizer forum.

12 years agoFS-3332 --resolve
Brian West [Fri, 25 Apr 2014 20:53:11 +0000 (15:53 -0500)] 
FS-3332 --resolve

12 years agoExpanding on 052638186b2784c4142089008adf4289d40c80bc to support boolean tel url...
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

12 years agoBNPH-6470 follow up to commit 68d863a179c90d2524f8e761dedb3aebd09c3e75 removing the...
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

12 years agoFS-6470
Brian West [Fri, 25 Apr 2014 16:50:06 +0000 (11:50 -0500)] 
FS-6470

12 years agoFS-6482 --resolve
Brian West [Thu, 24 Apr 2014 19:05:15 +0000 (14:05 -0500)] 
FS-6482 --resolve

12 years agofix issues with heartbeat in bypass media mode
Anthony Minessale [Thu, 24 Apr 2014 18:21:15 +0000 (23:21 +0500)] 
fix issues with heartbeat in bypass media mode

12 years agoFixing memory leak that would occur when reloading mod_xml_curl
William King [Thu, 24 Apr 2014 16:13:00 +0000 (09:13 -0700)] 
Fixing memory leak that would occur when reloading mod_xml_curl

12 years agorevert
Anthony Minessale [Thu, 24 Apr 2014 15:58:23 +0000 (20:58 +0500)] 
revert

12 years agoFS-6477 --resolve
Anthony Minessale [Tue, 22 Apr 2014 18:51:44 +0000 (23:51 +0500)] 
FS-6477 --resolve

12 years agoFS-6476 --resolve
Anthony Minessale [Tue, 22 Apr 2014 18:25:34 +0000 (23:25 +0500)] 
FS-6476 --resolve

12 years agomod_rayo: preserve old caller ID behavior if display name is not given
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

12 years agomod_rayo: relax recent caller ID restrictions a bit
Chris Rienzo [Tue, 22 Apr 2014 12:50:25 +0000 (08:50 -0400)] 
mod_rayo: relax recent caller ID restrictions a bit

12 years agoESL-91: --resolve bigger buffer for args
Michael Jerris [Mon, 21 Apr 2014 17:33:41 +0000 (13:33 -0400)] 
ESL-91: --resolve bigger buffer for args

12 years agoRemove extraneous abort(3) when sending chat
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.

12 years agoadd enable-chat sofia profile param which defaults to true when not present, set...
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

12 years agoDrop pinned memcached file download from debian
Travis Cross [Sat, 19 Apr 2014 06:29:24 +0000 (06:29 +0000)] 
Drop pinned memcached file download from debian

12 years agoCorrect display of last write timestamp
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.

12 years agoOPENZAP-222 --resolve
Brian West [Fri, 18 Apr 2014 20:18:41 +0000 (15:18 -0500)] 
OPENZAP-222 --resolve

12 years agoFS-6082 --resolve
Brian West [Fri, 18 Apr 2014 20:17:23 +0000 (15:17 -0500)] 
FS-6082 --resolve

12 years agoDispatch will call you on register, and call you back if you hangup on next register
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

12 years agofix bug in dispatch
Brian West [Fri, 18 Apr 2014 01:19:39 +0000 (20:19 -0500)] 
fix bug in dispatch

12 years agoFS-6452 mod_spy doesn't react on events without variable_domain_name
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

12 years agodon't send heartbeat until the first timeout has elapsed rather than instantly
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

12 years agofix compiler warning
Seven Du [Thu, 17 Apr 2014 06:58:18 +0000 (14:58 +0800)] 
fix compiler warning

12 years agoupdate
Anthony Minessale [Wed, 16 Apr 2014 23:33:02 +0000 (04:33 +0500)] 
update

12 years agoFS-6462 --resolve
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.

12 years agoFS-5997 regression from commit 70accd9f272472ac2081283f1927d901b409acb6 this caused...
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

12 years agoGet rid of a small memory leak when the configs are reloaded in mod_enum
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

12 years agoadd generic keepalive system and implement it in sofia to send MESSAGE or INFO packet...
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.