Commit Graph

133 Commits

Author SHA1 Message Date
Anthony Minessale d96f9bac56 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7711 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-20 20:15:45 +00:00
Anthony Minessale 645588ffec comment auto-disable stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-20 03:56:38 +00:00
Brian West b2ba4eb2cc tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7705 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-20 00:30:39 +00:00
Michael Jerris 62a9f72590 extra error checking.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7559 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-08 19:06:13 +00:00
Brian West c53adbb46b clean up
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7517 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-04 18:23:51 +00:00
Brian West 50c2d0a0bb add default loglevel for mod_console
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7516 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-04 18:22:29 +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 e39aa9bd05 fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7367 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-26 04:07:48 +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 a974e75fab fix config parsing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7203 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-13 20:11:54 +00:00
Anthony Minessale 143bed09a3 try to use clock_gettime to make sure we don't care if the system time changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-11 00:43:49 +00:00
Michael Jerris 6c3592d907 use switch_assert macro instead of just assert.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6710 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 22:41:35 +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 4110f73cf3 add msvc 2008 sln/project files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6690 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 01:40:13 +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
Anthony Minessale 93a5f12368 typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6554 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-06 22:57:45 +00:00
Anthony Minessale 8bf63d3d8c add mod_cdr_csv
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6542 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-06 19:51:55 +00:00
Michael Jerris 533c46874e fix build, remove nag message to stderr when in -nc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6536 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-06 13:50:14 +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
Michael Jerris 7629d4c652 use function to avoid build error.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6519 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 14:42:25 +00:00
Michael Jerris b010bb1f07 always init the levels array.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6518 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 13:25:33 +00:00
Michael Jerris 676c6f5635 another step towards multi-profile file logger.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6517 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 13:15:21 +00:00
Michael Jerris 3b4e37baad unused var.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6516 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 13:04:49 +00:00
Michael Jerris 16c61ac868 another step towards multi-profile file logger.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6515 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 12:52:37 +00:00
Michael Jerris e338dc3f83 reformat
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6514 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 03:17:34 +00:00
Michael Jerris c320b9621d get rid of more globals
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6513 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 03:05:29 +00:00
Michael Jerris 1bbda8eb61 put levels in profile too
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6512 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 03:00:14 +00:00
Michael Jerris 7ed757abf0 step towards profile based mod_logfile. You will need to update your config if you have a logfile.conf.xml already.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6511 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-05 02:36:27 +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 c26098bac2 mod_logfile code/default config cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6507 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-04 23:06:39 +00:00
Anthony Minessale 26fccbdddb update logger code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6504 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-04 22:36:05 +00:00
Anthony Minessale fdbb1d43fa removed unused declaration
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-30 01:29:05 +00:00
Michael Jerris 46a9ef7feb line endings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6420 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-28 21:42:12 +00:00
Michael Jerris d87cfbdb2c initial check-in of file logger module from anthonyl branch, reworked for current module interface and cleaned up debugging code. More to come on this module.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6414 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-27 19:32:55 +00:00
Michael Jerris 99d79d8595 pass loglevel and remove unused params (FSCORE-33)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6409 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-27 03:37:05 +00:00
Michael Jerris 48c10de69a use logger interface level and remove unused facility and level config args. (FSCORE-33)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-27 03:14:09 +00:00
Michael Jerris 66501a6cdd build cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-19 02:46:05 +00:00
Michael Jerris 6959c3ddd7 move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5971 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 18:11:43 +00:00
Michael Jerris 2e2befeff4 move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 07:39:25 +00:00
Michael Jerris 83c21e77f3 move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 07:21:38 +00:00
Michael Jerris bbffdd99ab cleanup some project file properties and hopefully fix the release build enum issue.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5961 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 04:15:33 +00:00
Anthony Minessale b099f96e4e format
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5925 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-17 14:59:17 +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 ae02cbef83 add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 07:53:33 +00:00
Michael Jerris 1d38303345 use the right varname
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5346 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 20:17:41 +00:00
Michael Jerris 784c7f8c3d move some modules to use the new module interface macros.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5344 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 17:48:49 +00:00
Michael Jerris b67f9c5b2a move some modules to use the new module interface macros.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5343 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 17:06:10 +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 25762b3583 CR/LF -> LF
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4759 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-24 03:32:24 +00:00
Michael Jerris 36d5176312 add color support to console in windows. Note, I don't like the colors I chose, if someone comes up with better ones, I'd be happy for the patch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-04 22:19:39 +00:00
Anthony Minessale a99973ca7c add colorize option to mod_console (see in-tree conf/console.conf.xml)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-28 18:28:07 +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 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 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 2bdb4f41b3 fix syslog (thanks justin unger)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2702 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-14 18:58:38 +00:00
Anthony Minessale 780edcd09d optimizations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2354 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 00:56:27 +00:00
Michael Jerris 1003a4d404 Cleanups from update to new build system for windows.
More to come.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2325 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 07:22:18 +00:00
Michael Jerris ae380d58ec Update to new build system for windows.
This fixes several issues when debugging code in the ide, and does better dependency tracking.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 19:58:55 +00:00
Michael Jerris a90b88d201 revert static runtime change for msvc. Bad idea...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 17:44:38 +00:00
Michael Jerris fea5980a12 Change windows build to use static runtime to make it more easily portable to older windows, and to decrease startup time on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2289 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 16:11:08 +00:00
Anthony Minessale 34882f7a60 fix logical error
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-11 17:39:50 +00:00
Anthony Minessale 21c2b5812e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1476 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-17 00:58:21 +00:00
Anthony Minessale f09491a69b XMLification (wave 4)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 15:47:54 +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
Anthony Minessale 9e93388543 commit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1326 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 16:55:30 +00:00
Michael Jerris c904577269 C++ says we can't use "interface" as a variable name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1305 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-30 18:24:24 +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 73a3adac8f part 2 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1294 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 06:05:03 +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 b81e4d6c97 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1263 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 18:37:53 +00:00
Michael Jerris 026e8d39ca Set log levels on many existing log messages. A huge thanks to James Martelletti for going through all the log calls to do this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-16 06:05:53 +00:00
Michael Jerris d0a103a343 Addition of mod_syslog for *nix. Thanks to James Martelletti.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 16:45:31 +00:00
Brian West 0ec4d10479 console tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 15:59:22 +00:00
Brian West 4959cbff2b optimize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 19:10:04 +00:00
Brian West 6469703905 optimize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1130 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-12 18:53:42 +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