Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated to use $${recordings_dir}

...

Code Block
languagexml
themeEmacs
<extension name="ext-666">
  <condition field="destination_number" expression="^666$">
    <action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
    <action application="set" data="RECORD_COPYRIGHT=(c) 1980 Factory Records, Inc."/>
    <action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
    <action application="set" data="RECORD_ARTIST=Ian Curtis"/>
    <action application="set" data="RECORD_COMMENT=Love will tear us apart"/>
    <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
    <action application="set" data="RECORD_STEREO=true"/>
    <action application="record_session" data="$${baserecordings_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
    <action application="set" data="ringback=${us-ring}"/>
    <action application="bridge" data="sofia/external/18007842433@sip.voip-provider.com"/>
  </condition>
</extension>

...

Code Block
languagexml
themeEmacs
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2011"/>
<action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
<action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
<action application="set" data="RECORD_COMMENT=FreeSWITCH"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="record_session" data="$${baserecordings_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>

...

Code Block
languagexml
themeEmacs
<extension name="flowroute.com.11.digits">
    <condition field="destination_number" expression="^(\d{11})$">
        <action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
        <action application="set" data="RECORD_COPYRIGHT=(c) 2009"/>
        <action application="set" data="RECORD_SOFTWARE=FreeSwitch"/>
        <action application="set" data="RECORD_ARTIST=FreeSwitch"/>
        <action application="set" data="RECORD_COMMENT=FreeSwitch"/>
        <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
        <action application="set" data="RECORD_STEREO=true"/>
        <action application="record_session" data="$${baserecordings_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
        <action application="bridge" data="sofia/gateway/flowroute.com/$1"/>
    </condition>
 </extension>

...

Code Block
languagexml
themeEmacs
<action application="export" data="execute_on_answer=record_session $${baserecordings_dir}/recordings/${strftime(%Y%m%d%H%M%S)}_${caller_id_number}.wav"/>

...

Code Block
languagexml
themeEmacs
<action application="set" data="bridge_pre_execute_bleg_app=record_session"/>
<action application="set" data="bridge_pre_execute_bleg_data=$${baserecordings_dir}/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/> 

...

Code Block
languagexml
themeEmacs
<extension name="Local_Extension">
    <condition field="destination_number" expression="^(10[01][0-9])$">
        <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> -->
        <action application="export" data="RECORD_STEREO=true"/>
        <action application="export" data="RECORD_TOGGLE_ON_REPEAT=true"/>
        <action application="bind_meta_app" data="2 b s record_session::$${baserecordings_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
        <action application="bridge" data="user/$1@${domain_name}"/>
    </condition>
</extension>

...

Code Block
languagexml
themeEmacs
<action application="bind_meta_app" data="2 ab s record_session::$${baserecordings_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>

...

Code Block
languagexml
themeEmacs
<param name="record-template" value="$${baserecordings_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>

...