Commit Graph

1024 Commits

Author SHA1 Message Date
Brian West d4da2570ea adding note
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2415 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-28 03:14:21 +00:00
Michael Jerris 087d731301 add answer application, change playback to preanswer by default.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-26 21:21:02 +00:00
Anthony Minessale f83a8ecf46 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2401 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-26 21:13:56 +00:00
Michael Jerris ac2b1e2269 add initial windows build bits for sofia-sip. This still needs the lib added to the build process and will not work with the stock sofia-sip tarball just yet. More commits to come.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-26 05:36:59 +00:00
Anthony Minessale 4bb6f96926 Adding mod_sofia to the tree so we can work on it easier....
I am not adding it to the examples or to the modules.conf because it's not really ready for that yet.
This is only 1.5 days old from scratch at this point but the brave hearted who want to play with it can do the following:

Add this to modules.conf:
-----------------------------------------------------------------------------
endpoints/mod_sofia
-----------------------------------------------------------------------------

Add this to freeswitch.xml in the configuration/modules.conf area
-----------------------------------------------------------------------------
<load module="mod_sofia"/>
-----------------------------------------------------------------------------

Add this to freeswitch.xml in the configuration section

-----------------------------------------------------------------------------
    <configuration name="sofia.conf" description="sofia Endpoint">
      <!-- You may have multiple profiles -->
      <profile name="test">
        <param name="rfc2833-pt" value="101"/>
        <param name="sip-port" value="5060"/>
        <param name="dialplan" value="XML"/>
        <param name="dtmf-duration" value="100"/>
        <param name="codec-prefs" value="PCMU"/>
        <param name="use-rtp-timer" value="true"/>
        <param name="rtp-ip" value="127.0.0.1"/>
        <param name="sip-ip" value="127.0.0.1"/>
        <!-- optional ; -->
        <!-- <param name="ext-rtp-ip" value="stun:stun.server.com"/>-->
        <!-- <param name="ext-rtp-ip" value="100.101.102.103"/> -->

        <!-- VAD choose one (out is a good choice); -->
        <!-- <param name="vad" value="in"/> -->
        <!-- <param name="vad" value="out"/> -->
        <!-- <param name="vad" value="both"/> -->
	<!--<param name="alias" value="sip:208.64.200.40:5555"/>-->
      </profile>
    </configuration>
-----------------------------------------------------------------------------

The call string to use profile test would be:

sofia/test/1000@1.2.3.4

as in:

<action application="bridge" data="sofia/test/1000@1.2.3.4"/>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 23:55:59 +00:00
Brian West 89604ff718 This isn't working yet. I'm adding it so tony can get quick/easy access to it. /b
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 22:21:03 +00:00
Brian West a4bd603897 This bugs me :P It's gotta match
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2395 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 22:07:11 +00:00
Brian West 8a082ad179 This bugs me :P It's gotta match
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2394 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 22:06:28 +00:00
Brian West 071990853c This bugs me :P It's gotta match
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2393 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 22:06:00 +00:00
Michael Jerris b4d3a5089d fix db path to use globals dir. Fixes windows service failure on opening/creating db's.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 05:50:49 +00:00
Anthony Minessale aa196711a1 codec sql
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 01:33:28 +00:00
Anthony Minessale 1569055084 conference update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2385 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-24 20:23:43 +00:00
Anthony Minessale 271c2f9c98 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-24 19:54:09 +00:00
Anthony Minessale d8703f5bd2 change conference
no more <rooms>
rooms will just be created on the fly.

<action application="conference" data="myconf@myprofile+1234"/>

