266 Commits

Author SHA1 Message Date
Anthony Minessale
48d87f00d6 fix get_variable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-11 18:39:19 +00:00
Michael Jerris
3a707a316a merge fix for MODLANG-15 from Traun Leyden. Thanks Traun.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5130 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-10 18:51:47 +00:00
Anthony Minessale
50b4a37771 change mod_python so freeswitch module is auto-loaded and session is auto declared
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5103 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-08 16:08:48 +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
Anthony Minessale
5a1ea34985 remove extra SessionContainer:: in header file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5100 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-07 22:09:37 +00:00
Anthony Minessale
ba652e4f94 more py stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5099 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-07 21:49:11 +00:00
Anthony Minessale
46c14326b3 anti-venom for a nasty python byte
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5098 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-07 21:27:42 +00:00
Anthony Minessale
9572b3ce8c fix python 64 bit linux build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5097 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-07 15:24:07 +00:00
Michael Jerris
dd45f3d599 fix mod_mono build. still needs some testing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5084 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-04 01:25:29 +00:00
Michael Jerris
da1dd999ce fix mod_mono makefile FINALLY, still some code bits to fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5081 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-03 23:59:20 +00:00
Anthony Minessale
6376dd448e more tweaking to the mod_mono makefile.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5080 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-03 23:20:53 +00:00
Anthony Minessale
9d5d251987 mod mono closer to building again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-03 12:18:52 +00:00
Anthony Minessale
8ed29d0bdf fig PKG_CONFIG_PATH to find glib
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5076 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-03 11:48:29 +00:00
Michael Jerris
9d22d76b32 fix form MODLANG-13 from Matt brown, thanks Matt.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5041 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-29 16:34:00 +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
91fa229ae5 a bit closer on getting mod_mono to build again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-25 22:24:19 +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
Michael Jerris
50b5fe43a2 MODLANG-10 Modify Javascript exec function to return number of changed rows, thanks Dale.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4921 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-12 18:22:09 +00:00
Anthony Minessale
ceb98915bb add looping buffers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4849 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-04 18:22:59 +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
bf0c023107 start building teletone as part of the core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4754 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-23 20:41:16 +00:00
Michael Jerris
a7c186acec keep odbc from installing every time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4748 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-23 03:45:08 +00:00
Anthony Minessale
25d6572f80 fix mod_perl compile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4718 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 20:16:33 +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
e42d7ec1c9 fix some warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4641 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-18 16:40:01 +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
Michael Jerris
b196ff7205 add support for doing make from the module directory of the in tree modules.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4586 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-13 18:23:49 +00:00
Brian West
3bd2569177 fix type
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4582 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-13 16:39:30 +00:00
Brian West
08d15071a4 fix spelling, Everyone do not forget to thank Mike for all his hard work.. he need sleep now. ;) ./applications/mod_enum/Makefile
./asr_tts/mod_cepstral/Makefile
./asr_tts/mod_lumenvox/Makefile
./codecs/mod_amr/Makefile
./codecs/mod_g711/Makefile
./codecs/mod_g722/Makefile
./codecs/mod_g723_1/Makefile
./codecs/mod_g726/Makefile
./codecs/mod_g729/Makefile
./codecs/mod_gsm/Makefile
./codecs/mod_ilbc/Makefile
./codecs/mod_lpc10/Makefile
./codecs/mod_speex/Makefile
./directories/mod_ldap/Makefile
./endpoints/mod_dingaling/Makefile
./endpoints/mod_iax/Makefile
./endpoints/mod_portaudio/Makefile
./endpoints/mod_sofia/Makefile
./endpoints/mod_wanpipe/Makefile
./event_handlers/mod_cdr/Makefile
./event_handlers/mod_xmpp_event/Makefile
./event_handlers/mod_zeroconf/Makefile
./formats/mod_shout/Makefile
./formats/mod_sndfile/Makefile
./languages/mod_mono/Makefile
./languages/mod_perl/Makefile
./languages/mod_python/Makefile
./languages/mod_spidermonkey/Makefile
./languages/mod_spidermonkey_core_db/Makefile
./languages/mod_spidermonkey_etpan/Makefile
./languages/mod_spidermonkey_odbc/Makefile
./languages/mod_spidermonkey_skel/Makefile
./languages/mod_spidermonkey_teletone/Makefile
./xml_int/mod_xml_curl/Makefile
./xml_int/mod_xml_rpc/Makefile

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4564 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-12 05:17:17 +00:00
Michael Jerris
514bde18c7 an attempt to simplify the module make files. More changes to come on the modules building soon
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4562 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-12 04:21:54 +00:00
Michael Jerris
a9ff1022d7 fix include paths and makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4559 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-11 16:24:34 +00:00
Michael Jerris
ee3fc89f69 move all the in tree libs to use subst of the core configure, move all module builds to link with libtool to the .la, static when possible
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-11 14:03:58 +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
cc0ea39446 fix msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4478 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 02:31:34 +00:00