Commit Graph

275 Commits

Author SHA1 Message Date
Anthony Minessale a2921e269c update verto with some fixes and enhancements with reconnection 2014-07-18 01:04:04 +05:00
Mike Jerris 6dca24bb2a Merge pull request #5 in FS/freeswitch from ~KATHLEEN.KING/freeswitch-fork:clang-warnings-werror to master
* commit '1affff9db4aaa29ab66f9f5db76f575eeabd86b5':
  Fixed a clang-3.5 missing-prototype warning and added doxygen documentation for switch_channel_set_presence_data_vals. #doxygen
  Fixed dead code.
  Fixed trucation of value warning.
  Removed a useless called to abs.
  Removed an autological-pointer-compare from src/switch_utils.c.
  Fixed trucation of value warning.
2014-07-14 17:38:21 -05:00
Brian West 8951d26f8c FS-6626 fix winter DST issue 2014-07-09 07:58:11 -05:00
Kathleen King 24e5c13283 Removed an autological-pointer-compare from src/switch_utils.c.
Building with Clang 3.5 gave the following warning: error: comparison
of array 'iface_out.sin6_addr.__in6_u.__u6_addr8' equal to a null
pointer is always false [-Werror,-Wtautological-pointer-compare]

This is a problem because as it is written the check will never be
true. A pointer to a structure within a structure will never be null. The
intention was either to null check the pointer or to check if the IP
address itself was not zero.

From context in the code this appeared to be a pointer null check so I
removed it.
2014-07-03 12:12:22 -07:00
Travis Cross 7cde2adcb7 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:03:27 +00:00
Travis Cross 164d6a7bf5 Optimize switch_split_user_domain a bit
This avoids searching the string repeatedly with strchr.
2014-03-02 09:43:14 +00:00
Travis Cross 5aab272bb3 Refactor and fix edge cases in switch_split_user_domain
We were incorrectly parsing usernames and domains starting with "sip"
if there was no sip: or sips: scheme in the string.

We were also incorrectly parsing usernames containing a colon even if
a scheme was given.

This also refactors the function for hopefully greater clarity.
2014-03-02 09:20:59 +00:00
Travis Cross b22aa39e66 Fix switch_split_user_domain handling of sips: URLs
In commit 7efeabbd88 Anthony fixed the
handling of sip:example.com and sips:example.com URLs, however he
introduced a regression causing URLs starting with 's' to be parsed
incorrectly.

In commit 7d2456ea27 Brian fixed the
regression, but introduced a regression causing sips:example.com URLs
to be handled incorrectly.
2014-03-02 08:11:11 +00:00
Brian West 7d2456ea27 FS-6250 fix regression from 7efeabbd88, don't discrimiate against people that have s as the first character in their user names 2014-02-24 05:52:57 -06:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 7efeabbd88 fix switch_split_user_domain to parse sip:foo.com properly 2014-02-12 23:11:11 +05:00
Peter Olsson 084e245085 Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks. 2014-01-22 22:30:23 +01:00
Anthony Minessale bb9adff511 rework media code 2013-11-08 03:48:00 +05:00
Anthony Minessale 2c6427ccb7 FS-5708 --resolve 2013-08-19 23:48:17 +05:00
Ken Rice 1facd34bde Revert "FS-5708 ... problems with build on this one
This reverts commit c21f65ac55.
2013-08-16 17:53:12 -05:00
Anthony Minessale 8e45f23d02 FS-5709 --resolve 2013-08-17 02:16:28 +05:00
Anthony Minessale c21f65ac55 FS-5708 --resolve 2013-08-17 02:13:49 +05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Nathan Neulinger e74bba08c2 FS-5449: apply correct quoting, got older version of patch accidentally 2013-05-31 16:31:27 -05:00
Nathan Neulinger ac0ed44b96 FS-5449: --resolve add a mod_commands function to use the shell escape function and update the existing function to use correct escaping
adds a pool based implementation of the switch_util_quote_shell_arg function and changes existing function to be a wrapper around the pool based one
2013-05-31 16:25:08 -05:00
Travis Cross 04c3b913aa 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
2013-05-26 01:27:16 +00:00
Travis Cross 3dd2376475 Leave room for switch_escape_string to add a terminating null
Thanks-to: Nathan Neulinger <nneul@mst.edu>

