Commit Graph

1828 Commits

Author SHA1 Message Date
Brian West 9bf84fd913 update this to include my name :P /b
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2341 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-20 04:36:28 +00:00
Michael Jerris 6d414c5644 fix windows line endings and fix potential memory leak from SWITCH_GLOBAL_dirs on win32.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2340 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-20 03:36:14 +00:00
Michael Jerris c08217c886 add first revision of windows services. fix breakage of -stop.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2339 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-20 03:04:55 +00:00
Michael Jerris 580c97e02a windows line endings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2337 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-19 19:00:35 +00:00
Michael Jerris c15da98579 Add switch_core_init_and_modload to core, from switch.c. Add additional shutdown functionality to switch_core_destroy. move around more code in switch.c and fix freeswitch -stop on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2336 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-19 18:51:22 +00:00
Michael Jerris 9ac299089d factor out some functions, some of this will probably move to the freeswitch lib still.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2334 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 21:57:47 +00:00
Anthony Minessale d7f33e6aa7 add funcs to js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2332 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 21:18:41 +00:00
Anthony Minessale 559c6330f1 google part 1001
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2331 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 21:02:55 +00:00
Anthony Minessale 89e62d8c56 google part 1000
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2330 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 21:02:40 +00:00
Anthony Minessale 155420a73b tweaks part 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2329 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 20:03:34 +00:00
Anthony Minessale 9018439d47 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2328 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 19:29:42 +00:00
Anthony Minessale 6ccb60c25c last round of google cleanup rebuild libdingaling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 18:44:11 +00:00
Anthony Minessale 57da9ed8fc more tweaks for google compat
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2326 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 16:36:26 +00:00
Michael Jerris 1003a4d404 Cleanups from update to new build system for windows.
More to come.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2325 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 07:22:18 +00:00
Michael Jerris a15bc52f0e cast for possible loss of data.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 02:21:26 +00:00
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