1615 Commits

Author SHA1 Message Date
Anthony Minessale
e6718b876c fix null pointer issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4778 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-28 15:15:01 +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
f628a159af don't double switch_xml_free
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4771 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-26 21:35:19 +00:00
Michael Jerris
880f17d33b refactor in mod_dialplan_xml. Factor out a function for the hint string generation/xml_locate so that we do not need to generate the xml hint string when using a static file. Dont add blank items from the caller profile to the hint string.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4766 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-25 15:21:22 +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
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
Anthony Minessale
3b84b53819 fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4751 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-23 16:34:13 +00:00
Anthony Minessale
318dc8b4e5 o crap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4750 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-23 15:53:46 +00:00
Michael Jerris
7df787b72d add proper autoconf checks for mysql client and convert mod_cdr to automake makefile so that we can use AM_CONDITIONALS for the mysqlcdr build selection
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4749 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-23 06:08:17 +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
Michael Jerris
29de0403f6 work around broken libshout not linking -speex when it needs to
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4742 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 22:44:05 +00:00
Anthony Minessale
6c3040530e add a local copy of libsangoma
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4741 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 21:53:32 +00:00
Anthony Minessale
d99c7f9e7f add a local copy of libsangoma
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4740 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 21:50:59 +00:00
Anthony Minessale
5feaf19ecd use handy exported vars to find the installed lumenvox libs and includes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4739 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 21:47:05 +00:00
Michael Jerris
178e3cd8d6 shout does not need speex
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4737 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 21:13:10 +00:00
Michael Jerris
c44efac0eb fix linking to link to all the needed la's
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4736 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 21:04:43 +00:00
Anthony Minessale
0f1e2c7b97 tweak make file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4732 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 16:09:28 +00:00
Anthony Minessale
3b3b06b931 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4727 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 01:00:11 +00:00
Anthony Minessale
fdabce87dc update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4726 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 00:57:08 +00:00
Anthony Minessale
71863a532f update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4725 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 00:52:13 +00:00
Anthony Minessale
19fbb073af update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4724 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-22 00:19:29 +00:00
Anthony Minessale
f2ae2bafb6 update wanpipe to be fully automated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4723 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 23:58:54 +00:00
Anthony Minessale
7813a54bfa update wanpipe to be fully automated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4722 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 23:44:55 +00:00
Anthony Minessale
850cd58fc1 update wanpipe to be fully automated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4721 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 23:42:16 +00:00
Anthony Minessale
9bacb04df9 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4720 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 21:23:40 +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
Anthony Minessale
323a4fe087 fix exporting MODULES variable with more than 1 module in the list
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4717 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 19:39:31 +00:00
Anthony Minessale
573058c6d3 shhhh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4716 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 18:50:51 +00:00
Anthony Minessale
2da36dea17 fix typos
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4715 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 17:09:39 +00:00
Anthony Minessale
27916a9100 fix makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4714 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 17:04:22 +00:00
Anthony Minessale
8f0547af7e doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4713 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 15:13:39 +00:00
Brian West
65b2afd874 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4712 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 04:11:30 +00:00
Brian West
6420a4141b small tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4711 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 04:09:49 +00:00
Michael Jerris
593030162b msvc build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 02:48:47 +00:00
Anthony Minessale
24f15aa9ba rfc3551 sucks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4703 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 23:11:20 +00:00
Anthony Minessale
a4cdac1d78 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4702 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 23:09:35 +00:00
Anthony Minessale
221bf43984 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4690 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 20:37:52 +00:00
Anthony Minessale
9ff33bd8fd update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4680 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 16:26:12 +00:00
Anthony Minessale
f52c431c8e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4679 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-20 16:03:09 +00:00
Anthony Minessale
31656e019d retool the sofia outbound registration syntax and dialstring syntax for said registrations ***ATTENTION*** syntax has heavily changed and the former syntax removed completely
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4669 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 21:09:53 +00:00
Michael Jerris
45f71edd91 shut off warnings for now so we can build this
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4667 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 20:23:09 +00:00
Michael Jerris
cc384fb515 removing most of the generated files from tree. You will need to run bootstrap.sh and configure again after you do this update and have autoconf, automake, and libtool installed on the box.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4662 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 19:26:25 +00:00
Michael Jerris
0bab5fe86a dont return value on void function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4658 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 16:03:49 +00:00
Anthony Minessale
ab74b1d307 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4657 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 15:01:38 +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
7527805847 fix amr build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4653 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 12:38:08 +00:00
Michael Jerris
9070ba0e14 remove gmakeisms from the mod_cdr makefile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4652 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 12:16:46 +00:00
Michael Jerris
ce81898c5d null format string error
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4651 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 00:41:23 +00:00
Michael Jerris
87e40d54d1 supress warnings due to non compilant headers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4646 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-18 17:32:50 +00:00
Michael Jerris
7449cfbb53 resolve a few little warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4644 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-18 17:15:29 +00:00