Commit Graph

746 Commits

Author SHA1 Message Date
Brian West bc767bb35a Adding rfc6598.auto and adding rfc6598 space to nat.auto acl, This is the NAT444 carrier grade nat space 2014-11-06 08:55:03 -06:00
Travis Cross 27e3b5b705 Name variable `storage_dir`
...rather than `storage`.

ref: commit ce96d95c5e
2014-09-04 20:57:28 +00:00
Russell Treleaven ce96d95c5e add support for cache directory
make configs use specific directory variables instead of just base_dir
so that one configuration can be used for fhs and legacy installations
2014-08-31 20:22:08 -04:00
Brian West b6dc4a6c11 FS-6747 #resolve 2014-08-22 16:39:52 -05:00
Travis Cross 03202e3017 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 22:39:27 +00:00
Michael Jerris 65d9cf62c9 CID:1214237 String not null terminated 2014-05-16 14:41:42 +00:00
Anthony Minessale 4a543b29a2 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:02 +05:00
Travis Cross fd4364cd43 Drop dead assignment 2014-04-30 22:43:33 +00:00
Travis Cross 946db55b34 Drop dead assignments 2014-04-30 22:42:08 +00:00
Anthony Minessale 7151d6acea FS-6402 part 2 2014-04-02 03:21:37 +05:00
Travis Cross cde20f6fe6 Require sqlite as a system dependency
This purges sqlite from our tree and requires it to be present on the
system for building and running FreeSWITCH.

