742 Commits

Author SHA1 Message Date
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
Anthony Minessale
54d483c4f5 fix fatal include
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4471 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 22:17:02 +00:00
Michael Jerris
ec3fcde87d change switch_core_timer_next to return switch_status_t, update all users to new usage, add some error checking to mod_conference so that it bails out of the loops more gracefully on shutdown.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4454 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 23:18:29 +00:00
Brian West
4575a9ea5f git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4406 d0543943-73ff-0310-b7d9-9358b9ac24b2 2007-02-27 19:57:20 +00:00
Brian West
58f7f5da9b git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4405 d0543943-73ff-0310-b7d9-9358b9ac24b2 2007-02-27 19:56:33 +00:00
Michael Jerris
3e3760a996 add flags to the application interface for marking if apps support no media mode. FSCORE-7
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-26 21:38:10 +00:00
Michael Jerris
ad7f54e3b7 apiExecute, in js_api_execute, set the stream.write_function before doing switch_api_execute (fixes jira MODLANG-2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 22:43:11 +00:00
Anthony Minessale
368ac20dc1 rearrange things to work better
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4311 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 18:40:42 +00:00
Michael Jerris
7c29b64cd6 fix file object support in spidermonkey build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4268 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:42:45 +00:00
Anthony Minessale
fdac4282b6 add new xml call detail function to the core and a way to use it from javascript
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 15:19:01 +00:00
Michael Jerris
711c59a6e0 potential format string exploit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:32:13 +00:00
Michael Jerris
f5de340dcc some msvc warnings that I re-enabled came back due to messy header files in some libs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4242 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:38:12 +00:00
Michael Jerris
681b8e94eb we can't cast from apr_dso_sym_t directly to a function pointer (c99 says no no) so we must cast to intptr_t first.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 20:59:17 +00:00
Michael Jerris
07d6f12018 use "%s" format specifier for uses of switch_event_add_header that just pass a string to avoid potential issues/exploits"
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:43:49 +00:00
Anthony Minessale
18338947a3 minor update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4198 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-11 00:39:46 +00:00
Anthony Minessale
4a02e80d5e fix dtmf bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4194 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:16:34 +00:00
Anthony Minessale
cd0d988e74 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4190 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 01:00:02 +00:00
Michael Jerris
712976653d fix paramater checking on switch_ivr_phrase_macro and it's consumers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4187 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 22:55:48 +00:00
Michael Jerris
d41b3e14dc Add session.sayPhrase from Mike Murdock.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4186 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:56:44 +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
4128cf7ba9 the garbage collector race/deadlock issue was fixed by the previous commit to the makefile to define JS_THREDSAFE for the spidermonkey modules. This code is unnecessary.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4160 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 04:24:43 +00:00
Michael Jerris
56e85a9458 we need to build the mods w/ JS_THREADSAFE defined so it gets the header stuff right.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4159 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 01:56:55 +00:00
Michael Jerris
1a99ecc6e9 Yet another attempt to get the garbage collector code right. Patch worked out with Bret McDanel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4094 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-30 18:00:58 +00:00
Anthony Minessale
16fce97f7a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 21:56:31 +00:00
Anthony Minessale
0b8c737cfc add system to js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3871 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-29 20:42:16 +00:00