Commit Graph

1463 Commits

Author SHA1 Message Date
Anthony Minessale 47192db741 Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues.
codecs need more work...

Expose events into javascript so you can create and fire events and 
and pick up chat events with chat-enabled clients like googletalk
EXAMPLE:

session.answer();

e = new Event("custom", "JS::Custom");
e.addHeader("subject", "cool");
e.addBody("hello this is a test");
e.fire;

while(session.ready()) {
    session.execute("sleep", "1000");
    event = session.getEvent();
    if (event) {
      str = event.serialize(); // or ("xml")
      console_log("debug", "Dump Event:\n" + str + "\n");


        e = new Event("custom", "JS::Chat");
        e.addHeader("works", "yes");
        e.addBody("you said: " + event.getBody());
        session.sendEvent(e);
      event.destroy();
    }
}





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 01:28:50 +00:00
Michael Jerris 099a771ddf fix segfault when there is a malformed registration in the db.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2322 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 01:23:18 +00:00
Michael Jerris 72dcc8a515 fix mod_event_socket destination
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2321 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 23:47:24 +00:00
Michael Jerris 2a167ea257 fix mod_event_socket destination
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2320 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 23:45:04 +00:00
Michael Jerris 262e450872 Fix debug mode working directory.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2318 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 20:16:53 +00:00
Michael Jerris ae380d58ec Update to new build system for windows.
This fixes several issues when debugging code in the ide, and does better dependency tracking.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 19:58:55 +00:00
Michael Jerris 2ca190f1a2 silence warning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2316 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 19:10:17 +00:00
Michael Jerris f2f66c43a5 fix for msvc, signed\unsigned and code before decl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2315 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 14:41:00 +00:00
Anthony Minessale 502c84d072 ok,
now in the key portion you can say 'exec' and in the file portion say '<application> <args>'
if the channel is not hungup when that application ends it's the winner so you can 
run an ivr on the channels to determine who gets the call

      <extension name="3002">
        <condition field="destination_number" expression="^3002$">
          <action application="set" data="call_timeout=60"/>
          <action application="set" data="group_confirm_key=exec"/>
          <action application="set" data="group_confirm_file=javascript test.js"/>
          <action application="bridge" data="exosip/1000@domain.com&exosip/1001@mydomain.com"/>
        </condition>
      </extension>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 03:18:51 +00:00
Anthony Minessale afdaac9b22 changed my mind i think the confirm option is cool even when you call 1 dest
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2313 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 02:45:55 +00:00
Anthony Minessale 78d060c6a7 *deep breath*
Ok,

This one adds a bunch of stuff on top of the framework restructuring from yesterday.

1) originate api function:
Usage: originate <call url> <exten> [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]

This will call the specified url then transfer the call to the specified extension

example: originate exosip/1000@somehost 1000 XML default

2) mutiple destinations in outbound calls:

This means any dialstring may contain an '&' separated list of call urls
When using mutiple urls in this manner it is possible to map a certian key as required
indication of an accepted call.  You may also supply a filename to play possibly instructing the 
call recipiant to press the desired key etc...

The example below will call 2 locations playing prompt.wav to any who answer and
completing the call to the first offhook recipiant to dial "4"



      <extension name="3002">
        <condition field="destination_number" expression="^3002$">
          <action application="set" data="call_timeout=60"/>
          <action application="set" data="group_confirm_file=/path/to/prompt.wav"/>
          <action application="set" data="group_confirm_key=4"/>
          <action application="bridge" data="iax/guest@somebox/1234&exosip/1000@somehost"/>
        </condition>
      </extension>

The following is the equivilant but the confirm data is passed vial the bridge parameters
(This is for situations where there is no originating channel to set variables to)

      <extension name="3002">
        <condition field="destination_number" expression="^3002$">
          <action application="bridge" data=/path/to/prompt.wav:4"confirm=iax/guest@somebox/1234&exosip/1000@somehost"/>
        </condition>
      </extension>

Omitting the file and key stuff will simply comeplete the call to whoever answers first. 
(this is similar to how other less fortunate software handles the situation with thier best effort.)

This logic should be permitted in anything that establishes an outgoing call with
switch_ivr_originate()

Yes! That means even in this new originate api command you can call mutiple targets and send
whoever answers first to an extension that calls more mutiple targets.  (better test it though!)


Oh, and you should be able to do the same in the mod_conference dial and dynamic conference features

