25720 Commits

Author SHA1 Message Date
Anthony Minessale
87b935d6a1 FS-6287 2014-04-04 13:42:29 -05:00
Anthony Minessale
9836564352 FS-6403 --resolve
This commit also reverts 2 previous attempts to fix this very rare race issue spanning back to 2009

62ce8538974f727778f1024d0ef9549e438704fe Patch from MOC
3a85348cdfd0fd7df63a2a150790722c2d294b36 FS-2302 mutex added around switch_xml_toxml()

The real problem was switch_xml_toxml_buf() was actually temporarily modifying the xml structure being searialized to make it appaer to be a root structure then serializing it and restoring the pointers.  This caused a non-threadsafe operation when some other thread was scanning the same xml structure.

This patch removes the modification and instead passes a new arg to switch_xml_toxml_r indicating to treat the structure as if it were a root structure.

This bug has been present since the induction of xml into FS.

Conflicts:
	src/switch_xml.c
2014-04-03 20:32:21 +05:00
Brian West
1936bdd410 FS-6422: --resolve obvious copy and paste error 2014-04-03 07:21:59 -05:00
Anthony Minessale
51e2d9bf84 FS-6421 --resolve 2014-04-02 16:43:54 -05:00
Anthony Minessale
693eea0d03 FS-6310 hold up, revert 2014-03-31 17:32:30 -05:00
Anthony Minessale
05f2f2cd14 FS-6310 --resolve try this version 2014-03-31 17:03:21 -05:00
Anthony Minessale
ffe0cf67ff FS-6413 stable-version 2014-04-01 01:24:16 +05:00
Raymond Chandler
cbcd1fec96 FS-5845 more leaks found by mikej 2014-03-25 22:45:42 -04:00
Ico
73790b4f0d Fix memory leak when outbound socket is closed by server
ESL-88 --resolve

Signed-off-by: Travis Cross <tc@traviscross.com>
2014-03-26 01:37:53 +00:00
Seven Du
b96946822d add missing break, please review 2014-03-19 08:21:32 +08:00
Chris Rienzo
15e181780d FS-6374 --resolve mod_rayo sendfax was using uninitialized memory pool 2014-03-18 15:21:45 -04:00
Ken Rice
769a03a629 version bump v1.2.23 2014-03-17 16:34:43 -05:00
Anthony Minessale
01e12f6b0f force rebuild 2014-03-17 16:18:04 -05:00
Anthony Minessale
fdafab786a FS-6287 --resolve 2014-03-17 16:17:41 -05:00
Travis Cross
8b496f976e Mitigate the CRIME TLS flaw
If an attacker can cause a device to make an authenticated request to
a service via TLS while including a payload of the attacker's choice
in that request, and if TLS compression is enabled, the attacker can
uncover the plaintext authentication information by making a series of
guesses and observing changes in the length of the ciphertext.

This is CVE-2012-4929.

FS-6360 --resolve

Thanks-to: Brian West <brian@freeswitch.org>
2014-03-16 16:07:02 +00:00
Chris Rienzo
468dc29ae0 mod_rayo: some bugfixes to pause-when-offline 2014-03-14 17:23:27 -04:00
Chris Rienzo
818bf3c6e3 mod_rayo: add new config pause-when-offline - will pause inbound calling if there are no online clients to handle calls. This is useful if you want FS to respond 503 to options ping when there are no online rayo clients. Default behavior is to disable this param. 2014-03-14 15:50:21 -04:00
Chris Rienzo
5269931bfd mod_rayo: fix regression in ACL 2014-03-14 14:33:53 -04:00
Chris Rienzo
b1dbf0f5bb mod_rayo: add remote IP and port to xmpp stream logging 2014-03-14 14:24:53 -04:00
Anthony Minessale
2d35604369 FS-6350 --resolve Parse params out of user portion of caller_id and save them to sip_name_params
Conflicts:
	src/mod/endpoints/mod_sofia/sofia.c
2014-03-14 13:19:11 -05:00
Anthony Minessale
90da4deb1e do not retry so fast on failed outbound subs 2014-03-14 12:56:01 -05:00
Anthony Minessale
cd1bab675a force sofia update 2014-03-14 12:27:45 -05:00
Anthony Minessale
c067e892c5 FS-6287 --resolve When a broken registrar sends a 401 unauth then replies with a subsequent 401 unauth without the stale=true attribute, sofia tries to invalidate the auth handle and get stuck in a state where it cannot recover until the reg handle is destroyed. In this case, the provider in question has a bug on thier end when the nonce count rolls from nc=000000ff to nc=00000100 they start sending several consecitive 401 rather than a 401 with stale=true or a 403. This change will allow it to reset properly and try again with nc=00000001 on the next try. 2014-03-14 12:26:06 -05:00
Chris Rienzo
b52529acce FS-6345 --resolve mod_unimrcp: don't start input timers if start of speech was detected 2014-03-12 23:15:19 -04:00
Chris Rienzo
a1a457a7d6 FS-6281 mod_rayo: don't add timestamp to presence event that already has one. 2014-03-12 21:54:08 -04:00
Brian West
c0b5866e26 FS-3630: --static is not actually a valid option 2014-03-12 18:21:16 +00:00
Anthony Minessale
73b2894b05 FS-6339 --resolve
Conflicts:
	libs/sofia-sip/.update
