15188 Commits

Author SHA1 Message Date
Anthony Minessale
30a950b5a9 actual fix for commit cff5209ca3582994dae1353372e2f91b345ab959 which was in the wrong place 2014-10-16 16:04:33 -05:00
Anthony Minessale
725a121086 revert cff5209ca3582994dae1353372e2f91b345ab959 2014-10-16 14:40:18 -05:00
Anthony Minessale
50ee55b84f fix leak of nua handle due to reference counting that must be between 3 to 7 years old. Effects all calls with auth/challenge on INVITE 2014-10-13 18:07:00 -05:00
Travis Cross
60b36539eb Fix crash on transport=tls with non-TLS profile
We use the transport of the Contact header of the remote UAC to decide
which of our own Contact addresses we should use when replying to a
SUBSCRIBE or sending a presence NOTIFY.

If TLS is not enabled on a Sofia profile, then the TLS Contacts for
that profile are NULL.  Unfortunately we were using these NULL values
uncritically when the remote UAC sent us a Contact header with a TLS
transport and our own Sofia profile did not have TLS enabled.

With this commit we fall back to our TCP Contact address when the
remote Contact is TLS and our Sofia profile does not have TLS enabled.
2014-10-10 19:25:16 +00:00
Chris Rienzo
1eebeaa7c3 mod_rayo: fix error in SRGS grammar parser... <one-of><item>7</item><item>715</item></one-of> will return MATCH_END with input of 7 instead of MATCH since 715 is a potential match with further input. 2014-10-09 11:55:45 -04:00
Anthony Minessale
75127619c6 FS-6713 #comment remove debug 2014-09-26 17:30:04 +00:00
Anthony Minessale
9ee5731613 FS-6851 #resolve 2014-09-24 20:40:41 +05:00
Anthony Minessale
b65939fc85 FS-6806 #resolve #comment off by 1 error in last fix 2014-09-10 21:06:52 +05:00
Anthony Minessale
1c697be17c FS-6806 #resolve
Conflicts:
	src/mod/endpoints/mod_sofia/mod_sofia.c
	src/mod/endpoints/mod_sofia/sofia_presence.c
2014-09-09 00:25:30 +05:00
Brian West
51f4742087 FS-6803 #resolve 2014-09-09 00:10:41 +05:00
Chris Rienzo
c902d34666 mod_http_cache: fix configuration so that carriage returns or other whitespace is OK around S3 keys 2014-08-12 16:29:01 -04:00
Chris Rienzo
f0ec893f43 mod_http_cache: fixed S3 URL parser to allow mybucketsubdomain.com.s3.amazonaws.com 2014-08-12 16:08:43 -04:00
Travis Cross
cda7ecc4b2 Fix line endings per .gitattributes 2014-08-09 02:13:22 +05:00
Nathan Neulinger
d0aaf0cc16 mod_skinny: fix calloc argument ordering CID: 1214236 1214235 2014-08-05 22:14:21 +05:00
Anthony Minessale
b5dec7d142 FS-6713 #resolve 2014-08-04 23:53:56 +05:00
Anthony Minessale
d9e155f3e3 FS-6440 regression from this patch on single CPU or VM machines causes startup race 2014-07-11 10:59:36 -05:00
Brian West
1139d47533 FS-6621 2014-06-24 14:13:29 -05:00
Michael Jerris
33c5c5e3aa remove useless variable 2014-06-24 10:32:04 -05:00
Brian West
de15944e38 FS-6612 backport to 1.2 for endusers still on 1.2 that require this 2014-06-23 16:40:04 -05:00
Travis Cross
8e975d8fed Use portable version of strerror_r()
FS-6596 --resolve
2014-06-16 13:52:03 +00:00
Anthony Minessale
d298f8688a FS-6440 --resolve 2014-06-13 05:47:54 +05:00
Travis Cross
0fbef4a328 Check for execv(3) errors when reincarnating
When -reincarnate-reexec is given we run execv to restart FS.  If
argv[0] isn't a full pathname then execv is going to fail.  While not
common for a FS system started by init, this is a common occurrence
when FS is started from the shell.

Now if execv fails, we'll try execvp.  If that fails too then we'll
fall back on the normal reincarnation behavior.

Previously what would happen in that case is god would descend from
the heavens and become mortal.  Leaving heaven absent, all hope for
reincarnation was lost.

(That is, we'd simply return from reincarnate_protect and the
supervisor process would become the new instance of FS, so the trick
would only work once.)
2014-06-10 23:57:31 +00:00
Travis Cross
aa10023269 Add fsctl command to summon reincarnation
If you start freeswitch with -reincarnate or -reincarnate-reexec, FS
will restart automatically in the event of an unexpected exit.

Currently, you can cause FS to immediately call exit(0) with `fsctl
shutdown now`, or you can have it call abort() with `fsctl crash`.
Which are both nice, but if you have reincarnation engaged, you really
might want FS to call exit([non-zero]) so the great supervisor
immediately breathes life back into your system.

This is now available via `fsctl shutdown reincarnate now`.
2014-06-10 23:57:30 +00:00
Anthony Minessale
7b74ee3955 fix regression from regression 2014-06-03 05:26:24 +05:00
Anthony Minessale
7057d7d35e FS-6446 regression fixed 2014-06-03 05:11:34 +05:00
Anthony Minessale
e3c1425b9b make device state code more accurate
Conflicts:
	src/switch_core_state_machine.c
