Commit Graph

217 Commits

Author SHA1 Message Date
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 4654bda84a FS-4374 try this: it will set the stack size for the whole app to 240 if its too big or too small, if there are system limits, fs may have to be run as root and drop privs to be allowed to change this setting 2012-07-02 11:20:05 -05:00
Anthony Minessale c608ca35d8 don't print ASS 2012-06-13 11:29:14 -05:00
Jeff Lenk 021f48d02e FS-4169 --resolve compiler warning for solaris 2012-05-17 10:28:51 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Jeff Lenk e6963e34bb FS-4127 --resolve 2012-04-18 09:17:52 -05:00
Jeff Lenk 24288832b1 FS-2216 partial with renaming 2012-01-08 14:19:16 -06:00
Marc Olivier Chouinard e566057701 FS-2216 --resolve 2011-12-14 10:27:31 -05:00
Anthony Minessale c1dd008b1d change -hp to -rp, add -lp and -np, no priority flags means auto which will do -rp if you have > 1 cpu 2011-09-12 16:13:19 -05:00
Anthony Minessale 910f5364a4 add threaded-system-exec param and fsctl (set it to false to use fork) 2011-09-12 14:25:01 -05:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Anthony Minessale 008f988990 FS-3208 --resolve 2011-04-01 12:30:24 -05:00
Anthony Minessale 5d7831348b improve some defaults to tune performance if you use -heavy_timer, try not using it 2011-03-22 13:27:37 -05:00
Anthony Minessale fe152626db stop suggesting -waste because its really the bad choice to make 2011-02-28 11:27:56 -06:00
Anthony Minessale 1b52a79569 stop suggesting -waste since its a bad choice 2011-02-28 11:25:42 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Jeff Lenk b4562522ed windows - fix build 2010-10-29 13:51:02 -05:00
Anthony Minessale d40bb06400 part2 2010-10-29 13:00:14 -05:00
Anthony Minessale 23d5fc1900 add -ncwait for Unix based implememtations to make the backgrounder wait to make sure the process starts before detaching 2010-10-29 12:43:55 -05:00
Anthony Minessale 5aa13f13e7 revert broken patch FSCORE-652 2010-09-21 10:37:04 -05:00
Jeff Lenk 7df3e18c6a fix windows build 2010-08-26 13:55:13 -05:00
Anthony Minessale f26a697242 FSCORE-652 2010-08-26 12:34:24 -05:00
Jeff Lenk 3515c7a020 FSCORE-643 Windows: Add start parameter -monotonic-clock, replaces build flag WIN32_MONOTONIC 2010-07-28 20:44:45 -05:00
Anthony Minessale 95665f0096 JANITOR-4 2010-04-21 10:11:13 -05:00
Anthony Minessale 717308a3cf compromising on timing code, remove -vm and make it default, make new -heavy-timing for previous default, change tipping-point to work of count of active timers rather than sessions, this should statisfy the droves of 'I wish it worked like 1.0.4 people'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-01 19:25:27 +00:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Mathieu Rene 192288bbc8 Delay windows service startup so other command line options are processed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16558 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-02 22:53:36 +00:00
Brian West 7a0bc97b5c FSCORE-534
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16482 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-23 18:37:11 +00:00
Anthony Minessale da29b01195 few new command line opts -vm for conditonal timer, -nocal to skip timer calibration and -nort to turn off clock_realtime fam of functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 21:09:51 +00:00
Michael Jerris 8912b80e13 (FSCORE-524)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16277 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 17:01:36 +00:00
Jeff Lenk 66c6760d27 create run dir (mostly for windows) if it does not exist yet
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16262 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-12 17:20:16 +00:00
Brian West 7c3e30ce73 big doh FSCORE-475
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-27 16:53:53 +00:00
Michael Jerris 7224f7b028 fix regression from -run addition and better handling of -stop whoops (FSCORE-474)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15247 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-27 14:01:13 +00:00
Michael Jerris 7fbdde93b6 fix regression from -run addition and better handling of -stop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15234 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-26 21:46:21 +00:00
Anthony Minessale 3a77cb0ed0 fix arg parsing on restart to not accumulate args
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15164 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-15 15:25:06 +00:00
Michael Jerris 107f913598 add --with-rundir configure param and -run freeswitch runtime param to adjust the location of the pid file (FSBUILD-188)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14768 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-04 18:26:15 +00:00
Michael Jerris 1d7c292212 nat pmp causes segfault on solaris, so we won't support upnp or nat pmp on solaris (FSCORE-410)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14449 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-01 05:53:28 +00:00
Michael Jerris 6854161e74 whoops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14430 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-30 00:35:53 +00:00
Michael Jerris c0248be1c3 fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14424 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 22:33:44 +00:00
Anthony Minessale 73e0537d62 use FREESWITCH_OPTS env var to hold a string of desired command line switches
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14352 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 18:20:37 +00:00
Anthony Minessale 191ed5ff4a FSCORE-395
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14058 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-30 20:01:48 +00:00
Anthony Minessale b82984fe97 add netmask detection for nat discovery work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13549 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-02 16:55:10 +00:00
Anthony Minessale 99c4971a2a make -vg imply -waste so valgrind runs won't re-exec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12670 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-20 01:22:40 +00:00
Michael Jerris 16009c5094 these seem to be causing issues on solaris
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12627 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-16 20:14:36 +00:00
Anthony Minessale 391c884671 move stop up a bit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12607 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-15 01:21:34 +00:00
Anthony Minessale a1e1c5e968 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12537 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-09 17:47:42 +00:00
Anthony Minessale 106597ffef FSCORE-325
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12533 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-09 16:11:03 +00:00
Anthony Minessale 7fb7ede422 FSCORE-323
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12509 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 14:07:48 +00:00
Anthony Minessale e599375a82 performance tuning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12495 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 02:20:29 +00:00
Brian West babb2f83f5 update copyright
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:37:37 +00:00
Brian West ae220d3341 update email
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Michael Jerris 44a729e38e allow you to specify -htdocs dir at runtime.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11614 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-03 19:37:58 +00:00
Michael Jerris ebbfd596a8 fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11566 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-30 18:11:32 +00:00
Anthony Minessale 88ecf6d17f annoy CtRiX
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11546 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-29 00:17:33 +00:00
Michael Jerris abb7adf03b freeswitch: fix user for windows service (FSCORE-277)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11538 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-28 18:02:34 +00:00
Anthony Minessale dc8762b02a fix restart for mac
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-20 18:35:07 +00:00
Brian West 0564b6ccd3 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11243 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 23:32:19 +00:00
Brian West f18d532e96 test
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11242 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 23:32:03 +00:00
Anthony Minessale 2c10f201e4 fix issue where pid file is accidentally truncated (part2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-21 15:55:17 +00:00
Anthony Minessale 482c6491ac fix issue where pid file is accidentally truncated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10493 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-21 15:52:22 +00:00
Anthony Minessale e2259d2c65 sigterm works again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10335 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-11 19:27:49 +00:00
Michael Jerris 45c452c569 FSCORE-198 (runtime select the mod dir)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9913 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-09 16:05:35 +00:00
Brian West 1cda796da8 spelling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-06 23:05:55 +00:00
Michael Jerris df5104e9c1 wrong sleep units from switch_sleep
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-06 15:43:38 +00:00
Robert Joly 87a295d253 Fixed win32 compatibility.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9825 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-04 06:39:28 +00:00
Anthony Minessale b66e1bad4c fix xml_rpc socket shutdown
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 18:50:09 +00:00
Michael Jerris e91b1e3da7 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9793 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 17:40:41 +00:00
Anthony Minessale 4966972a25 WTF
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 17:11:07 +00:00
Anthony Minessale f23c88d9fa add fsctl shutdown [elegant|restart] <- one or both keywords
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9788 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-02 16:46:20 +00:00
Anthony Minessale 11eaa4e047 make me ill
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9632 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-23 22:09:40 +00:00
Michael Jerris 4f769f1aec (FSCORE-189) Improve daemonize code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9577 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-17 02:09:58 +00:00
Anthony Minessale 4dadffda00 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9355 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-22 19:00:56 +00:00
Michael Jerris 1e969376b3 fix windows running as a service (FSCORE-159)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9115 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-21 05:05:36 +00:00
Michael Jerris 64997c4d8e vim extendtab is bad
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Michael Jerris 9bbcabbbdd indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8688 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:34:23 +00:00
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