+1234 is optional on-the-fly pin





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-24 02:22:57 +00:00
Anthony Minessale 9d3d3a5d69 add 1 person dyna conference
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-24 00:44:47 +00:00
Anthony Minessale 2fe0375f77 add reply
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2379 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 23:24:23 +00:00
Anthony Minessale 3761d20e8a add presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2378 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 23:08:45 +00:00
Anthony Minessale 5ea6d5f03a add auto buddy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2377 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 22:38:53 +00:00
Anthony Minessale 0898abde78 fix stupid oversight
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2376 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 21:08:28 +00:00
Anthony Minessale d377bc5730 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2373 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 17:57:25 +00:00
Anthony Minessale 30f2d30067 morphone drip for exosip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2370 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-23 16:14:43 +00:00
Anthony Minessale 31892070a6 working towards stability with new functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2368 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 22:34:48 +00:00
Anthony Minessale f258e3ea5c build bs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2365 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 21:18:36 +00:00
Anthony Minessale b76793d84a fix 183 on exosip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2364 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 21:08:34 +00:00
Anthony Minessale da727681fc update core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2361 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 18:29:00 +00:00
Anthony Minessale 326e36e72d fix fileio
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2360 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 17:19:31 +00:00
Anthony Minessale c0d6246193 Fix issue pointed out by Fanzhou Zhao <fanzhou@gmail.com>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2358 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 14:48:35 +00:00
Anthony Minessale 780edcd09d optimizations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2354 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 00:56:27 +00:00
Anthony Minessale a0219008e9 fix js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2353 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 00:03:47 +00:00
Michael Jerris 14d79cf500 Windows build tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2352 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-21 22:48:01 +00:00
Anthony Minessale c92e1cb79a bunch of tweaks to make ivr more fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2351 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-21 20:16:28 +00:00
Anthony Minessale 4f17ab7714 bunch of tweaks to make ivr more fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2350 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-21 19:14:51 +00:00
Michael Jerris 93d8d55755 get rid of extra \ in windows paths
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2346 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-20 19:20:53 +00:00
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 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
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
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
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
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 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
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
Anthony Minessale cfec307cb9 sillyness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2213 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-01 00:46:27 +00:00
Anthony Minessale 9fedc12934 move pcre into core do a ./configure again (part 2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2212 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-31 23:56:27 +00:00
Anthony Minessale 3a5caeddae move pcre into core do a ./configure again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-31 23:46:37 +00:00
Anthony Minessale 272c6c9f4f fix ambigious time_t crap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2204 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-29 00:02:05 +00:00
Anthony Minessale db10a61d5c tweak js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2194 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-27 21:39:50 +00:00
Michael Jerris 8246f730fc merge mod_cdr changes to trunk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2188 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-27 17:05:27 +00:00
Anthony Minessale 4395e55493 typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2185 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-27 15:45:19 +00:00
Brian West 6f44fc9e1c Small name changes to reflect the actual module name.
/b


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2171 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-26 21:43:53 +00:00
Anthony Minessale 3481f29c62 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2169 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-26 20:20:13 +00:00
Anthony Minessale c4d890e0a4 Modify XML Dialplan
BTW, forget what I said yesterday RE: the strftime app I was at McDonalds, how can I concentrate there eh? 
see below....


The Definitive Guide To XML Dialplan:

The "dialplan" section of the freeswitch.xml meta document may contain several contexts

<?xml version="1.0"?>
<document type="freeswitch/xml">
  <section name="dialplan" description="Regex/XML Dialplan">
    <!-- the default context is a safe start -->
    <context name="default">

    <!-- one or more extension tags -->

    </context>
    
    <!-- more optional contexts -->
  </section>
</document>

The important thing to remember is that the dialplan is parsed once when the call
hits the dialplan parser in the RING state.  With one pass across the XML the result
will be a complete list of instructions installed into the channel based on
 parsed <action> or <anti-action> tags.

Those accustomed to Asterisk may expect the call to follow the dialplan by executing the 
applications as it parses them allowing data obtained from one action to influence the next action.
This not the case with the exception being the %{api func} {api arg} field type where an pluggable api call from
a module may be executed as the parsing occurs but this is meant to be used to draw realtime info such as
date and time or other quickly accessible information and shold *not* be abused.


The anatomy of an <extension> tag.

Legend: 
Text wrapped in [] indicates optional and is not part of the actual code.
a '|' inside [] indicates mutiple possible values and also is not part of the code.
Text wrapped in {} indicates it's a description of the parameter in place of the param itself.

<extension name="{exten_name}" [continue="[true|false]"]> 

continue=true means even if an extension executes to continue
parsing the next extension too

The {exten_name} above may anything but if it's 
an exact match with the destination number the parser will leap to this extension
to begin the searching that does not mean it will execute the extension.

Searching will either begin at the first extension in the context or at the point
the the parser has jumped to in the case described above.

Each condition is parsed in turn first taking the 'field' param.
The parser will apply the perl regular expression to each 'field' param encountered.

If the expression matches, it will parse each existing <action> tag in turn and add 
the data from the <application> tags to the channels todo list.	

If a matched expression contains any data wrapped in () the variables
$1,$2..$N will be valid and expanded in any of 'data' params from the subsequent action tags.

If the expression does NOT match, it will parse each <anti-action> tag in turn and add 
the data from the <application> tags to the channels todo list.
*NOTE* since there was no match the () feature is not availabe in anti-actions

The 'break' param indicates how to behave in relation to matching:
*) 'on-true'  - stop searching conditions after the first successful match.
*) 'on-false' - stop searching after the first unsuccessful match.
*) 'always'   - stop at this conditon regardless of a match or non-match.
*) 'never'    - continue searching regardless of a match or non-match.

