298 Commits

Author SHA1 Message Date
Anthony Minessale
a42a0a1916 let session.sayPhrase method take a blank language string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5653 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-21 19:00:06 +00:00
Anthony Minessale
5eaea5f62a fix MODLANG-41
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5623 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-20 16:04:02 +00:00
Anthony Minessale
7deb3330a1 small tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5580 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-09 17:57:14 +00:00
Michael Jerris
baaaa00f5a change error level
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5575 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-06 21:25:56 +00:00
Michael Jerris
7e81dbe5b0 use .so not .dylib for modules on OS-X, fix for MODENDP-16
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5573 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-06 18:10:30 +00:00
Michael Jerris
f1222ba2fd fix for FSCORE-40
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5566 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 21:29:01 +00:00
Michael Jerris
f85f71390b fix for MODLANG-38
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5562 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 16:13:32 +00:00
Michael Jerris
4da5a5f601 fix for MODLANG-37
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5553 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 04:06:58 +00:00
Anthony Minessale
25057d40ac fix up some event issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5541 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-24 21:26:04 +00:00
Anthony Minessale
7feef76fb2 add uuid fsapi function, last_file_position variable, and volume controls to js callback volume:+1 etc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5498 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-05 17:03:14 +00:00
Michael Jerris
ed0076eb18 add preAnswer method, and throw a js exception if session methods requiring a answered or pre-answered channel are called on a channel that is not. adresses MODLANG-24
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5460 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 21:01:55 +00:00
Anthony Minessale
5f86cb4606 add exceptions to js and make invalid session access fatal + exception for a try/catch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5443 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 19:59:57 +00:00
Michael Jerris
9d6042dc04 fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:50:56 +00:00
Michael Jerris
4e434aff7f add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:18:18 +00:00
Anthony Minessale
e5daa7cc74 adjust api for session creation as planned
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-19 05:54:16 +00:00
Anthony Minessale
434a4e6315 js tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-18 15:44:28 +00:00
Anthony Minessale
27561c6560 Avoiding Initial SegFault *now with lycopene!*
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5373 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-15 17:05:20 +00:00
Anthony Minessale
a2bcfdbd2f fix potential crash from malformed js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5369 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-15 08:14:55 +00:00
Anthony Minessale
95f007586f stage 1 of wrecking ball (duck!)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 20:40:06 +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
a035ec592c doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-12 21:35:37 +00:00
Anthony Minessale
1b5daa6b59 add adjustable buffering to mod_shout (see example in config file)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5303 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-09 23:07:00 +00:00
Michael Jerris
da58c31380 merge changes from MODLANG-18 fix multiple odbc and spidermonkey odbc issues.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5289 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-08 14:39:09 +00:00
Michael Jerris
f704b3f623 fix bsd build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5225 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-28 05:04:28 +00:00
Anthony Minessale
d48ee84128 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5184 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-15 14:22:23 +00:00
Anthony Minessale
077d77d0e4 add jsapi api function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5169 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-14 03:17:38 +00:00
Michael Jerris
521eac756e create macro to define api command prototypes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5167 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 21:36:15 +00:00
Michael Jerris
a4ff7e88da adding const qualifiers across the api as appropriate.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 14:48:14 +00:00
Anthony Minessale
cb09b09f82 whatever
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5102 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-08 15:44:44 +00:00
Michael Jerris
f99c387755 limit callback recursion to a happy number for all. FSCORE-6
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5032 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-28 14:48:18 +00:00
Michael Jerris
2925ed8ac8 address http://jira.freeswitch.org/browse/FSCORE-6 We still need to test what the right number is for stack depth is for different platforms. We can get 13 out of msvc on my box (set the level to 12) but this is probably platform dependent and stack size dependent. How can we compute this?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5024 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-26 23:09:26 +00:00
Anthony Minessale
b184db3829 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5006 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-23 20:11:28 +00:00
Michael Jerris
ae1a6184e2 Fix 2 errors in mod_spidermonkey on windows.
1. We need a pool for apr_stat.  Expand api and create a pool when necessary.
2. Don't use -1 value in enum for no reason as they can be signed or unsigned (compiler defined) so there is an int overflow.  This fixes an incorrect assert in the spidermonkey exception handling caused by an unsigned int overflow.

resolve http://jira.freeswitch.org/browse/MODLANG-7. 


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5002 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-23 15:33:25 +00:00
Anthony Minessale
7da3873056 add app log
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-21 01:03:58 +00:00
Anthony Minessale
eb2124ae32 refactor to avoid some potential issues with channels that are hungup instantly after being answered
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4926 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-13 22:15:58 +00:00
Anthony Minessale
4d62a1adb2 add core ODBC
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-04 03:08:17 +00:00
Anthony Minessale
f79369002d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4835 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-02 23:34:58 +00:00
Anthony Minessale
1eafc86063 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4834 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-02 21:31:03 +00:00
Anthony Minessale
e47596fca5 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4832 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-02 20:20:46 +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
617d581d10 fix freebsd build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 12:41:13 +00:00
Anthony Minessale
d9de1807ee Add state change i/o hook to the core and change some spidermonkey behaviour.
The most important thing to check is you now must create a new session with a blank constructor:
s = new Session();
then call s.originate() with all the former args that were documented to be for the constructor
this will will return true or false to indicate if the call worked.

See below this sample code demonstrates all of the changes:

////////////////////////////////////////////////////////////////////////////////
function on_hangup(hup_session)
{
    console_log("debug", "HANGUP!!!! name: " + hup_session.name + " cause: " + hup_session.cause + "\n");
	//exit here would end the script so you could cleanup and just be done
	//exit();
}

//set the on_hangup function to be called when this session is hungup
session.setHangupHook(on_hangup);

//allocate a new b_session
var b_session = new Session();

//make a call with b_session.  If this fails, all we will be able to access is the b_session.cause attr
if (b_session.originate(session, "sofia/mydomain.com/888@conference.freeswitch.org")) {
	//Inform the scripting engine to automaticly hang this session up when the script ends
    b_session.setAutoHangup(true);
	//set the on_hangup function to be called when this session is hungup
    b_session.setHangupHook(on_hangup);	
	//bridge session with b_session
    bridge(session, b_session);
} else {
    console_log("debug", "Originate Failed.. cause: " + b_session.cause + "\n");
}
////////////////////////////////////////////////////////////////////////////////






git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4773 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-27 00:40:53 +00:00
Michael Jerris
03e9d2a47a use proper format string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4654 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 13:55:22 +00:00
Michael Jerris
940bf73b72 Do a better job at tracking dependencies into the libs, so libs are re-built when they need to.
Eliminate some more gmakeisms in the modules makefiles




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4629 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-17 08:40:10 +00:00
Michael Jerris
70a70aa922 Remove the requirement to define MODNAME in the module makefiles.
Remove gmakeisms from the modmake.rules module makefile include
Remove the MODNAME def from all the in tree Makefiles



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4628 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-17 05:49:57 +00:00
Michael Jerris
2ccaef7597 try to fix spidermonkey build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4604 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-15 14:50:31 +00:00
Michael Jerris
d35dda719e do a better job with dependency tracking so the the mods don't keep trying to build or install when they don't need to. This should start to help with the speed of the build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4599 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-15 01:32:18 +00:00
Michael Jerris
c03e917282 move mod_spidermonkey and mod_xml_curl to use new WANT_CURL to add curl to the module
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4593 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-14 19:37:07 +00:00