FS-5448 --resolve
2013-05-25 23:28:55 +00:00
William King 938699d0b6 Better to not pass tmp_socket to setsockopt if there was an error here creating the socket. 2013-05-25 07:37:28 -07:00
Jeff Lenk 66a94a2c45 windows fix trivial compiler warning 2013-05-22 10:38:04 -05:00
Anthony Minessale 1a3b69a4a6 FS-5436 --resolve 2013-05-21 19:39:02 -05:00
William King 3f06bbd04a This was writing a null one space to the right, outside of the malloc'd buffer. On further review this uses apr_vsnprintf which always returns null terminated. 2013-05-18 13:38:24 -07:00
Anthony Minessale 2a72b02f6b add switch_print_host 2013-03-31 21:27:25 -05:00
Anthony Minessale abdc4bf091 add some more mime types for wav and mp3 2013-03-15 20:34:24 -05:00
Anthony Minessale 17b9f68f80 add better tolower to go with the toupper 2013-01-08 14:21:41 -06:00
Anthony Minessale 5d35d71cfd FS-4928 doing 100 calls I found 7 million calls to toupper, this patch replaces it with an inline optimized one I found online. Not sure it helps but maybe you can profile it again with latest. 2012-12-11 19:18:25 -06:00
Jeff Lenk 27c236a03a FS-4847 test again 2012-11-21 09:41:14 -06:00
Jeff Lenk 2ee8058488 FS-4847 try this 2012-11-20 16:54:35 -06:00
Jeff Lenk 9015b20f32 FS-4847 try this too 2012-11-19 16:28:39 -06:00
Jeff Lenk 21b9ec8868 FS-4847 --resolve 2012-11-19 16:23:55 -06:00
Anthony Minessale c5204c2128 FS-4614 --resolve update to dynamic line buffer and use internal buffering to boot for file I/O on preprocessing XML 2012-09-18 15:39:28 -05:00
Anthony Minessale 455b22480c FS-3971 --resolve 2012-09-04 12:30:23 -05:00
Stefan Knoblich eca5c0ad73 FreeSWITCH: Add WIN32 strerror_s() variant to custom switch_strerror_r() helper function and fix more strerror_r() users.
Convert mod_xml_cdr, mod_json_cdr and mod_conference to the new function.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 14:54:06 +02:00
Stefan Knoblich 8bcf3b4fb8 FreeSWITCH: Add switch_strerror_r() to fix problems with XSI and GNU variants of strerror_r().
GNU variant of strerror_r() returns char *, while the XSI version returns int.

To make things worse, glibc ships both and added a unused result warning
in recent versions (2.16) causing the build to fail.

Add our own custom wrapper that always returns a pointer to the message buffer
and additionally make XSI versions of strerror_r() GNU compatible by
returning "Unknown error xxx" if no error message is available.

Fixes:
    src/switch_rtp.c: In function 'rtp_common_read':
    src/switch_rtp.c:3313:15: error: ignoring return value of 'strerror_r',
    declared with attribute warn_unused_result [-Werror=unused-result]
    cc1: all warnings being treated as errors

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-14 14:11:44 +02:00
Anthony Minessale e81d31ce43 FS-4429 --resolve you guys should come to cluecon we would like to help you get bvtapi working really well 2012-07-16 13:39:23 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Anthony Minessale e31389ac9c FS-4097 --resolve 2012-04-10 08:05:09 -05:00
Anthony Minessale 3ca8536558 regression from 29f66f99 2012-02-23 16:21:14 -06:00
Anthony Minessale 29f66f994c doh 2012-01-27 14:18:19 -06:00
Anthony Minessale 7471ec17ed add printed errors to mailer part 2 2012-01-27 13:52:15 -06:00
Anthony Minessale 0b21064a05 add printed errors to mailer 2012-01-27 13:41:50 -06:00
Anthony Minessale b8fdbc4860 FS-3808 --resove We audited for this, must have overlooked this one, thanks. 2012-01-11 21:33:23 -06:00
Jeff Lenk 24288832b1 FS-2216 partial with renaming 2012-01-08 14:19:16 -06:00
Jeff Lenk 79992ac5fe refactor switch_fulldate_cmp and correct usec comparison and year month error 2012-01-01 22:40:23 -06:00
Jeff Lenk 26a49a6e70 FS-3753 --resolve 2011-12-11 22:15:55 -06:00
Jeff Lenk 422df6180f trivial fix build 2011-11-21 12:50:00 -06:00