Commit Graph

834 Commits

Author SHA1 Message Date
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