FS-353
2014-03-24 12:54:49 +00:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
William King 3575a07c40 FS-6271 --resolve Adding support for smoothing the min-cpu-idle by X number of seconds. Adds the cpu-idle-smoothing-depth into the conf/autoload_configs/switch.conf.xml configs with a default value of 30 seconds. 2014-02-26 12:36:50 -08:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 6fef880f12 FS-5675 --resolve 2014-01-24 00:23:58 +05:00
Anthony Minessale 96fc5b1fc0 change startup logline to info so it goes in the logs and we can see which version is running 2014-01-20 23:13:59 +05:00
Ken Rice bc0dc9a719 hush cranky compiles due to no format string 2014-01-17 09:07:16 -06:00
Anthony Minessale 8dfbd91a3d fold version macros into runtime functions to avoid cascade rebuilds when modifying the core 2014-01-17 01:54:47 +05:00
Anthony Minessale d6bb35ad3c add soft timer support for fd per timer use enable-softtimer-timerfd=broadcast in switch.conf.xml for orig behaviour 2013-11-16 01:37:16 +05:00
Anthony Minessale 1cd6d44b06 move shutdown of session to after switch_event 2013-10-10 22:23:22 +05:00
Anthony Minessale 5e43037fc6 change default to use event dispatch 2013-10-01 20:10:24 +05:00
Anthony Minessale 012e321f61 improve thread pool logic 2013-09-27 23:37:05 +05:00
Seven Du 9074a12455 FS-5769 --resolve 2013-09-10 00:59:55 +08:00
Anthony Minessale a5f2176ea4 deliver events with the core thread pool set events-use-dispatch=true in switch.conf.xml to use the old way 2013-09-05 03:42:40 +05:00
Anthony Minessale 7d6d688e53 FS-5731 --resolve 2013-08-26 20:25:14 +05:00
Ken Rice 7fb4369932 peak sessions step 1 2013-07-20 20:11:46 -05:00
Ken Rice 5660f90509 add peak SPS for last 5 minutes 2013-07-19 22:40:59 -05:00
Anthony Minessale c510f3f52e add peak sps to stats and a command to reset it 2013-07-19 15:16:42 -05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Anthony Minessale 4240526ce3 add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device 2013-06-05 11:20:11 -05:00
Anthony Minessale f0dd0ef7b1 FS-5332 --resolve 2013-04-22 13:26:19 -05:00
Anthony Minessale bf607b0d91 FS-5319 --resolve 2013-04-17 15:33:27 -05:00
Anthony Minessale dabb85c3f6 wip 2013-03-31 21:27:22 -05:00
Anthony Minessale 6939394530 isolate sdp parser code to the switch_core_media.c 2013-03-31 21:27:17 -05:00
Anthony Minessale 7510bccd6c MILESTONE: working inbound calls 2013-03-31 21:27:17 -05:00
Anthony Minessale 861c3e3ccc add switch_core_get_variables and allow execute_on funcs to see global vars too 2013-03-27 14:54:01 -05:00
Anthony Minessale e8ecf7c887 FS-4846 --resolve 2013-03-07 16:21:37 -06:00
Giovanni Maruzzelli 3e31837a0b ERROR: code not reachable on Windows Visual Studio Express 2008 2013-02-23 12:31:26 +01:00
Anthony Minessale 2491c33af6 always try realtime first and let ppl use -np themselves if its a problem 2013-02-22 17:49:12 -06:00
Anthony Minessale 56d397fc1b FS-5103 --resolve 2013-02-19 15:17:51 -06:00
Anthony Minessale fe40523ec0 FS-4646 --resolve thanks for the update 2013-01-22 10:01:52 -06:00
Anthony Minessale 4d0ee5b196 set isac default ptime to 30 2013-01-17 17:09:44 -06:00
Anthony Minessale e57ece0d46 add skip 0.0.0.0 to wan.auto 2013-01-16 20:37:44 -06:00
Anthony Minessale 9bf0bd8238 FS-5015 --resolve 2013-01-14 16:36:48 -06:00
Anthony Minessale 428cd029de FS-4868 --resolve This patch also adds freeswitch.ready() which will return false once shutdown has started 2012-11-26 15:18:58 -06:00
Anthony Minessale 55ac6d22ad restore significant part of last patch 2012-11-20 10:19:08 -06:00
Anthony Minessale bfae89267e revert 2012-11-20 10:13:05 -06:00
Jeff Lenk 93b5f7fdfd FS-4099 FS-4847 2012-11-19 23:32:41 -06:00
Anthony Minessale 759d26db09 FS-4771 --resolve 2012-10-29 09:27:59 -05:00
Anthony Minessale 9d4b72b29a fold the last round of sql manager changes back into the core and use it for the central db and simplify the algorithm 2012-10-26 20:52:09 -05:00
Anthony Minessale c670ed6df5 fix type in config 2012-10-25 11:31:47 -05:00
Anthony Minessale 1a43405bed up max db buffer size in core sql 2012-10-23 20:38:03 -04:00
Anthony Minessale e1fe289672 refactor db stuff to use single string dsn to avoid code duplication and introduce switch_sql_queue_manager api to create transactional sql queues to aggregate a bunch of sql stmts into transactions 2012-10-09 20:20:32 -05:00
Anthony Minessale 6998695f01 fold recovery db to only use core db and use transactional stmts for recovery stmts 2012-10-08 17:59:47 -05:00
Anthony Minessale 1ad45f7009 revert e08f9ada73 2012-10-08 15:57:51 -05:00
Eliot Gable e08f9ada73 Abstract the sql_manager and cache_db stuff so that modules can utilize the core functionality to run their own instance of a cached SQL connection. Includes patch to fix some segs in case ODBC does not have password set or if using PGSQL support. 2012-10-08 20:34:09 +00:00
Eliot Gable 5cb354dddc Initial core-pgsql support based on native libpq; FS starts and stops without errors using core-pgsql. 2012-10-08 20:33:57 +00:00
Anthony Minessale 3d57cbda98 pull this code echo -1 > /proc/sys/kernel/sched_rt_runtime_us yourself if you want to enable this 2012-10-04 08:29:26 -05:00
Anthony Minessale 6d01ad5e38 some more priority tweaks 2012-10-03 14:10:22 -05:00
Anthony Minessale bc06155740 more priority tweaks 2012-10-02 07:39:21 -05:00
Anthony Minessale 52eff9451c wrap fork so we can drop priority in child processes 2012-10-01 13:38:45 -05:00
Anthony Minessale 464155c5cd more priority tweaks 2012-10-01 10:20:48 -05:00
Anthony Minessale 8733a2c895 some priority queuing tweaks for performance 2012-10-01 11:47:26 -05:00
Stefan Knoblich 8075b01569 Fix error in switch_core_screen_size() and screen_size() fallback code.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-09-26 17:21:05 +02:00
Anthony Minessale dbf5153fb7 speed improvements: change scheduler to SCHED_FIFO, Disable realtime throttling, use in-memory db for sqlite core channels table (set core-db-name to 'core' in switch.conf.xml for previous behaviour of using the core sqlite file, now only aliases will be in the persistant db) 2012-09-25 16:12:58 -05:00
Jeff Lenk 176d60beb3 FS-4645 does this help 2012-09-25 08:55:44 -05:00
Jeff Lenk f997cc25d1 remove trailing backlash from windows temp paths - mostly cosmetic 2012-09-24 22:36:15 -05:00
Anthony Minessale b989775085 followup for cent5 2012-09-24 17:07:55 -05:00
Anthony Minessale 03c981bf72 add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
Michael Jerris 4ff9b2f102 revert fb2ffbafe2 2012-09-24 15:38:06 -04:00
Travis Cross 447a2c6279 Improve startup cosmetics 2012-09-23 07:49:29 +00:00
Travis Cross fb2ffbafe2 Add configure flags to moderate the ClueCon nags
The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.

