Commit Graph

26241 Commits

Author SHA1 Message Date
Michael Jerris ae216daf02 fix warning abount comment inside comment 2014-03-03 08:26:54 -05:00
Travis Cross ecd6dfc612 Output newline after json output in mod_json_cdr
In UNIX, text files by definition end with a newline.
2014-03-03 01:13:39 +00:00
Travis Cross 95e4163ab7 Handle too-short write(3)s in mod_json_cdr
write(3) can write fewer bytes than was requested for any number of
reasons.  The correct behavior is to retry unless there is an error.

If there is an error, try to unlink the file; no sense in leaving
corrupted data laying around.
2014-03-03 01:12:15 +00:00
Travis Cross b04bbc6ca5 Fix FHS default modulesdir define
The default value of libdir is (unexpanded) '${exec_prefix}/lib'.  In
the non-FHS path this is fine because it only ends up in a variable
where it will be expanded later.  By using this to define modulesdir
we let it slip into a define where it made no sense.
2014-03-02 23:55:06 +00:00
Travis Cross ab35096833 Fix FHS default sysconfdir 2014-03-02 23:03:13 +00:00
Travis Cross 75a00bd954 Fix memory leak in mod_json_cdr 2014-03-02 22:02:07 +00:00
Brian West a7bf6f8dc1 Reverting FS-6292, pending more details from an end user thats working on this 2014-03-02 11:23:07 -06: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
Raymond Chandler b0d7551c80 use newSQL 2014-03-02 03:13:01 -05: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
Travis Cross fd1b0279e2 Update the configuration report
Order the default configure flags in the order they show up in
configure --help, and order our own alphabetically.
2014-03-02 03:47:48 +00:00
Travis Cross f5ecbc84ca Add --enable-fhs flag to configure
When --enable-fhs is passed to configure, we set all paths by default
in a way compliant with FHS, the Filesystem Hierarchy Standard.

  http://www.pathname.com/fhs/

Each path may still be overridden by passing the specific flag for it.
2014-03-02 03:47:48 +00:00
Jeff Lenk 015ff5d787 windows fix last commit 2014-03-01 15:40:58 -06:00
Jeff Lenk f6e591de4a windows only - add our own thread priority ability for core threads please test 2014-03-01 14:37:04 -06:00
Brian West 4ad5688aef FS-6292 don't use AC_FUNC_MALLOC on NetBSD as rp_malloc isn't defined 2014-03-01 10:49:38 -06:00
Brian West 02dd7772ba This previous change fixes the issue on 64bit but if trying to compile a 32bit build you end up breaking the types on 32bit.
Commandline Fu for dumping the various defines for gcc are as follows:

gcc -m64 -dM -E - <<<''

gcc -m32 -dM -E - <<<''
2014-03-01 10:20:48 -06:00
Brian West dd8c323fcf FS-6226Prevent DTMF from traversing bridged channels, but still allow me to send DTMF via API or dp app (uuid_send_dtmf or send_dtmf) 2014-03-01 09:58:43 -06:00
Brian West 2fe3ef03ed missed on 2014-03-01 09:32:20 -06:00
Peter Olsson 8b57411bdd FS-6290 --resolve 2014-03-01 10:03:56 +01:00
Peter Olsson ef278822d4 Ignore generated file 2014-03-01 09:54:57 +01:00
Brian West f2331de68b Spelling is hard 2014-02-28 18:37:17 -06:00
Anthony Minessale 719850e508 FS-5895 --resolve 2014-03-01 04:55:04 +05:00
Anthony Minessale 2c1a25d5f8 add sip_force_nat_mode so you can engange nat mode manually 2014-03-01 04:43:07 +05:00
Seven Du 5b73a80339 FS-5207 use the json version, thanks 2014-03-01 07:40:31 +08:00
Travis Cross 55d01d3def Send silent packets when idle with SRTP
Originally we did the same thing with SRTP that we do without SRTP,
which is to simply not send packets when e.g. sleep is called.

At commits d63323977f and
5259814aee we enabled sending silence
packets with comfort noise when SRTP is active.  We appear to have
done this for interop purposes; many devices can't handle gaps in the
stream of SRTP packets.

But our current comfort noise implementation doesn't take the codec
rate into account (FS-6291), so on 16kHz codecs the constant we chose
created an annoying level of static between sound file playback.

