184 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Anthony Minessale
fe32a839df use channel flag to tell when to read from channel during some stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1590 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-09 22:59:13 +00:00
Anthony Minessale
9a43ccab24 add mod_rss
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1551 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-06 23:07:37 +00:00
Anthony Minessale
cd3e5e83c2 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-06 16:22:08 +00:00
Michael Jerris
e9563fbf5d make snprintf commands use the path seperator macro.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1544 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-05 18:12:33 +00:00
Anthony Minessale
ab3f42c9c4 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1508 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-26 16:00:08 +00:00
Michael Jerris
2a07e46e34 allow msvc build to work from source directory with a space in it.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1454 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 22:55:12 +00:00
Anthony Minessale
d314140374 cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 15:33:49 +00:00
Anthony Minessale
23ad0603e6 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1422 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 17:29:24 +00:00
Anthony Minessale
f09491a69b XMLification (wave 4)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 15:47:54 +00:00
Michael Jerris
c904577269 C++ says we can't use "interface" as a variable name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1305 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-30 18:24:24 +00:00
Anthony Minessale
7bacd1a0ad forgot a t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1304 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-30 17:54:05 +00:00
Michael Jerris
14fee78470 part 3 of 3 standardizing typedefed types to end in _t.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 23:43:28 +00:00
Michael Jerris
73a3adac8f part 2 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1294 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 06:05:03 +00:00
Michael Jerris
d0347b2a95 part 1 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-29 01:00:52 +00:00
Anthony Minessale
35dc32018c add transfer capability and small ways to test it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-28 19:46:57 +00:00
Anthony Minessale
d59cae60c7 add nitrous oxide tank to core event sql backend
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-26 17:18:33 +00:00
Michael Jerris
aa750c18ce add linking for libetpan to js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-24 14:54:21 +00:00
Anthony Minessale
1eb4d491a5 causes part 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-22 03:05:25 +00:00
Anthony Minessale
a9f86cb58a add VAD
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1222 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-21 22:31:08 +00:00
Michael Jerris
026e8d39ca Set log levels on many existing log messages. A huge thanks to James Martelletti for going through all the log calls to do this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-16 06:05:53 +00:00
Brian West
559b8ab26c Gut Logger and put it back modular style
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 21:13:44 +00:00
Michael Jerris
9db533862d standardize to some more specific int types for frame size and rate variables.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1095 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-09 00:10:13 +00:00
Michael Jerris
74d14b25f7 tweak to repair some damage from icc tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-31 16:10:00 +00:00
Anthony Minessale
215a1b2a1f fix perlxsi broken by changes to allow icc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@988 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-30 23:24:26 +00:00
Michael Jerris
4a2c9a5e6c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@987 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-30 23:20:52 +00:00
Anthony Minessale
64507e70ca icc changes part 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@982 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-30 23:02:50 +00:00
Michael Jerris
e3d0adb850 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-29 22:16:06 +00:00
Anthony Minessale
fac7b4a64e optimize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@960 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-29 19:11:20 +00:00
Anthony Minessale
d49044b6a4 onwards and upwards
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@907 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-23 19:22:06 +00:00
Anthony Minessale
7fd222ee53 i must be daft
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@905 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-22 23:55:53 +00:00
Anthony Minessale
873c1caa5b udpate
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-21 01:34:53 +00:00
Michael Jerris
a2c448e118 windows build update to use more dynamic libs, fix some type issues, and fix jrtp build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@862 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-17 02:45:19 +00:00
Anthony Minessale
539ff39995 tweaks and fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@859 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-15 22:11:13 +00:00
Michael Jerris
a680225136 Win32 build fixups.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@844 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-12 05:03:38 +00:00
Michael Jerris
d126d8cd8d Win32 build fixups.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@843 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-12 02:44:15 +00:00
Michael Jerris
1c600a6751 fix warning.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-08 17:14:06 +00:00
Michael Jerris
9977f2b8dd msvc build fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@797 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-08 03:29:56 +00:00
Anthony Minessale
143851ae91 change fetchURL to fetchURLHash and add fetchURLFile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@787 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-07 15:47:34 +00:00
Brian West
0b8c732a37 add session.execute
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@786 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-07 15:24:57 +00:00
Anthony Minessale
28702d7618 get up to date and add api_exec to spidermonkey
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@769 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-07 02:06:40 +00:00