<condition field="[{field name}|${variable name}|%{api func} {api arg}]" expression="{expression}" break="[on-true|on-false|always|never]">
  <action application="{app name}" data="{app arg}"/>
  <anti-action application="{app name}" data="{app arg}"/>
</condition>

  <!-- any number of condition tags may follow where the same rules apply -->
</extension>




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2167 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-26 20:12:49 +00:00
Anthony Minessale c48208e578 Add strftime app to the dp_tools
Use in the dialplan like so:

<!-- continue="true" means keep searching even when you have a match -->
<extension name="set-date" continue="true">
  <condition>
    <action application="strftime" data="NOW=%H:%M"/>
  </condition>
</extension>

<extension name="route-date">
  <condition field="$NOW" expression="^0[34].*">
    <action application="playback" data="/tmp/cluecon1.wav"/>
  </condition>
</extension>





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2144 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 23:51:38 +00:00
Anthony Minessale da4ae7be4c add metadata functions to sound file api
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2139 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 22:37:52 +00:00
Anthony Minessale da8484382c move unix builds to apr 1.2.7, sqlite 3.3.6 and libsndfile 1.0.16
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2112 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 15:11:15 +00:00
Anthony Minessale 9727efd842 Change the socket protocol and the sample client to use multiline input
valid input:

-------------------------
<command>[ <args>]

-------------------------
or
-------------------------
<command>[ <args>]
Header1: Val
HeaderN: Val

-------------------------





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2109 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-25 14:14:07 +00:00
Michael Jerris ae4ff80250 Add MysqlCDR to mod_cdr build on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2085 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 20:10:12 +00:00
Brian West 8d45333627 fix for mac
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2083 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 19:16:58 +00:00
Anthony Minessale da67398911 add stricter checking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2082 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 18:56:20 +00:00
Michael Jerris e9a3ad4877 Start getting mod_cdr w/ mysql to build on windows. Still more to do on this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2080 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 18:30:41 +00:00
Anthony Minessale 3bc5fd502b fixup custom event stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2078 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 15:45:36 +00:00
Michael Jerris f723e57b61 Initial merge of mod_cdr. Big thanks to Yossi Neiman for this huge contribution. Please note that this is still somewhat a work in progress, but it works.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 15:19:05 +00:00
Michael Jerris e80c5808fb fix windows issue when building with C++.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2074 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 06:48:01 +00:00
Michael Jerris 85d442615e fix C linkage when using templates issue when building C++ modules in msvc that stems from including some windows header files inside of an extern C block, when building with C++.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2070 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-24 04:31:28 +00:00
Michael Jerris 5378e48454 add mod_event_socket to windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2049 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-22 22:16:06 +00:00
Anthony Minessale 9ef48b6e1f dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2048 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-22 21:52:53 +00:00
Anthony Minessale 9c79c2a3fb Add mod_event_socket remote client module and sample client.
To Test:

uncomment or add from modules.conf
make installall again to compile it
uncomment the load line from freeswitch.xml

the default values are to bind to 127.0.0.1 port 8021

telnet to port 8021
enter "auth ClueCon" to authenticate

from here you can do the following:
*) events [xml|plain] <list of events to log or all for all>
*) noevents 
*) log <level> // same as the console.conf values
*) nolog
*) api <command> <arg>
*) exit

there is a perl client in scripts/socket called fs.pl

with the module up and loaded:
cd scripts/socket
perl fs.pl <optional log level>

