92 Commits

Author SHA1 Message Date
Michael Jerris
766681f666 handle malloc failures. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-15 21:05:32 +00:00
Michael Jerris
b61da6e590 add configurable windows service name (FSCORE-122)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8370 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-12 19:05:02 +00:00
Anthony Minessale
eb55b310dc finiky compiler contd
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7754 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 00:08:06 +00:00
Anthony Minessale
712ab5be8f finiky compiler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7753 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 00:03:25 +00:00
Brian West
22670165c1 if and only if
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7641 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-15 23:16:01 +00:00
Brian West
b0ad7ab50c set tab mode properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Brian West
84161010ab cleanup and consistency.. blah rain @ PHX fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 20:01:02 +00:00
Michael Jerris
bb2638a514 add -c command line arg to run in console mode. Should we change the default on release?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7350 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-25 14:08:53 +00:00
Stefan Knoblich
5b01ced55c Look! A whitespace fix snuck into the tree!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7137 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-08 10:57:42 +00:00
Anthony Minessale
59ac0a27a2 fix FSCORE-82
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7132 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-07 20:40:59 +00:00
Stefan Knoblich
2ca370b52f Spelling fixes #1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7119 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-07 10:45:06 +00:00
Michael Jerris
df26e27377 fix for FSCORE-78. Write whole buffer of the pid into file with padded NULL's so that we don't leave leftovers behind from a crash.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6977 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-25 03:00:29 +00:00
Anthony Minessale
0f833ca28d add self-adjusting rlimit stuff for systems that support it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-18 16:55:39 +00:00
Michael Jerris
89ba8e6195 cleanups, avoid null deref, check returns of some more functions, use switch_snprintf to make sure we are null terminating strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6816 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-15 20:04:49 +00:00
Michael Jerris
dd80550818 don't use hight priority for windows service.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6800 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-14 22:59:17 +00:00
Michael Jerris
1b63fa5503 use file locks to keep multiple concurrent copies of freeswitch from running at the same time (FSCORE-14)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6575 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-08 03:41:00 +00:00
Michael Jerris
6bad7635dd cleanup pid file on orderly exit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6559 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-07 02:03:55 +00:00
Michael Jerris
18ca278d9b only set console when we have a console
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6535 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-06 13:40:00 +00:00
Anthony Minessale
a1e9233eff update logger stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6510 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-04 23:47:27 +00:00
Michael Jerris
7b34d76091 remove file logging from automatically being set on the core console handle. You must now use mod_logfile to do file logging.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6509 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-04 23:18:24 +00:00
Michael Jerris
b382c0a41f add -u and -g command line args to set user and group.
properly handle portability for mlockall and setrlimit
Tested on linux, Freebsd, solaris, mac.
FSCORE-47

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6033 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-23 15:56:23 +00:00
Michael Jerris
6b2a40b938 Make script_dir setting on command line FSCORE-48
cleanup the usage string

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6011 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-20 06:46:16 +00:00
Anthony Minessale
1667112b3b add fsctl loglevel [<level>] fsctl command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-03 23:43:01 +00:00
Michael Jerris
8f963f4aea windows build fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5767 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-09-30 16:59:32 +00:00
Anthony Minessale
ffb989e435 tear the hell out of everything and rip it up into itsy bitsy pieces and put it all back together
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-09-29 01:06:08 +00:00
Michael Jerris
f1222ba2fd fix for FSCORE-40
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5566 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 21:29:01 +00:00
Anthony Minessale
deb4972610 Small tweaks so it actually compiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5001 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-22 19:11:22 +00:00
Michael Jerris
ca464fd296 manually apply patch http://jira.freeswitch.org/browse/FSCORE-24. Thanks dirk.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4998 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-21 16:58:35 +00:00
Anthony Minessale
debdfb1aab indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale
3a54126261 spring cleaning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Michael Jerris
9d1f221d9b fix freebsd build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4650 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 00:33:54 +00:00
Michael Jerris
55b3e6cb62 simplify our configure and Makefile.am. Set our CFLAGS and LDFLAGS primarily from configure.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4512 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-11 04:02:10 +00:00
Michael Jerris
1657426cd1 catch up with changed prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4426 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 09:22:34 +00:00
Brian West
49e689b3b5 we really should use this way to comment.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4423 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 05:53:45 +00:00
Anthony Minessale
ed76b25241 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4419 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-01 17:23:02 +00:00
Michael Jerris
f359f847f7 fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Michael Jerris
57c5be057d vg default on windows, not otherwise.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4139 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-06 19:20:39 +00:00
Michael Jerris
cfdd586224 add -conf, -db, and -log params to the binary to allow for running multiple copies of freeswitch concurrently on the same box. Please note that these params may change in the future. Patch from Bret McDanel.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4133 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-06 17:05:14 +00:00
Michael Jerris
ecb1e9dae0 tweak to work around shutdown segfault in windows in background mode. This forces it to not do apr_terminate, which shouldn't be necessary anyways as the entire process in ending.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 17:45:09 +00:00
Michael Jerris
9e2ec3532c whoops.. cr/lf -> lf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4005 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 22:47:23 +00:00
Michael Jerris
ca5d5ce595 added no fork mode to the executable so it can be used w/ sipx watchdog service. This mode is not available on windows as we do not fork on windows regardless. Thanks to Paweł Pierścionek for the contribution.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3999 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 12:59:49 +00:00
Michael Jerris
44649c70b4 Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:
/* For Emacs:
 * Local Variables:
 * mode:c
 * indent-tabs-mode:nil
 * tab-width:4
 * c-basic-offset:4
 * End:
 * For VIM:
 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +00:00
Michael Jerris
9687f37f92 catch up with api, add option to switch_core_destroy call.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-18 06:43:37 +00:00
Anthony Minessale
89989bc34f vg mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3388 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 19:43:25 +00:00
Michael Jerris
951186898c Comments and cleanup, clarify some variable names.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3268 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-05 19:41:03 +00:00
Michael Jerris
461295664f formatting and comments. More to come.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3233 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-30 01:36:51 +00:00
Michael Jerris
af06084f43 fix prototype of signal handler functions (sun studio doesn't like these wrong)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2949 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 16:48:00 +00:00
Michael Jerris
73b5fcf641 win32 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2767 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-20 20:47:28 +00:00
Anthony Minessale
90815616cc small core refactoring use -hp arg to gain high priority mode, add fsctl command USAGE: fsctl [hupall|pause|resume|shutdown]
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-20 20:25:26 +00:00
Michael Jerris
2343fdd8cf Attribution.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2734 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-18 05:08:55 +00:00