155 Commits

Author SHA1 Message Date
Michael Jerris
940bf73b72 Do a better job at tracking dependencies into the libs, so libs are re-built when they need to.
Eliminate some more gmakeisms in the modules makefiles




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4629 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-17 08:40:10 +00:00
Michael Jerris
70a70aa922 Remove the requirement to define MODNAME in the module makefiles.
Remove gmakeisms from the modmake.rules module makefile include
Remove the MODNAME def from all the in tree Makefiles



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4628 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-17 05:49:57 +00:00
Michael Jerris
18b47de4b2 do a better job with dependency tracking so the the mods don't keep trying to build or install when they don't need to. This should start to help with the speed of the build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4602 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-15 04:32:09 +00:00
Michael Jerris
c03e917282 move mod_spidermonkey and mod_xml_curl to use new WANT_CURL to add curl to the module
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4593 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-14 19:37:07 +00:00
Michael Jerris
b196ff7205 add support for doing make from the module directory of the in tree modules.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4586 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-13 18:23:49 +00:00
Brian West
08d15071a4 fix spelling, Everyone do not forget to thank Mike for all his hard work.. he need sleep now. ;) ./applications/mod_enum/Makefile
./asr_tts/mod_cepstral/Makefile
./asr_tts/mod_lumenvox/Makefile
./codecs/mod_amr/Makefile
./codecs/mod_g711/Makefile
./codecs/mod_g722/Makefile
./codecs/mod_g723_1/Makefile
./codecs/mod_g726/Makefile
./codecs/mod_g729/Makefile
./codecs/mod_gsm/Makefile
./codecs/mod_ilbc/Makefile
./codecs/mod_lpc10/Makefile
./codecs/mod_speex/Makefile
./directories/mod_ldap/Makefile
./endpoints/mod_dingaling/Makefile
./endpoints/mod_iax/Makefile
./endpoints/mod_portaudio/Makefile
./endpoints/mod_sofia/Makefile
./endpoints/mod_wanpipe/Makefile
./event_handlers/mod_cdr/Makefile
./event_handlers/mod_xmpp_event/Makefile
./event_handlers/mod_zeroconf/Makefile
./formats/mod_shout/Makefile
./formats/mod_sndfile/Makefile
./languages/mod_mono/Makefile
./languages/mod_perl/Makefile
./languages/mod_python/Makefile
./languages/mod_spidermonkey/Makefile
./languages/mod_spidermonkey_core_db/Makefile
./languages/mod_spidermonkey_etpan/Makefile
./languages/mod_spidermonkey_odbc/Makefile
./languages/mod_spidermonkey_skel/Makefile
./languages/mod_spidermonkey_teletone/Makefile
./xml_int/mod_xml_curl/Makefile
./xml_int/mod_xml_rpc/Makefile

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4564 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-12 05:17:17 +00:00
Michael Jerris
514bde18c7 an attempt to simplify the module make files. More changes to come on the modules building soon
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4562 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-12 04:21:54 +00:00
Michael Jerris
ee3fc89f69 move all the in tree libs to use subst of the core configure, move all module builds to link with libtool to the .la, static when possible
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-11 14:03:58 +00:00
Michael Jerris
42e78242a3 add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00
Michael Jerris
cc0ea39446 fix msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4478 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 02:31:34 +00:00
Anthony Minessale
5131ee1cae add management interface and some rtp goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4464 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 18:34:22 +00:00
Michael Jerris
a350673954 constify some xml functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 05:49:52 +00:00
Michael Jerris
354537978e sync changed proj file to the uuid in my working copy.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4427 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 09:23:16 +00:00
Anthony Minessale
068c9604c1 add vcproj
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4402 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-27 18:40:45 +00:00
Michael Jerris
4ae10379f2 add windows build for mod_xml_cdr. This probably also fixes the build on several non-linux systems.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4309 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 06:55:43 +00:00
Anthony Minessale
a080949e8f add small demo mod to dump xml call detail reports until we work it into mod_cdr ./configure or manually mkdir /usr/local/freeswitch/log/xml_cdr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 19:46:37 +00:00
Michael Jerris
41d2d43e99 warning: ISO C does not allow extra ; outside of a function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4269 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:45:56 +00:00
Michael Jerris
a986980c0e fix typedef for switch_stream_handle_write_function_t to also use const char * fmt and match other uses of that type.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4262 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 18:08:11 +00:00
Michael Jerris
f5de340dcc some msvc warnings that I re-enabled came back due to messy header files in some libs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4242 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:38:12 +00:00
Michael Jerris
07d6f12018 use "%s" format specifier for uses of switch_event_add_header that just pass a string to avoid potential issues/exploits"
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:43:49 +00:00
Michael Jerris
f359f847f7 fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Anthony Minessale
8439d33455 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4102 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-31 19:22:44 +00:00
Anthony Minessale
85dab893d9 A few changes:
1) The xml_curl now has a more enterprise config where it can have more than 1
   url configured so you could have failover. (*note the syntax change*)

