Michael Jerris
f45d060172
merge fix for MODLANG-33 and MODLANG-34.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5374 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-15 17:25:41 +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
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
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
52c3cf1108
merge changes from MODLANG-30 and MODLANG-31. changed to use switch_cut_path instead of basename for portablility.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-08 15:34:39 +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
fedefcb69f
merge changes from branch http://svn.freeswitch.org/svn/freeswitch/branches/greenlizard/ that changes the session container implementation to use the one in the core, and an inherited class in python. Please note that this changes the python script api to more closely match (it is still a subset) the one already in place and documented for spidermonkey, and will break all your scripts that are currently working.. Fix a fatal bug causing segfaults in mod_python when using the callbacks.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5242 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-01 18:50:34 +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
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