243 Commits

Author SHA1 Message Date
Anthony Minessale
06bab2c04e add set_global
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6194 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-09 15:55:40 +00:00
Michael Jerris
622a2733dc use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-01 11:28:26 +00:00
Anthony Minessale
f6e9bc335b add inband dtmf generator
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6097 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-31 16:44:02 +00:00
Michael Jerris
66501a6cdd build cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-19 02:46:05 +00:00
Michael Jerris
6959c3ddd7 move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5971 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 18:11:43 +00:00
Michael Jerris
9488c6da9b move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5965 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 08:13:08 +00:00
Michael Jerris
83c21e77f3 move some modules to use .vsprops files to centralize where settings are made and to simplify the project files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 07:21:38 +00:00
Michael Jerris
bbffdd99ab cleanup some project file properties and hopefully fix the release build enum issue.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5961 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-18 04:15:33 +00:00
Anthony Minessale
1ae9e8f6b6 add playback_terminators variable
This is valid for playback, gentones, record and speak
value may be a string of valid terminator characters, or the word 'none'
the default of * will always work unless overridden by 'none'. This is for backward compat.

  <extension name="8000">
    <condition field="destination_number" expression="^8000$">
      <action application="answer"/>
      <!--both * and # will stop the playback-->
      <action application="set" data="playback_terminators=#*"/>
      <action application="playback" data="/ram/swimp.raw"/>
    </condition>
  </extension>






git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5888 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-16 14:36:39 +00:00
Anthony Minessale
b50e8f5c9a add switch_stristr and use it in dptools
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5887 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-16 14:24:02 +00:00
Anthony Minessale
b8457503ea add transparent speech handle caching via cache_speech_handles=true variable and an app to clear a cached handle called clear_speech_cache
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-15 16:25:08 +00:00
Anthony Minessale
be921bed1a expand continue_on_fail to also accept a specific list of cause codes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5875 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-15 14:00:48 +00:00
Anthony Minessale
230a77714d EXECUTE ORDER 66
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-12 03:28:59 +00:00
Anthony Minessale
1418927007 add delay_echo application
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5794 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-10-04 15:09:44 +00:00
Anthony Minessale
160edc558d clean up speak code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5670 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-28 17:06:20 +00:00
Michael Jerris
6a03185729 add utility app for profile vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5655 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-22 00:22:22 +00:00
Michael Jerris
f1222ba2fd fix for FSCORE-40
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5566 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-08-03 21:29:01 +00:00
Anthony Minessale
d571f9020e update desc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5544 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-24 23:11:35 +00:00
Anthony Minessale
5b8ab1b39f add record params (update desc)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5543 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-24 21:51:00 +00:00
Anthony Minessale
008d4c0152 add record params (please test)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5542 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-07-24 21:42:54 +00:00
Anthony Minessale
fdf9a8f052 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5465 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-25 21:25:33 +00:00
Anthony Minessale
a039d870c3 Add events around all application execution:
fire SWITCH_EVEHT_CHANNEL_EXECUTE
<execute app>
fire SWITCH_EVEHT_CHANNEL_EXECUTE_COMPLETE

This can be used in async socket connections to tell
when a queued application has finished executing.



Add the "event" application to the dialplan:

<action application="event" data="header1=val1,header2=val2"/>

Events fired from this applcation will always have the type SWITCH_EVENT_CHANNEL_APPLICATION.