2) dialplan modules now take an extra arguement making it possible to pass runtime params to
   them.  This is now used in mod_dialplan_xml to allow an alternate file path to be specified.

   dialplans were already stackable meaning you can configure a sofia profile, for example,
   to use enum followed by the default XML dialplan.

   e.g. <param name="dialplan" value="enum,XML"/>

   From now on, you can also specify :param after each dialplan name to allow param
   to be passed to the module.  mod_dialplan_xml uses this param as a way to override
   where it looks for the dialplan making it possible to stack mutiple calls to the XML dialplan.

   e.g. <param name="dialplan" value="XML:/some/xml/file.xml,XML"/>

   With this you can search the local file file.xml first and if there is still no match
   the hunt will move on to the standard XML using the onboard XML registry and or the external
   gateways.

   *NOTE* this alternate path does not use the external bindings but it does parse the #includes etc.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4066 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 16:23:33 +00:00
Michael Jerris
27ebcae63e add "freeswitch_api" in addition to "freeswitch.api" as xmlrpc method so it can work with java.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4019 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 18:18:48 +00:00
Michael Jerris
e5eba308ab use strchr instead of index as recommended by the linux man pages for portability.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 03:08:08 +00:00
Anthony Minessale
0ac4fbc159 Add mod_xml_curl to modules.conf.in and add parameter change submitted by Bret McDanel (thanks)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3980 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 17:22:14 +00:00
Michael Jerris
1198931d48 fix windows build paths from moving libs in tree.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-22 19:02:52 +00:00
Michael Jerris
6d9679b164 move mod_spidermonkey_etpan to use in tree lib
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3771 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-21 03:36:05 +00:00
Michael Jerris
5626cdd351 add curl 7.16.0 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-20 02:08:00 +00:00
Anthony Minessale
ba6fb352a4 rm extra \n
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3651 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-14 15:48:25 +00:00
Anthony Minessale
169348bd70 add auth to xml_curl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3649 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-14 15:08:23 +00:00
Michael Jerris
56b475839e mod_xml_curl windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3593 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-10 08:07:20 +00:00
Anthony Minessale
01ddfdcba5 separate xml gateway code from mod_xml_rpc into it's own mod_xml_curl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3592 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-10 02:02:30 +00:00
Anthony Minessale
6d50b0c7b5 improve gateway stuff and minor tweak to event serialize
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3570 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-07 22:56:17 +00:00
Michael Jerris
44649c70b4 Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:
/* For Emacs:
 * Local Variables:
 * mode:c
 * indent-tabs-mode:nil
 * tab-width:4
 * c-basic-offset:4
 * End:
 * For VIM:
 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +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
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
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
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
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
0019a2df8b add auth to xmlrpc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1530 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-01 17:16:15 +00:00
Anthony Minessale
21c2b5812e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1476 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-17 00:58:21 +00:00
Michael Jerris
31ee0d59fc normalize configuration parameters to use - instead of _.
Break everybody's configuration.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1475 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-16 17:08:21 +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
d53d9d3997 rearrange some things please see conf/freeswitch.xml as there is a significant change to the conf that will break your stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 19:28:21 +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
295424544d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1425 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 19:07:38 +00:00
Michael Jerris
af6d8fa271 adding mod_xml_rpc to windows build part 2/2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1423 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 17:48:15 +00:00
Michael Jerris
4977d27788 adding mod_xml_rpc to windows build part 1/2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 16:39:09 +00:00