2014-05-31 00:34:28 +05:00
Anthony Minessale
50c27075ec FS-6446 --resolve
Conflicts:
	src/mod/endpoints/mod_sofia/sofia.c
2014-05-29 01:14:41 +05:00
Chris Rienzo
e617a6fb0f mod_rayo: remove code that is no longer needed 2014-05-27 10:21:56 -04:00
Chris Rienzo
d47ff7bf4d mod_rayo: http_put of received fax was broken 2014-05-27 09:16:56 -04:00
Travis Cross
75d073fca1 Avoid useless NAT log message
If FS is not behind NAT, then every call generates at least three
INFO-level log messages:

  [INFO] switch_nat.c:589 NAT port mapping disabled

This is useless noise.  The message is only interesting if you do have
NAT enabled but mapping disabled, which might indicate a configuration
issue.

With this change, we just skip the entire nat_add_mapping function if
the NAT system isn't initialized or we're not behind NAT.
2014-05-24 18:24:54 +00:00
Marc Olivier Chouinard
cb76e2d349 Add support for number-alias in directory app
FS-5913 --resolve
2014-05-21 21:13:55 +00:00
Anthony Minessale
d77317f8f1 FS-6418 FS-6427 add profile param NDLB-proxy-never-patch-reinvites to solve both issues 2014-05-21 03:31:01 +05:00
Steve Underwood
a9a6e70915 FS-6530 Chinese say now say "one" before "ten" for numbers >99 2014-05-17 15:49:40 +08:00
Chris Rienzo
bb839dfc39 CID 1214210: mod_ssml - resource leak when parsing SSML 2014-05-15 11:31:20 -04:00
Chris Rienzo
3f56654aef CID 1214263: mod_ssml - remove unused pointer value 2014-05-15 11:12:37 -04:00
Travis Cross
9af707ed20 Avoid polluting CFLAGS for mod_snmp
Putting `net-snmp-config --cflags` into CFLAGS causes major pollution;
it overrides optimization and debugging levels, warnings, and more.
While normally we do want to automatically locate library headers,
there has to be a better way to do this.  libsnmp is normally in the
usual place and doesn't need special handling.  Perhaps people with
libsnmp in a weird place should just need to add the -I flag to their
CFLAGS before build.
2014-05-13 18:32:05 +00:00
Travis Cross
04a55bbdf9 Cleanup makefile library dependencies of mod_snmp
Calling out to net-snmp-config --agent-libs causes transitive
dependencies to get pulled in, but we don't need those -- a sensible
dynamic linker pulls those in automatically.  Trying to track the
transitive dependencies manually would be a losing battle.

People were recently hitting this on Debian sid/jessie, where libpci
is in the transitive dependency list but isn't otherwise one of our
build dependencies.
2014-05-13 18:32:05 +00:00
Anthony Minessale
22942e94cd FS-6515 --resolve 2014-05-10 00:35:48 +05:00
Chris Rienzo
df733a7fde CID: 1211940 mod_rayo - unlikely dereference of NULL pointer 2014-05-08 12:16:22 -04:00
Chris Rienzo
41b993755c CID: 1211941 mod_rayo - unlikely dereference of NULL pointer 2014-05-08 12:16:13 -04:00
Chris Rienzo
b1337495fb CID: 1211943 mod_rayo - removed dead code when changing output speed 2014-05-08 12:16:02 -04:00
Chris Rienzo
5b06a86c43 CID: 1211944 mod_rayo - remove set of unused pointer 2014-05-08 12:15:49 -04:00
Chris Rienzo
ab9971c7ac CID: 1211946 mod_rayo - dead code after switch statement 2014-05-08 12:15:38 -04:00
Chris Rienzo
2d8f61d245 CID: 1211947 mod_rayo - allocated array with unsigned char * element size instead of unsigned char 2014-05-08 12:15:25 -04:00
Chris Rienzo
2c74771c2f CID: 1211951 mod_rayo - fix unlikely dereference of null pointer 2014-05-08 12:15:17 -04:00
Chris Rienzo
2363269821 mod_rayo: fix compiler error to nlsml.c from attempted coverity fix 2014-05-08 11:11:14 -04:00
William King
8b3e039c71 CID: 1211948 fix memory leak of decoded iks message in function parse_plain_auth_message in mod_rayo 2014-05-08 09:52:20 -04:00
William King
e19bafe894 CID: 1211950 fix memory leak of iksparser in function nlsml_parse in mod_rayo 2014-05-08 09:52:10 -04:00
Anthony Minessale
88216387e0 FS-6506 --resolve Technically when you are not using groups you do not add a <users> tag inside <domain> you just put several <user> tags in <domain> This patch will consume an extraneous <users> tag and move on making it work either way. 2014-05-07 00:06:11 +05:00
Anthony Minessale
9274b30b77 sofia is treating all notify sending as if they were natted rather than when nat is detected. This causes issues on some polycoms that use strange ports in their contact for getting notifies that do not match the port the calls come from 2014-05-06 04:10:29 +05:00