[Freeswitch-users] need help on call recording - Solved

haloha haloha201 at gmail.com
Thu Jan 17 17:06:34 MSK 2013


hi Benoit Raymond

it works properly now :)

Thank you for your guide
Ha

On 1/16/13, Benoit Raymond <benoit.raymond at amiconcept.com> wrote:
> Hi,
>
> It is most likely recorded but since you have RECORD_STEREO=true, the audio
> is ... stereo!
>
> If you load your wav in an editor (like Goldwave), that should be evident.
> So drop the RECORD_STEREO parameter or set it to false (this is the default
> anyway) and check if that works.
>
> Benoit Raymond
> AMI Concept Inc.
> Business VoIP Solutions / Web Design
> Phone: (450) 553-1231
> http://www.amiconcept.com
>
> -----Message d'origine-----
> De : freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] De la part de haloha
> Envoyé : 16 janvier 2013 03:50
> À : FreeSWITCH Users Help
> Objet : [Freeswitch-users] need help on call recording
>
> hi all
>
> i try to record all calls to/from local extension so my dialplan
>
>
>     <extension name="Local_Extension">
>       <condition field="destination_number" expression="^(10[01][0-9])$">
>         <action application="export" data="dialed_extension=$1"/>
>         <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="/etc/freeswitch/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_${caller_id_
> number}_${destination_number}.wav"/>
>         <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s]
> <app> -->
>         <action application="bind_meta_app" data="1 b s
> execute_extension::dx XML features"/>
>         <action application="bind_meta_app" data="2 b s
> record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%
> H-%M-%S)}.wav"/>
>         <action application="bind_meta_app" data="3 b s
> execute_extension::cf XML features"/>
>         <action application="bind_meta_app" data="4 b s
> execute_extension::att_xfer XML features"/>
>         <action application="set" data="ringback=${us-ring}"/>
> <!--    <action application="set"
> data="transfer_ringback=$${hold_music}"/>-->
>         <action application="set" data="call_timeout=30"/>
>         <!-- <action application="set"
> data="sip_exclude_contact=${network_addr}"/> -->
>         <action application="set" data="hangup_after_bridge=true"/>
>         <!--<action application="set"
> data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,
> NO_ROUTE_DESTINATION"/>
> -->
>         <action application="set" data="continue_on_fail=true"/>
>         <action application="hash"
> data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_numb
> er}"/>
>         <action application="hash"
> data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
>         <action application="set"
> data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
> var callgroup)}"/>
>         <action application="hash"
> data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"
> />
>         <action application="hash"
> data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
>         <!--<action application="export"
> data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name
> }
> var sip_secure_media)}"/>-->
>         <action application="hash"
> data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
>         <action application="bridge"
> data="user/${dialed_extension}@${domain_name}"/>
>         <action application="answer"/>
>         <action application="sleep" data="1000"/>
>         <action application="bridge"
> data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
>       </condition>
>     </extension>
>
>
> FS only records the caller voicem FS doesnt record the called voice
>
> How do i record the entire calls(caller and called)
>
> Thank you
> Ha`
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list