• Anthony Minessale's avatar
    Adding bugs to the core · ae9d56e2
    Anthony Minessale 提交于
    This is the primary commit to add bugs to the core (media bugs that is)
    Media bugs are kind of like what ChanSpy is in Asterisk only cooler (I wrote ChanSpy too so I can say that)
    
    Here is an example of using them to record a call by the higher level switch_ivr functionality passed
    up to the dialplan via mod_playback.
    
    The call will be recorded while the some.wav plays then stop for the rest of the call (when some_other.wav plays)
    
    The bugs may have bugs since this is 1 day's work so happy hunting ......
    
    <extension name="42">
      <condition field="destination_number" expression="^42$">
       <action application="set" data="RECORD_TITLE=recording test"/>
       <action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
        <action application="record_session" data="/tmp/rtest.wav"/>
        <action application="playback" data="/tmp/some.wav"/>
        <action application="stop_record_session" data="/tmp/rtest.wav"/>
        <action application="playback" data="/tmp/some_other.wav"/>
      </condition>
    </extension>
    
    
    
    git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2588 d0543943-73ff-0310-b7d9-9358b9ac24b2
    ae9d56e2
switch_types.h 26.5 KB