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
Anthony Minessale
21b1ffbf25
add core-db-pre-trans-execute and core-db-post-trans-execute to switch.conf.xml to wrap sql stmts around the core transactions
2012-04-26 11:12:16 -05:00
Ken Rice
c5554eb939
Copyright date update.
2012-04-18 11:52:02 -05:00
Anthony Minessale
a4de359df4
FS-4077 --resolve this is unrelated, we had to move the network list loader before the modules load because some people using static configs would have mod_sofia load before the acl were in place and it would prevent mod_sofia from doing proper nat detection. This commit should fix it by loading acl both before and after module load
2012-04-11 09:53:35 -05:00
Anthony Minessale
139dc3e34e
fix race condition where network lists are not created yet so nat detection does not work in sofia during startup
2012-04-02 16:03:45 -05:00
Anthony Minessale
d655ceecf8
add fsctl debug sql
2012-04-02 12:58:40 -05:00
Anthony Minessale
6f6765b8f2
start one msg thread per cpu by default
2012-03-27 16:48:30 -05:00
Anthony Minessale
ed19343618
enhance 722f1060
with windows specific way
2012-03-27 16:32:56 -05:00
Anthony Minessale
c358f67fe4
eat inbound vid while playing fsv files
2012-01-17 12:19:31 -06:00
Jeff Lenk
24288832b1
FS-2216 partial with renaming
2012-01-08 14:19:16 -06:00
Anthony Minessale
679da2f0f6
remove extra /
2012-01-02 13:00:40 -06:00
Jeff Lenk
377fb37168
FS-3779 --resolve hopefully this is ok
2011-12-23 14:54:53 -06:00
Anthony Minessale
691f7935e7
remove unused var
2011-12-23 10:15:15 -06:00
Jeff Lenk
8cda2d19dd
FS-3740 fix warning
2011-12-23 10:05:14 -06:00
Jeff Lenk
9abd5c5da5
FS-3779 --resolve
2011-12-21 18:35:24 -06:00
Anthony Minessale
239094e49c
fix
2011-12-20 13:51:47 -06:00
Anthony Minessale
0f6a2bf863
the threaded one seems to not work using only fork
2011-12-20 13:49:15 -06:00
Jeff Lenk
6824871df0
fix windows warning for last commit
2011-12-20 14:18:30 -06:00
Anthony Minessale
d7a37e9754
allow system API command to capture output from the executed command
2011-12-20 12:34:21 -06:00
Anthony Minessale
e164b76caf
add api_on_startup
2011-12-15 15:43:44 -06:00
Anthony Minessale
6e7d44af42
FS-3764 --resolve
2011-12-14 13:23:54 -06:00
Marc Olivier Chouinard
e566057701
FS-2216 --resolve
2011-12-14 10:27:31 -05:00
Anthony Minessale
1ee867444d
FS-2936 remove unused functions
2011-11-30 09:26:16 -06:00
Anthony Minessale
e794a6db21
FS-2936 stage 2 please test ASAP
2011-11-29 15:35:36 -06:00
Anthony Minessale
e58ed35d17
FS-2936 stage 1
2011-11-29 11:13:11 -06:00
Anthony Minessale
12f2bdf66a
FS-3724 2 ways to fix after updating to this version, 1) run set_zombie_exec in the dp; 2) use system_on_fax_success/system_on_fax_failure vars with explicit name of your command
2011-11-28 16:45:59 -06:00
Anthony Minessale
ea359d899f
wtf
2011-10-21 19:50:08 -05:00
Anthony Minessale
ead7a68276
add <param name="core-odbc-required" value="true"/> to require connection to core db over odbc for startup
2011-10-17 09:34:50 -05:00
Anthony Minessale
2094f2d33b
add fsctl sync_clock_when_idle so you can sync the clock but have it not do it till there are 0 calls
2011-10-12 14:55:32 -05:00
Anthony Minessale
d9ce90d7b9
FS-3570 generate side
2011-09-16 11:41:25 -05:00
Anthony Minessale
4c3a0eb357
fix build for n00buntu
2011-09-13 08:37:48 -05:00
Jeff Lenk
722f10606a
fix windows build for now
2011-09-12 21:05:15 -05:00
Anthony Minessale
d354399c8a
wtf
2011-09-12 17:54:07 -05:00
Anthony Minessale
1e712c7e03
only reap sigchld when in fork mode for system
2011-09-12 16:14:30 -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
6dd1264d08
add support for global nameseace in chat interface to bind to unhandled messages
2011-09-02 14:41:25 -05:00
Anthony Minessale
e518bb9556
ignore signals instead of using a blank handler
2011-08-26 12:59:01 -05:00
Anthony Minessale
dfac4c4752
add auto-clear-sql param to core
2011-08-24 13:36:19 -05:00
Anthony Minessale
9c8437a1da
FS-3415 --resolve
2011-08-10 07:58:02 -05:00
Anthony Minessale
0521886de8
use rwlock for global vars to reduce contention
2011-07-12 20:36:42 -05:00
Anthony Minessale
b6fc1a5f30
FS-3372 --resolve
2011-06-27 10:09:15 -05:00
Anthony Minessale
b978d39d48
FS-3312 --resolve
2011-05-25 14:45:55 -05:00
Anthony Minessale
23b5f58202
use ssl macro to init on dingaling too
2011-05-13 16:17:17 -05:00
Anthony Minessale
acf3090adf
FS-2936 plan B for curl stuff
2011-05-13 13:17:54 -05:00
Anthony Minessale
c196e2c109
revert curl changes
2011-05-13 12:03:30 -05:00
Jeff Lenk
a912fa6b3e
VS2008 cleanup for Core Curl integration
2011-05-12 10:48:46 -05:00
Anthony Minessale
7064487df2
FS-2936 please test on windows
2011-05-11 10:07:00 -05:00
Anthony Minessale
16e3d1fa25
default timer to run slower and increase as needed, Run the timer at 20ms by default and drop down as needed unless you set 1m-timer=true which was previous default
2011-04-29 11:09:14 -05:00
Anthony Minessale
00b53a91ea
FS-3277 --resolve There are actually really only 2 places where it needs the real hostname, the hostname command and the header on the events. I changed everything to the switchname because there were some more sql stmts etc in the core.
2011-04-29 10:24:50 -05:00
Anthony Minessale
73279f01bf
FS-3166 --resolve
2011-04-22 16:43:29 -05:00
Anthony Minessale
0b51aca321
enable optimal defaults on linux kernels that can support newer features.
2011-04-18 11:17:33 +00:00
Anthony Minessale
e4eade33ac
fix default tipping point it was too low
2011-04-15 14:46:24 +00:00
Anthony Minessale
758949cda7
move sig messages up to DEBUG1
2011-04-08 14:23:16 -05:00
Brian West
1604f08e33
rebind sighandlers
2011-04-08 13:46:02 -05:00
Jeff Lenk
5310735c5f
FS-3232 --resolve using relative path in windows script
2011-04-07 15:47:30 -05:00
Anthony Minessale
008f988990
FS-3208 --resolve
2011-04-01 12:30:24 -05:00
Anthony Minessale
6388e03d07
allow 100 microsecond tolerance on timer loop
2011-03-28 13:50:52 -05:00
Jeff Lenk
57b6255b17
windows - set process priority class to ABOVE_NORMAL_PRIORITY_CLASS previous default was NORMAL_PRIORITY_CLASS before today
2011-03-22 15:15:09 -05:00
Jeff Lenk
af2cebc153
fix windows build(2)
2011-03-22 14:12:33 -05:00
Jeff Lenk
06469a6610
fix windows build
2011-03-22 13:48:19 -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
26f5ebd47d
dont calibrate clock when timerfd enabled
2011-03-21 21:01:20 -05:00
Anthony Minessale
10174ea6d5
add timerfd support to the core for now you must enable it in switch.conf.xml with the param enable-softtimer-timerfd=true later if it proves to work well we can make it on by default, please test if you have a new kernel that supports this option kernel >= 2.6.25 and libc >= 2.8
2011-03-21 20:49:39 -05:00
Anthony Minessale
61cdf0da5d
add limits to simo open sql handles
2011-03-04 13:52:30 -06:00
Anthony Minessale
cf827e8f22
FS-3063 --comment-only try this commit, maybe it was uninit mem
2011-02-25 16:34:17 -06:00
Anthony Minessale
b36a7c0ba6
add multiple-registrations flag to the core similar to mod_sofia
2011-02-17 12:12:43 -06:00
Marc Olivier Chouinard
500e9acd25
switch_core: Add capability to specify core-db-name in switch.conf.xml to have sqlite in a different location. This is important for everyone with relatively 'high' sip registration since the addition of sip registration to the core require sqlite db to be moved to a faster location (Ramdisk for example). Useful for everyone who moved their sqlite db for sofia to ramdisk because of performance issue.
2011-02-15 01:49:41 -05:00
Anthony Minessale
68d08547f3
try to improve iLBC compat
2011-02-03 16:27:22 -06:00
Anthony Minessale
4ae8282e6c
fix possible bad pointer in global vars (please test)
2011-02-02 15:43:26 -06:00
Anthony Minessale
1cf79386c8
FS-2917
2011-01-21 14:51:38 -06:00
Brian West
3734f4cd44
bump copyright date and fix some email and typos from diego.
2011-01-05 10:09:04 -06:00
Brian West
db91f0e81f
FS-2842: ACL for IPv6 address and swigall to boot
2010-11-15 11:37:23 -06:00
Jeff Lenk
d2ca8d4046
FS-2050 Core ODBC support for transactions with MSSQL
2010-10-21 16:18:54 -05:00
Anthony Minessale
dfa78985b4
Change codec behaviour
...
channel_variable: sdp_m_per_ptime
Adds a new m= line for each distinct ptime in codec list.
When this variable is not set:
When mixing codecs with various ptime in a codec list, they will now be allowed to co-exist in the sdp but it will send no ptime attr.
This means the ptime preferences on the offer will be ignored when mixing codecs with various ptimes.
When receiving a codec list with no ptime attr, the ptime will be chosen from local preference instead of assuming 20ms
This means if offer contains PCMU with not ptime and FS has PCMU@40i
Dynamic payloads will now start at 98 and increment per additional dynamic codec per call.
So now you can add CELT@32000h,CELT@48000h and each one will be auto-assigned a dynamic paylaod type.
2010-10-13 19:28:20 -05:00
Anthony Minessale
4a3c726aff
whitespace
2010-10-08 17:05:09 -05:00
Anthony Minessale
e3c427ad28
fix default ptime for iLBC and make new configurable global map in switch.conf.xml
2010-10-08 17:04:22 -05:00
Anthony Minessale
ef79535c45
add nitrus boost to sql thread
2010-09-14 16:19:13 -05:00
Anthony Minessale
6f2c455f92
add tone2wav
2010-09-14 11:48:43 -05:00
Anthony Minessale
a11f4e4fb3
add auto-create-schemas param to switch.conf.xml
2010-08-04 09:57:07 -05:00
Anthony Minessale
8670318855
remove dup line
2010-07-23 14:13:45 -05:00
Anthony Minessale
710376fbe8
try to avoid skipping hangup hook
2010-07-23 14:11:47 -05:00
Mathieu Rene
6bd82d1fb4
Add fsctl shutdown_check to see if we're currently shutting down
2010-06-29 23:03:10 -04:00
Rupa Schomaker
8c8d962e3a
fix perms
2010-06-21 09:51:57 -05:00
Rupa Schomaker
b36f2a23bf
timer based nat_map refresh
2010-06-21 09:51:57 -05:00
Anthony Minessale
c017c24b8e
FSCORE-612 with mods
2010-05-25 16:54:31 -05:00
Anthony Minessale
19dca2e3e9
add callee id to events and add global param verbose-channel-events and fsctl verbose_events [on|off] to globally configure verbose events
2010-04-27 16:52:40 -05:00
Anthony Minessale
95665f0096
JANITOR-4
2010-04-21 10:11:13 -05:00
Anthony Minessale
b481cf0e21
FSCORE-576
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17065 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-22 16:22:19 +00:00
Anthony Minessale
b1ddb70cf1
add fsctl min_idle_cpu and min-idle-cpu feature to refuse calls after the system fallse below a certian percentage of idle cpu
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-10 20:21:34 +00:00
Anthony Minessale
d8214d521c
increase default
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16890 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-04 00:41:42 +00: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
e3e7ad8fbe
disable cpu timer affinity by default but make it still possible via config and fix stray constant in tipping_point
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16679 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-17 19:50:25 +00:00
Anthony Minessale
351e8edd99
up default
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16625 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-12 20:51:16 +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
Anthony Minessale
035d9c0506
make banner an api command so you can fetch it over event socket
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16451 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-22 02:42:05 +00:00
Anthony Minessale
34fc42c7b5
=/
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16328 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 22:22:08 +00:00
Anthony Minessale
2cd7ef1457
fix startup
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16326 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 21:48:08 +00:00
Anthony Minessale
f4a50a5e91
save history when stoping now
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16312 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-14 21:00:32 +00:00
Anthony Minessale
abd116829e
switch to conditional broadcast mode on slow kernels
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-14 16:02:46 +00:00
Michael Jerris
d1c60899de
add soundsdir configure var and sounds_dir global freeswitch var
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16241 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-11 16:32:35 +00:00
Michael Jerris
5ccac21dc3
wip move towards adding directory layout control to configure
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16238 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-11 14:36:29 +00:00
Michael Jerris
c064a2a586
add recordings_dir
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16233 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-11 03:20:42 +00:00
Anthony Minessale
009fe09c3c
fsctl add shutdown now for debugging
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16220 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-08 22:10:03 +00:00