please report any behaviour contrary to this account to me ASAP cos i would not be terribly
suprised if I forgot some scenerio that causes an explosion I did all this in 1 afternoon so it probably needs tuning still.





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2311 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-17 00:53:09 +00:00
Anthony Minessale 286b2c791e add assert
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2304 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-16 00:54:38 +00:00
Anthony Minessale 6175062b27 consolidate code in conference into todays changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2303 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-16 00:35:02 +00:00
Anthony Minessale 0562e38a51 add proper shutdown to mod_conference
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2302 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 22:19:38 +00:00
Anthony Minessale 5782555e70 redecorating
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2301 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 21:38:24 +00:00
Anthony Minessale a29d426c8c setting waypoint
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 19:38:14 +00:00
Anthony Minessale 748f0194f9 tweak shutdown process
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2299 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 19:02:06 +00:00
Anthony Minessale a675393bb7 performance tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2298 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 17:52:12 +00:00
Michael Jerris f9cbbca041 make vsnprintf check work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2297 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 16:17:03 +00:00
Michael Jerris acf84d7631 fix segfault
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2296 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-15 15:57:20 +00:00
Anthony Minessale e54c549840 add bridge indication to conferences so sip disables the async rtp since we already have dual threaded i/o
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2293 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 21:16:17 +00:00
Michael Jerris 210ebbaf77 windows installer tweaks.. not quite there yet still.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 20:46:54 +00:00
Anthony Minessale f03adcabed twiax (tweek-iax get it twiax... lol)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 19:03:36 +00:00
Michael Jerris a90b88d201 revert static runtime change for msvc. Bad idea...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 17:44:38 +00:00
Michael Jerris fea5980a12 Change windows build to use static runtime to make it more easily portable to older windows, and to decrease startup time on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2289 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 16:11:08 +00:00
Michael Jerris 3f3a6ad40f tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2288 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-14 14:45:35 +00:00
Brian West 02b405acfb Fix PCRE depends for libfreeswitch and the cli so it will build correctly.
/b



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2284 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-13 17:20:02 +00:00
Brian West c864fff7dc Update the Project for the PCRE changes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2283 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-13 15:48:38 +00:00
Michael Jerris d066dca08e fix signedness issue and strlen to uint32_t cast
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-13 05:09:29 +00:00
Michael Jerris c0be28d911 make mod cdr work on windows, and make it segfault less.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-13 04:41:40 +00:00
Anthony Minessale eaa28d3ea9 windows play file thing (please test mike)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2276 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-12 22:39:02 +00:00
Anthony Minessale 45f49eccbe update roster nonsense
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2272 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-12 17:09:11 +00:00
Michael Jerris 2bec16256a fix typo.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2267 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-12 00:38:51 +00:00
Anthony Minessale 54ec8c1dd4 rtp fix and some other misc stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2266 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 23:27:08 +00:00
Anthony Minessale 3b09338cee more socket stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2263 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 18:59:25 +00:00
Anthony Minessale 44095d48ef socket tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 18:20:04 +00:00
Michael Jerris 88dbc8c056 Make iax work with plaintext passwords too. Thanks to Michael Workman for the patch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 16:24:06 +00:00
Anthony Minessale 7ccdd37a71 socket code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 15:25:49 +00:00
Michael Jerris f1e3aa5a96 time_t cast.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 15:01:48 +00:00
Anthony Minessale 3a5af506b3 remove naughty operation that makes things not work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 01:11:16 +00:00
Anthony Minessale 040dc25141 autoheadache
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2252 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 00:39:35 +00:00
Anthony Minessale 07a7b6e54a update dingaling to be able to use TLS jabber servers such as googletalk
see sample config for new options.

the dingaling library has changed so you must rebuild it 
rm libs/libdingaling/.complete
make installall



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 00:24:38 +00:00
Anthony Minessale a53f2b0c39 cast for arm (lol)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2246 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-09 18:25:15 +00:00
Anthony Minessale 010e85da14 temp fix socket issue on win
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2236 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 21:16:54 +00:00
Anthony Minessale 5c5bd833d7 fix potential crash
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2235 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 20:04:12 +00:00
Anthony Minessale 2b320e25a1 iax tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2234 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 19:45:52 +00:00
Michael Jerris 5eb2b89d4a add build files for portaudio v19 testing (winMME only right now)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2233 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 19:28:27 +00:00
Brian West 184fc54762 This is required to build loadable bundles. Drop this into your
/Library/Application Support/Apple/Developer Tools/Target Templates/BSD/Loadable Bundle.trgttmpl

Restart XCode



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2232 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 17:10:02 +00:00
Michael Jerris e68ae05926 Fix clean build on windows, and hack when using 1.4 svn to still build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2231 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-07 16:25:46 +00:00
Anthony Minessale 504beaa5c2 code before declaration as usual fixed for win32's sake
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-01 04:45:22 +00:00