Stefan Knoblich
f921389078
Use switch_event_add_header_string() instead of switch_event_add_header(... "%s", ..), core part
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-16 02:17:09 +00:00
Anthony Minessale
481aee4ad7
doh doh doh
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9132 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-22 15:59:06 +00:00
Anthony Minessale
840b9f3367
minor logger tweaks
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9035 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-15 14:56:30 +00:00
Michael Jerris
6687f151e7
tweak colors on windows to match unix
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-14 17:09:47 +00:00
Michael Jerris
b55bd6370e
build tweaks for msvc
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9014 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-14 14:55:03 +00:00
Anthony Minessale
97dad7b353
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9012 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-14 13:44:25 +00:00
Anthony Minessale
0f873e692b
fix FSCORE-156
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8997 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-11 14:35:08 +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
Anthony Minessale
3c349c274e
indent pass 1
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8686 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:30:03 +00:00
Anthony Minessale
d9bdd7db0b
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8581 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-24 05:09:50 +00:00
Michael Jerris
f4e5aa395e
Avoid fflush-ing NULL. Found by Klockwork (www.klocwork.com)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8424 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-15 21:31:47 +00:00
Anthony Minessale
1cf6273641
spray the core with scotchguard(tm)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7889 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-14 03:47:45 +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
Brian West
935cbcf937
more cleanup before I leave LAX
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7394 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 17:42:51 +00:00
Anthony Minessale
a2d8262289
add resistance on blocking writes to stdout
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7363 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-25 23:09:33 +00:00
Michael Jerris
54ec86f6ce
use switch_snprintf instead of snprintf becuase in insures null termination of strings.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6707 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 21:53:32 +00:00
Michael Jerris
e46266fb4f
cleanup, null checks. etc.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6673 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 21:31:57 +00:00
Michael Jerris
55a194e54e
use switch_assert macro
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6661 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 19:23:57 +00:00
Michael Jerris
cc71ce69e0
handle invalid log level strings. (FSCORE-69)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6604 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-10 19:16:50 +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
b2dd6b51f5
change logger stuff and finalize mod_logfile
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6524 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 20:24:20 +00:00
Anthony Minessale
3711220ae5
sigh
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5803 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 21:15:08 +00:00
Anthony Minessale
f82e478cb5
more cleanup
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5800 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 20:22:37 +00:00
Anthony Minessale
2222933908
a bunch of fixes
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 17:25:06 +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
Anthony Minessale
bd6bd9ad57
add softtimer to the core, begin framework for static modules and reduces calls to gettimeofday for timestamps
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5784 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-03 16:44:11 +00:00
Anthony Minessale
1a316ca6db
add log and event object recycling to reduce malloc per sec in high call load
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5768 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-09-30 20:05:18 +00:00
Michael Jerris
5b27ad1332
add userdata param to switch_log_printf so we can pass uuid or other session or other identification information to the logger.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 09:19:45 +00:00
Anthony Minessale
17cd7f3433
WTF
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5219 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-25 20:39:13 +00:00
Anthony Minessale
c15d7892c0
indent again
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:15:25 +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
42e78242a3
add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00
Michael Jerris
95374edaab
constify the fmt string on all printf like functions
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4249 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 02:53:23 +00:00
Michael Jerris
ceafc84ca0
constify some arguments to switch_console_printf and switch_cut_path and remove improper casts for the consumers of those functions.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4241 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:03:06 +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
855c7b9a77
char * -> const char *
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3691 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-18 04:32:50 +00:00
Anthony Minessale
44cc7d5cfe
build progress break everything
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3682 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-17 01:01:09 +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
Anthony Minessale
251453e254
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 21:20:00 +00:00
Michael Jerris
964aec990c
make logger handle a bit more bad input.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3306 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-10 16:30:02 +00:00
Anthony Minessale
0e2a7c122c
find missing ret = and put them back
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3064 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-16 19:56:42 +00:00
Anthony Minessale
741b8329b9
Modifying the behaviour of the dialplan engine
...
the 'data' field in action tags may now refer to variables and api functions
to be expanded at runtime.
Syntax:
$varname
${varname}
&func_name(func args)
Exception:
variables that are numeric are still expanded at dialplan compile time based on the regex eg $1 $2 etc
Example:
<extension name="1000">
<condition field="destination_number" expression="^(1000)$">
<action appplication="my_route_app" data="$1"/>
<action appplication="bridge" data="$destination"/>
</condition>
</extension>
Here the $1 is ecaluated before the call begins setting it to 1000 based on the regex ^(1000)$
$destination is evaluated on the fly in execution once the my_route_app has run and has had a
chance to set the variable 'destination' to the correct value.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-07 19:54:04 +00:00
Anthony Minessale
748f0194f9
tweak shutdown process
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2299 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 19:02:06 +00:00
Anthony Minessale
a675393bb7
performance tweaks
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2298 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 17:52:12 +00:00
Anthony Minessale
7c7c42a6bf
update queue len
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1542 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-05 17:37:24 +00:00
Anthony Minessale
93666f6dd7
XMLification (wave 1)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1401 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 03:23:05 +00:00
Michael Jerris
14fee78470
part 3 of 3 standardizing typedefed types to end in _t.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 23:43:28 +00:00
Michael Jerris
d0347b2a95
part 1 of many standardizing typedefed types to end in _t
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 01:00:52 +00:00
Anthony Minessale
76b63d3a38
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1264 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 19:11:49 +00:00
Anthony Minessale
d59cae60c7
add nitrous oxide tank to core event sql backend
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 17:18:33 +00:00
Anthony Minessale
1f3dedbf2d
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1182 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-18 00:45:16 +00:00
Brian West
04ccb6ffe6
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1129 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 18:01:27 +00:00
Brian West
a9a23aed22
file/func specific logging
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1128 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 17:51:47 +00:00
Michael Jerris
9ac4da17f6
add stdio.h include for msvc, remove truncating cast warning, change to dynamic runtime on msvc. You can not pass FILE * between mods with differrent runtimes on msvc.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1125 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 15:25:26 +00:00
Brian West
1bb893efae
enhance logger stuff
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1123 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 14:41:35 +00:00
Michael Jerris
cf2bcc233a
add logger and mod_console to win32 build, fix warnings.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1119 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 21:41:00 +00:00
Brian West
559b8ab26c
Gut Logger and put it back modular style
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 21:13:44 +00:00