With this commit we preserve the sending of SRTP packets during idle
periods, but make those packets completely silent.

Thanks-to: Anthony Minessale <anthm@freeswitch.org>

FS-5053 --resolve
2014-02-28 23:13:37 +00:00
Brian West 93c05d9c5f FS-4502 --resolve 2014-02-28 16:23:37 -06:00
Brian West 5b26558e56 FS-5207 --resolve 2014-02-28 16:11:22 -06:00
Brian West 1d36f5b219 FS-5915 --resolve 2014-02-28 16:09:59 -06:00
Anthony Minessale 8cee05987e check the jitter stats after the jitter buffer when its enabled 2014-03-01 02:50:17 +05:00
Travis Cross d5760e0d6a Show TLS cipher suite selected in sofia debug
This shows the cipher name, TLS version, the number of cipher bits and
algorithm bits, and a description of the cipher in Sofia's debug
logging output on level 9.
2014-02-28 20:46:34 +00:00
Anthony Minessale 8862fbc3a1 FS-5461 --resolve you tricked me I said make 1 patch with all of it 2014-03-01 00:27:23 +05:00
Anthony Minessale 5ed78f8987 FS-4441 FS-5461 --resolve 2014-03-01 00:23:40 +05:00
Anthony Minessale 2dc71d2d26 add sip_refer_to_params 2014-03-01 00:13:35 +05:00
Travis Cross 38fe0a99d3 Prevent sha1_init et al from being undefined
sha1_init, sha1_update, and sha1_final were ending up as undefined
symbols in libfreeswitch.so because of the inline declaration, which
caused us to blow up while linking the freeswitch executable.  Declare
these as static inline instead.
2014-02-28 18:33:32 +00:00
Travis Cross c011f9daff Remove binary executables in libs/srtp
These files were introduced in commit 72e2d183c1.
2014-02-28 18:33:32 +00:00
Travis Cross 9cf864ba2b Deal with read errors in switch_xml.c
Unlike fread(3), read(3) will return -1 on error.  We were assigning
the result of read to a potentially unsigned variable, and passing the
result down to switch_xml_parse_str() where it would end up
determining how many bytes to malloc(3).
2014-02-28 18:33:31 +00:00
Anthony Minessale 55901ae0f1 FS-6168 --resolve 2014-02-28 23:30:42 +05:00
Anthony Minessale b82df8a7da FS-6287 this should either prevent the problem or spell out what is causing it. please test 2014-02-28 23:23:30 +05:00
Anthony Minessale 15f4bd44ca FS-5886 --resolve add NDLB_broken_opus_sdp which must be set as a global variable in var.xml or switch.conf.xml to enable broken opus mode for back compat with counterpath mobile 2014-02-28 21:57:47 +05:00
Anthony Minessale 65a6ba3c61 FS-6289 --resolve regression from 1fba654845 2014-02-28 21:43:46 +05:00
Jeff Lenk f882af93c6 FS-3588 remove packages.config 2014-02-28 07:44:21 -06:00
Tamas Cseke b303e722eb improve messaging performance of mod_erlang_event FS-3347 --resolve 2014-02-28 11:32:08 +01:00
Anthony Minessale 4b6c08b34e bump 2014-02-28 07:17:26 +05:00
Anthony Minessale 691c454113 bump, that didn't last long 2014-02-28 07:16:32 +05:00
Anthony Minessale f751455ec8 fix race condition where a transferring leg could be hungup on by the bridge partner from the previous bridge because of hangup held leg detection. The leg which was hungup when held doesn't realize the other leg has already moved on from the bridge because it was transferred and is already on its way to connect to the new destination 2014-02-28 07:15:47 +05:00
Anthony Minessale 207376f289 bump 2014-02-28 04:42:42 +05:00
Anthony Minessale 8893e0b8b8 bump 2014-02-28 04:41:59 +05:00
Travis Cross 45c4450046 Prevent sqlite from over-reading a structure
Our sqlite fork was reading past the end of the zP3 KeyInfo structure
here.  This was causing gcc and clang's address sanitization to alert.

FS-6279 --resolve

Thanks-to: Christopher Rienzo <chris@rienzo.net>
2014-02-27 23:19:43 +00:00
Brian West 89cbbb2e1e Revert the changes I made the issue is in the build system not in this script if DESTDIR is used will re-eval the correct approach. 2014-02-27 16:22:37 -06:00