1. 17 8月, 2006 2 次提交
    • Anthony Minessale's avatar
      afdaac9b
    • Anthony Minessale's avatar
      *deep breath* · 78d060c6
      Anthony Minessale 提交于
      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
      78d060c6
  2. 16 8月, 2006 2 次提交
  3. 15 8月, 2006 7 次提交
  4. 14 8月, 2006 6 次提交
  5. 13 8月, 2006 4 次提交
  6. 12 8月, 2006 3 次提交
  7. 11 8月, 2006 9 次提交
  8. 09 8月, 2006 1 次提交
  9. 07 8月, 2006 6 次提交