you can enter a few api commands like "show or status"




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2047 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-22 21:49:52 +00:00
Anthony Minessale ca98141ed7 enhance the show command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2011 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-20 03:55:07 +00:00
Anthony Minessale e270bb4b7d fix xml no config catch-22
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1999 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-19 21:14:49 +00:00
Anthony Minessale 031af56d99 add a count to show
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-19 19:16:42 +00:00
Anthony Minessale 72d0128f95 name change for c++ compate
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1988 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-19 18:34:28 +00:00
Anthony Minessale 8c51cc2934 small fix to sql shipping stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-19 01:19:46 +00:00
Anthony Minessale aee6cc27e1 codec tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1957 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-18 18:34:42 +00:00
Anthony Minessale f5ea0ca767 add alt speex
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-18 14:51:59 +00:00
Anthony Minessale 65415c283b add cepstral legal goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1916 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-17 18:19:00 +00:00
Anthony Minessale e8ba83de97 add cepstral legal goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1912 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-17 18:05:13 +00:00
Anthony Minessale 7712c6637c messaging stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1902 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-17 14:12:07 +00:00
Michael Jerris 7abfa425bd fix msvc build problem downloading some libs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1901 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-17 14:09:45 +00:00
Anthony Minessale c7a4c4a1dc fix printf args
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1886 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 21:16:01 +00:00
Anthony Minessale f45ecee214 fix command parser
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1885 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 21:15:26 +00:00
Michael Jerris 0d82c97797 Fix win32 Build
Update win32 Setup
add show calls and show channels


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1884 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 19:55:55 +00:00
Anthony Minessale 4aab8842cd tweaks for wideband tests
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1883 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 19:42:09 +00:00
Anthony Minessale 2b4ddd0576 add fmtp to sip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 19:20:54 +00:00
Anthony Minessale a7294a1c95 add fmtp to sip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1881 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 18:31:23 +00:00
Anthony Minessale 541a27bf1b dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-14 12:17:01 +00:00
Anthony Minessale e15c171d6c tweak speex
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1871 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-13 22:14:52 +00:00
Anthony Minessale 6d43892f22 add effective callerid variables
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1867 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-13 17:58:28 +00:00
Anthony Minessale e73ee221d2 add mod_dptools, for set variable and sleep from the dialplan
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-13 13:20:20 +00:00
Anthony Minessale 45dd9a44cd fix sql stmts
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-13 01:06:06 +00:00
Anthony Minessale 6414ff552b rss string tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-12 22:03:00 +00:00
Anthony Minessale 0c1c2748ed chage js to allow log levels in console_log()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1852 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-12 21:23:22 +00:00
Anthony Minessale 6495209695 tweak pt 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1851 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-12 20:33:10 +00:00
Anthony Minessale 3e85edb2aa tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1850 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-12 20:31:16 +00:00
Anthony Minessale d77e574d4e rearrange the furnature
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-12 18:39:19 +00:00
Michael Jerris 03ac8289e8 fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-11 20:59:07 +00:00
Anthony Minessale 34882f7a60 fix logical error
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-11 17:39:50 +00:00
Anthony Minessale 168c6db00d adj iax to use the intervals thing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1819 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 22:24:57 +00:00
Anthony Minessale 2838ad4a9b restructure codec code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1818 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 22:08:02 +00:00
Brian West e9fc56225f tweak (work in progress)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1816 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 20:28:22 +00:00
Brian West d99c1605a1 dont pre_answer after actual answer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1814 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 19:51:19 +00:00
Anthony Minessale cdac907624 break 2 loops instead of 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1813 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 17:10:40 +00:00
Anthony Minessale b9195e2db9 add ability to set mute and deaf flag from the dialplan +flags{<mute>|<deaf>}
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1811 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 16:28:54 +00:00
Anthony Minessale 4b4cca9c56 forgot a few stupid things, here they are
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-08 19:11:09 +00:00
Anthony Minessale 47b3010ce7 fix param names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1789 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 19:07:07 +00:00
Anthony Minessale b5a19020f7 add session counter and make all sessions hang up elegantly on shutdown
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1788 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 18:59:14 +00:00
Anthony Minessale ecb7c08923 Add volume, gain and energy controls.
DTMF:
1 = volume down
2 = volume default
3 = volume up
4 = gain down
5 = gain default
6 = gain up
7 = energy level down
8 = energy level default
9 = energy level up
* = toggle mute + deaf
0 = toggle mute
# = quit 

new api commands to adj volume, gain and energy



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1787 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 16:47:20 +00:00