You can add up to 25 headers of your own to the event via the application arguements.





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-23 05:41:07 +00:00
Michael Jerris
b9c9f4c9e9 add SWITCH_STANDARD_APP helper macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 05:39:50 +00:00
Michael Jerris
8879fe5eb5 move mod_dptools to use new module loader interfaces.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5399 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 05:15:07 +00:00
Michael Jerris
4de6b9858d add system app: MODAPP-14
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 02:19:29 +00:00
Anthony Minessale
2dd261deee add gentones app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-17 01:16:39 +00:00
Anthony Minessale
7eeb6cc8e9 fix typos
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5383 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-16 23:23:34 +00:00
Anthony Minessale
365b8c515d finish up merge
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-16 03:43:13 +00:00
Anthony Minessale
4ca73d77e0 upgrade fax_detect to tone_detect
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5379 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-16 02:25:40 +00:00
Michael Jerris
ac79d909b2 add system application (MODAPP-14)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5375 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-15 17:39:18 +00:00
Anthony Minessale
8d0a8a0d47 add session_displace api and app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5366 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-15 01:47:48 +00:00
Anthony Minessale
95f007586f stage 1 of wrecking ball (duck!)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 20:40:06 +00:00
Michael Jerris
50fe6fbac8 merge mod_bridgecall, mod_echo, mod_park, and mod_playback all into mod_dptools. You will need to remove these from your modules.conf and configuration files.
move some applications to use the new module interface macros.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5342 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-13 16:00:14 +00:00
Michael Jerris
4f04ce0518 merge patch from MODAPP-12, thanks Bret.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-04 22:10:42 +00:00
Michael Jerris
47755f4d20 add start_dtmf and stop_dtmf apps, inspired by trixter.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-04 17:12:43 +00:00
Michael Jerris
521eac756e create macro to define api command prototypes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5167 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 21:36:15 +00:00
Michael Jerris
a4ff7e88da adding const qualifiers across the api as appropriate.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 14:48:14 +00:00
Anthony Minessale
4dab016887 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5118 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-10 14:11:26 +00:00
Anthony Minessale
a5417cc133 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-09 22:13:18 +00:00
Michael Jerris
7409a6c975 fix type
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5086 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-04 02:14:40 +00:00
Michael Jerris
bf6a88e818 warnings cleanup.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5085 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-04 02:09:24 +00:00
Anthony Minessale
b7606ea4ea add reject app to do custom sip rejects
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4997 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-21 15:04:01 +00:00
Anthony Minessale
b5a10d5a14 add new execute_extension application to execute another extension in the current scope
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4993 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-04-20 23:45:14 +00:00
Anthony Minessale
debdfb1aab indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale
3a54126261 spring cleaning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Anthony Minessale
8a4406ece2 Addition of scheduler engine and a few applications to use it.
This patch adds a scheduler thread to the core and moves the heartbeat
event to use the new scheduler as an example.

Also The following features are implemented that use this scheduler:

sched_hangup dialplan application:

<action application="sched_hangup" data="+10 normal_clearing bleg"/>

** The cause code is optional and the optional bleg keyword will only hangup the
   channel the current channel is bridged to if the call is in a bridge.

sched_transfer dialplan application:

<action application="sched_transfer" data="+10 1000 XML default"/>

** The last 2 args (dialplan and context) are optional

sched_broadcast dialplan application:

<action application="sched_broadcast" data="+10 playback:/tmp/foo.wav"/>
<action application="sched_broadcast" data="+10 playback!normal_clearing:/tmp/foo.wav"/>

** The optional !<cause_code> can be added to make the channel hangup after broadcasting the file.


sched_hangup api function:

sched_hangup +10 <uuid_string> normal_clearing

** The cause code is optional

sched_transfer api function:

sched_transfer +10 <uuid_string> 1000 XML default

** The last 2 args (dialplan and context) are optional

sched_broadcast api function:

sched_broadcast +10 <uuid_str> playback:/tmp/foo.wav
sched_broadcast +10 <uuid_str> playback!normal_clearing:/tmp/foo.wav

** The optional !<cause_code> can be added to make the channel hangup after broadcasting the file.

The new C functions in the core are documented in the doxeygen.

*NOTE* This commit should satisfy at least 2 bounties on the wiki



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4785 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-28 23:37:12 +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
3e3760a996 add flags to the application interface for marking if apps support no media mode. FSCORE-7
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-26 21:38:10 +00:00
Michael Jerris
3f72839a65 constify switch_channel_set_variable and remove some incorrect casts in it's consumers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4306 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 00:56:16 +00:00
Anthony Minessale
9626393ef8 add export app (set + adding to export_vars) in 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4299 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 20:07:35 +00:00