However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.

If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
2012-09-23 07:49:26 +00:00
Travis Cross 72baa97369 Condense the humanized FS version string
Old:
FreeSWITCH Version 1.3.0+git~20120916T192130Z~3b5aa066c7 (1.3.0; git at commit 3b5aa066c7 on Sun, 16 Sep 2012 19:21:30 Z)

New:
FreeSWITCH Version 1.3.0+git~20120916T192130Z~3b5aa066c7 (git 3b5aa06 2012-09-16 19:21:30Z)
2012-09-23 04:13:04 +00:00
Anthony Minessale c6e7549055 FS-4634 --resolve 2012-09-20 09:48:47 -05:00
Anthony Minessale d80e91d248 doh 2012-09-18 16:00:19 -05:00
Anthony Minessale c5204c2128 FS-4614 --resolve update to dynamic line buffer and use internal buffering to boot for file I/O on preprocessing XML 2012-09-18 15:39:28 -05:00
Jeff Lenk e22f42334d FS-4099 --resolve switch windows to use posix delimiter (/) for base paths. This will correct numerous problems with escaped chars. This change only effects windows builds. Please test. 2012-09-16 14:15:49 -05:00
Anthony Minessale ada8b78393 FS-4573 --resolve 2012-08-29 11:46:36 -05:00
Anthony Minessale 66677c940a move recovery engine up into the core 2012-08-22 16:27:07 -05:00
Anthony Minessale 142c051d68 cache session threads and reuse them if possible 2012-08-21 00:14:50 -05:00
Jeff Lenk 0807b39c8d FS-4543 --resolve thanks Peter 2012-08-17 19:31:47 -05:00
Anthony Minessale f454b79b9b fix color coding to be OS appropriate 2012-08-16 13:04:33 -05:00
Anthony Minessale 293429f78d add api-expansion to switch.conf.xml and fsctl api_expansion command to control allowing apis to be expanded via variable expansion 2012-07-27 18:53:04 -05:00
Anthony Minessale 1d5b5f218a add core_uuid global variable to expose the runtime uuid 2012-07-26 11:38:02 -05:00
Travis Cross a8019d803c Make version output more human-friendly
Our main version string is designed for release engineering purposes:
it matches file name conventions used for versioned tarballs and the
versions sort lexicographically while containing all pertinent
information.

With this commit we add in parentheses a more human-friendly rendering
of the version string: we spell out the meaning of each field and
render the datetime in RFC 822 notation.
2012-07-20 07:43:26 +00:00
Anthony Minessale 46fee25dad add fsctl sql start/stop for standby controls 2012-07-12 14:30:44 -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
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 16cb32cd5c come to cluecon will ya 2012-07-06 17:54:21 -05:00
Anthony Minessale b1ae97466d add enable-use-system-time param to switch.conf.xml use at your own risk, someone with windows could verify it works ok 2012-07-03 17:15:14 -05:00
Anthony Minessale c5ba5acbd5 move stacksize thing into the core deeper to avoid build issues 2012-07-03 11:35:41 -05:00
Anthony Minessale 7ec8fb43d4 add initial-event-threads to switch.conf.xml 2012-06-29 11:39:49 -05:00
Daniel Swarbrick 2b48cf8778 Resolve unused-but-set-variable introduced by c608ca3 and remove a line of redundant code. 2012-06-14 12:16:08 +02:00
Anthony Minessale c608ca35d8 don't print ASS 2012-06-13 11:29:14 -05:00
Anthony Minessale 2a257a56a2 default to forking system on non-windows 2012-05-24 13:06:32 -05:00
Anthony Minessale b117a65c50 put a little contention in the reg in new thread feature to prevent endless pileup 2012-05-17 19:57:02 -05:00
Anthony Minessale 5c75d4cf5b FS-4220 --resolve i refactored this into a general cross platform function and use it everywhere else we try to set affinity 2012-05-15 08:31:42 -05:00
Anthony Minessale 5190bd0849 FS-4186 --resolve 2012-05-04 08:25:48 -05:00
Anthony Minessale 8664dc6d5a some perfomance tweaks 2012-05-03 16:31:21 -05:00
Anthony Minessale f1b504402b add core-db-inner-pre-trans-execute and core-db-inner-post-trans-execute to switch.conf.xml to wrap sql stmts inside the meat of the core transactions 2012-04-26 11:28:47 -05:00