13246 Commits

Author SHA1 Message Date
Stefan Knoblich
445b74b765 mod_http_cache: Do not use C99-style for loops to fix non-debug builds.
Debug builds add -std=c99 (or -xc99 for suncc) to CFLAGS
(AX_CFLAGS_WARN_ALL_ANSI configure macro).

Non-debug builds do not invoke AX_CFLAGS_WARN_ALL_ANSI checks and
therefore won't have C99 support enabled, which breaks the build of
mod_http_cache due to "for (int i... )"-style C99 loops.

NOTE: AC_PROG_CC_C99 would make a lot of sense here and MSVC (2005)
accepts "for (int ...)" constructs too.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-14 12:43:36 +02:00
Anthony Minessale
1f39ecd13f FS-3840 --resolve 2012-07-13 18:02:36 -05:00
Anthony Minessale
b6e962de1d typo 2012-07-13 18:02:09 -05:00
Anthony Minessale
aebb15fe86 FS-4421 --resolve 2012-07-13 17:20:59 -05:00
Anthony Minessale
4a801c8626 only decode rtp packets in srtp mode 2012-07-13 14:58:20 -05:00
William King
0afd7318bd adding write support to mod_vlc 2012-07-13 09:26:02 -07:00
Anthony Minessale
ba6c404eb9 FS-4422 2012-07-12 18:10:20 -05:00
Anthony Minessale
643a18b583 FS-4418 --resolve 2012-07-12 17:54:02 -05:00
Anthony Minessale
18a16e6931 FS-4335 test this patch, and also remember you must resubmit the logs after each new test 2012-07-12 17:45:43 -05:00
Anthony Minessale
0dfb4db8b4 how does the older compiler catch things the new one doesnt 2012-07-12 14:34:56 -05:00
Anthony Minessale
46fee25dad add fsctl sql start/stop for standby controls 2012-07-12 14:30:44 -05:00
Anthony Minessale
cc48015709 conf tweaks 2012-07-12 14:30:44 -05:00
Anthony Minessale
f5fe8bc5f6 close fd on fsv_record 2012-07-12 14:03:19 -05:00
Stefan Knoblich
d141de28ea freeswitch: Add -base cmdline option.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 19:52:00 +02:00
Anthony Minessale
d5d6b29893 add outcall-templ 2012-07-12 10:42:46 -05:00
Stefan Knoblich
435f28cefb FreeSWITCH: Fix copy&paste error in -storage cmdline option handling.
"htdocs_dir" -> "storage_dir"

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 10:03:14 +02:00
Jeff Lenk
fc5490f1dc FS-4415 --resolve 2012-07-11 22:31:36 -05:00
Stefan Knoblich
95c20425a8 FreeSWITCH: Use SWITCH_TIME_T_FMT to fix format string error in send_heartbeat().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 03:25:12 +02:00
Stefan Knoblich
a0bd63d32d mod_conference: Fix format string errors.
Use switch_event_add_header_string() where needed and add a
dummy "%s" format string to switch_event_add_body() calls.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 01:44:18 +02:00
Daniel Swarbrick
a8efae998f Add FreeSWITCH-Version string and Uptime-msec (uptime in *milliseconds*) to heartbeat events 2012-07-12 01:34:36 +02:00
Anthony Minessale
a06eb2db30 FS-4328 try this 2012-07-11 18:12:26 -05:00
Anthony Minessale
932fc2286f update 2012-07-11 18:04:13 -05:00
Anthony Minessale
0c945168ca update 2012-07-11 17:35:40 -05:00
Anthony Minessale
4e0f40d7c6 update 2012-07-11 17:25:45 -05:00
Anthony Minessale
63147207b6 update 2012-07-11 17:09:42 -05:00
Anthony Minessale
75b36c9545 tweaks 2012-07-11 16:48:56 -05:00
Anthony Minessale
9cad51b74b flip not 2012-07-11 16:03:56 -05:00
Anthony Minessale
abbe8d5a0d tweak 2012-07-11 15:50:43 -05:00
Anthony Minessale
1e7d214ae6 compiler errs from last commit 2012-07-11 15:35:49 -05:00
Anthony Minessale
088437cab1 add some rtcp stuff for sangoma 2012-07-11 15:23:12 -05:00
Anthony Minessale
2aebe2456f first pass on some new stuff 2012-07-11 15:15:50 -05:00
Jeff Lenk
91236c9ad3 fix build related issues on windows - trivial 2012-07-11 07:52:20 -05:00
Stefan Knoblich
07e9467d35 freeswitch: Add more cmdline options to control file locations.
Setting the base_dir variable didn't work so this will have to be
enough for now.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich
aeb4b31063 freeswitch: Show user/group name in error message if change_user_group() fails.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich
edfbbb127c freeswitch: Create struct rlimit rlp where it is needed (move down into block scope).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich
93a429fc11 freeswitch: Whitespace clean up in switch.c.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich
b494d46f45 freeswitch: Clean up daemonize().
Whitespace and indentation clean up.

Use EXIT_SUCESS/_FAILURE.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich
f9d0e249a1 freeswitch: Rework option handling in main() and other clean ups.
Use a chain of "else if" statements, drop known_opt completely.
Added bonus: We stop trying to parse option arguments as (possible) options.

Arguments of -u/-g and path options (-conf) now check whether their argument
starts with a dash ('-') and error out in case it does (= next option, not a valid argument).

Use PATH_MAX for everything that stores files / directories.

Use switch_bool_t and SWITCH_TRUE/_FALSE for boolean variables.

Use EXIT_SUCCESS/_FAILURE for exit() calls.

Get rid of excessive indenting (especially in the win32 parts of main()).

NOTE: Win32 parts untested.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich
659ea9f117 freeswitch: Move usage description out of main() and improve cmdline option handling.
Move empty cmdline option string check and "-help/-h/-?" handling to top of loop.

Emit a proper error message for unknown options. (Just displaying the
usage description, but not telling the user which option was wrong, is bad mojo).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich
d6a395b642 freeswitch: Use switch_strlen_zero() to check for empty strings.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Anthony Minessale
ba428a1559 FS-4406 please test asap and report back 2012-07-10 23:04:16 -05:00
Anthony Minessale
293516be59 FS-4370 --resolve 2012-07-10 22:44:11 -05:00
Anthony Minessale
6904ae6f3b FS-4404 regression from b9b4db7d40159ec1b8d2a0c0f41655339daa0887 2012-07-10 13:28:38 -05:00
Stefan Knoblich
111ef49f1f mod_sofia: Use switch_add_event_header_string() for string values.
Errors fixed:
	sofia.c: In function 'sofia_handle_sip_i_refer':
	sofia.c:7323:5: error: format not a string literal and no format arguments
	sofia.c:7324:5: error: format not a string literal and no format arguments

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-10 14:30:01 +02:00
Anthony Minessale
e79e6146c5 FS-4378 add sofia::error custom event 2012-07-09 10:56:04 -05:00
Anthony Minessale
b9b4db7d40 FS-4404 --resolve 2012-07-09 10:37:15 -05:00
Anthony Minessale
16cb32cd5c come to cluecon will ya 2012-07-06 17:54:21 -05:00
Anthony Minessale
c6fc4a2774 add Current-Energy to conference events 2012-07-06 17:20:44 -05:00
Anthony Minessale
6cf9ea181d FS-4364 --resolve 2012-07-06 16:16:51 -05:00
Anthony Minessale
9ca929218f FS-4382 --resolve 2012-07-06 11:12:14 -05:00