FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Go to file
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
build make script work on solaris 2006-05-08 04:10:21 +00:00
conf update dingaling to be able to use TLS jabber servers such as googletalk 2006-08-11 00:24:38 +00:00
docs dox 2006-05-10 20:02:01 +00:00
libs revert static runtime change for msvc. Bad idea... 2006-08-14 17:44:38 +00:00
mac/xcode Fix PCRE depends for libfreeswitch and the cli so it will build correctly. 2006-08-13 17:20:02 +00:00
scripts Change the socket protocol and the sample client to use multiline input 2006-07-25 14:14:07 +00:00
src *deep breath* 2006-08-17 00:53:09 +00:00
w32 windows installer tweaks.. not quite there yet still. 2006-08-14 20:46:54 +00:00
.indent.pro fix oops (svn merge -r 418:417 http://svn.freeswitch.org/svn/freeswitch/trunk) 2006-01-20 15:05:05 +00:00
AUTHORS 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. 2006-07-24 15:19:05 +00:00
COPYING fix oops (svn merge -r 418:417 http://svn.freeswitch.org/svn/freeswitch/trunk) 2006-01-20 15:05:05 +00:00
ChangeLog hi 2005-11-12 21:27:19 +00:00
INSTALL autotools cleanup and revert an oops. 2006-03-30 14:54:34 +00:00
Makefile.am move pcre into core do a ./configure again 2006-07-31 23:46:37 +00:00
Makefile.in move pcre into core do a ./configure again 2006-07-31 23:46:37 +00:00
NEWS hi 2005-11-12 21:27:19 +00:00
README Fix some warnings in MSVC (no more deprecated warnings again), fixed g729 build in msvc broken when the files in the lib moved when it was autotooled. Add details in readme about msvc requirements when using VC++ express 2005. 2006-01-09 02:36:00 +00:00
aclocal.m4 fixup custom event stuff 2006-07-24 15:45:36 +00:00
build.sh change build.sh to ensure gnu make 2006-02-08 21:32:03 +00:00
configure fixup custom event stuff 2006-07-24 15:45:36 +00:00
configure.in autoconf crap 2006-07-22 01:02:36 +00:00
generic_mod.mk ok this is just being picky but on darwin and mac we really should call it .dylib instead of .so but this also gave me a chance to get better with the build system. /b 2006-03-05 23:44:04 +00:00
indent_options.sh fix oops (svn merge -r 418:417 http://svn.freeswitch.org/svn/freeswitch/trunk) 2006-01-20 15:05:05 +00:00
mkinstalldirs hi 2005-11-12 21:27:19 +00:00
modules.conf.in Add mod_event_socket remote client module and sample client. 2006-07-22 21:49:52 +00:00

README

Freeswitch depends on several out of tree libraries.  All of freeswitch depends on APR, and mod_exosip depends on osip, exosip, jtrhead, and jrtplib.  
Download locations and links for details can be found below.

Apr info available at: http://apr.apache.org

Download Locations:
apr: http://apache.mirrors.versehost.com/apr/apr-1.2.2.tar.gz

Backup Download Locations:
apr: http://www.sofaswitch.org/mikej/apr-1.2.2.tar.gz


Exosip\Osip info available at: http://www.antisip.com/

Download Locations:
osip: http://www.antisip.com/download/libosip2-2.2.1.tar.gz
exosip: http://www.antisip.com/download/libeXosip-0.9.0.tar.gz

Backup Download Locations:
osip: http://www.sofaswitch.org/mikej/libosip2-2.2.1.tar.gz
exosip: http://www.sofaswitch.org/mikej/libeXosip-0.9.0.tar.gz


Jthread\Jrtplib info available at: http://research.edm.luc.ac.be/jori/page.html

Download Locations:
jthread: http://research.edm.luc.ac.be/jori/jthread/jthread-1.1.2.tar.gz
jrtplib: http://research.edm.luc.ac.be/jori/jrtplib/jrtplib-3.3.0.tar.gz

Backup Download Locations:
jthread: http://www.sofaswitch.org/mikej/jthread-1.1.2.tar.gz
jrtplib: http://www.sofaswitch.org/mikej/jrtplib-3.3.0.tar.gz

MSVC Notes:
Freeswitch will compile and run from Microsoft Visual Studio 2005.  
If using the Visual C++ Express edition, please make sure that the location of the include and lib directories are propperly set in the file
C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\VCProjectEngine.Dll.Express.Config.  
The automated build process for te dependecy libraries will not work without these settings.