Freeswitch录音Dialplan

<extension name="record">
    <condition field="destination_number" expression="^1212$">
        <action application="answer"/>
        <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) 2019"/>  
        <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="/usr/local/record/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
        <action application="park"/>
    </condition>
   </extension>

  

posted @ 2019-06-10 11:44  David~Chen  阅读(860)  评论(0编辑  收藏  举报