2014-03-11 18:18:05 -05:00
Chris Rienzo
9495f2534d FS-6281 --resolve mod_rayo timestamp presence events 2014-03-10 20:10:49 -04:00
Chris Rienzo
64d2f8b765 mod_rayo: improve error messages when joining to b-leg that is missing 2014-03-10 17:15:31 -04:00
Simon Wunderlich
3fe85c7870 mod_skinny: make 7925g work
Cisco 7925G seem to work only with the correct conference_id2 and
rtptimeout set, so add protocol 11 definition fields and set
conference_id2 correctly.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Nathan Neulinger <nneul@neulinger.org>
2014-03-10 15:25:36 -05:00
Simon Wunderlich
624f034fac mod_skinny: remove unknown field from access_status
Cisco 7925g send access status message with just 8 byte of payload data.
Since we don't interpret the unknown 3rd field anyway, remove it. This
will prevent the first register to fail.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Nathan Neulinger <nneul@neulinger.org>
2014-03-10 15:25:06 -05:00
Simon Wunderlich
1607d16251 mod_skinny: wait up to 5 seconds for OpenRecvChannelAck
WiFi phones like the 7925g may take longer than just one second to
acknowledge the open receive message. Increase the timeout to 5 seconds.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Nathan Neulinger <nneul@neulinger.org>
2014-03-10 15:25:02 -05:00
Chris Rienzo
e3ce737ff9 FS-6334 --resolve mod_rayo: deadlock when creating input voice component 2014-03-10 15:53:56 -04:00
Anthony Minessale
3584902ae1 PLIV-5 --resolve httpapi cache not working for some urls 2014-03-10 12:20:44 -05:00
Brian West
65fed130e5 Fix warning when using older openssl libs.
warning: passing argument 1 of 'SSL_CIPHER_description' discards qualifiers from pointer target type
2014-03-09 16:21:37 -05:00
Chris Rienzo
455941d369 FS-6282 mod_rayo: fix memory leak in previous commit 2014-03-09 11:41:01 -04:00
Chris Rienzo
2ad7aa23bc FS-6282 mod_rayo: allow outbound call JID to be assigned by client 2014-03-09 11:41:01 -04:00
Anthony Minessale
c4a5042c92 don't refuse invites on established sessions due to session limits
Conflicts:
	src/mod/endpoints/mod_sofia/sofia.c
2014-03-07 23:48:29 +05:00
Travis Cross
1aa0ec5f81 Fix use of out of scope declaration 2014-03-06 08:48:21 +00:00
Travis Cross
9b9bc8b796 Fix minor edge case in switch_split_user_domain
If the input started with 'sip:sips:' it would have been incorrectly
parsed.
2014-03-06 06:05:16 +00:00
Ken Rice
d5fd8c9fc2 FS-6286 --resolve Thanks to Tom Parrott 2014-03-05 17:56:36 -06:00
Travis Cross
64e1a65363 Drop null-auth suites from our default TLS cipher list
Previously we disallowed anonymous Diffie-Hellman, but there are other
kinds of null-authentication TLS suites.  In particular, disallowing
AECDH is important now that we support elliptic-curve Diffie-Hellman.
2014-03-05 21:39:53 +00:00
Chris Rienzo
0ca287890a FS-6304 mod_rayo- fix race condition on outbound calls 2014-03-05 08:52:26 -05:00
Brian West
d2ce0485f4 FS-6276 move our include first so that ours is used and not the system if its present 2014-03-04 20:32:17 -06:00
Jeff Lenk
2287c55ce3 Merge branch 'v1.2.stable' of ssh://git.freeswitch.org:222/freeswitch into v1.2.stable 2014-03-03 21:11:23 -06:00
Jeff Lenk
787e7f7495 FS-6295 try now 2014-03-03 21:09:56 -06:00
Travis Cross
a7ef0919e7 Improve channel variable name to srtp_allow_idle_gaps
This was momentarily called force_send_silence_when_idle, but that was
non-obvious as you had to set that value to true to be able to not
send silence when idle.  This name describes the purpose much better.
2014-03-04 02:09:33 +00:00
Travis Cross
b6a10585bb Avoid repeating ourselves in generating silence
We were handling the "send silence but not comfort noise" case in both
silence_stream_file_read and switch_generate_sln_silence.  This
changes the former to rely on the latter.
2014-03-04 02:09:28 +00:00
Travis Cross
6f11c1636b Add force_send_silence_when_idle channel variable
If set to true, this prevents us from overriding the value of
send_silence_when_idle.  When that is unset or set to zero and SRTP is
engaged, we typically override the value because many devices can't
handle gaps in the SRTP stream.

This variable is mostly for testing whether particular devices can
handle this behavior.  Use at your own risk.
2014-03-04 02:07:30 +00:00
Travis Cross
8fe324c404 Preserve value of send_silence_when_idle if possible
In commit 55d01d3defed4bfdc74704dbea0da9548a97a979 we set
send_silence_when_idle to -1 rather than 400 when SRTP is engaged.
But this left no way to enable white noise silence when desired.

When SRTP is engaged we can't simply not send RTP because it breaks
too many devices.  So we need to prevent send_silence_when_idle from
being unset or being set to zero.  This change allows it to be set to
other values so as to feed white noise rather than all zeros into the
codec.
2014-03-04 02:07:24 +00:00