[Freeswitch-users] Recording through Default.xml not working

Brian West brian at freeswitch.org
Fri Nov 7 05:53:46 PST 2008


I have just tested this again and it works fine.  The called extension  
pressing *2 and it record fine.  Are you talking about your user of  
record_session?  Because if you are already recording it.. why even  
have the bind_meta option to record it?

/b

On Nov 6, 2008, at 11:59 PM, Baskar wrote:

> Hi,
>
>      Recoding is done through default.xml.
>      For past 1 month recoding is working fine.
>      Suddenly for past 3day recording is not working.
>      I did not modify any thing in deafult .xml .
>
>      My deafult.xml file
>
> <?xml version="1.0" encoding="utf-8"?>
> <include>
>   <context name="default">
>    <extension name="Local_Extension">
>        <condition field="destination_number" expression="^(1[0-9] 
> [0-9][0-9])$">
>        <action application="set" data="dialed_ext=$1"/>
>        <action application="export" data="dialed_ext=$1"/>
>        <action application="answer"/>
>        <action application="info"/>
>        <action application="export" data="Answer-State"/>
>        <action application="log" data="INFO Answer-State [${Answer- 
> State}]\n"/>
>        <action application="record_session" data="$${base_dir}/ 
> recordings/${destination_number}-${caller_id_number}-${strftime(%Y- 
> %m-%d-%H-%M-%S)}.wav"/>
>        </condition>
>        <condition field="destination_number" expression="^$ 
> {caller_id_number}$">
>        <action application="set" data="voicemail_authorized=$ 
> {sip_authorized}"/>
>        <action application="answer"/>
>        <action application="set" data="answer-state=${Answer-State}"/>
>        <action application="info"/>
>        <action application="sleep" data="1000"/>
>        <action application="voicemail" data="check default $$ 
> {domain} ${dialed_ext}"/>
>        <anti-action application="bind_meta_app" data="1 b s  
> execute_extension::dx XML features"/>
>        <anti-action application="bind_meta_app" data="2 b s  
> record_session::$${base_dir}/recordings/${caller_id_number}.$ 
> {strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
>         <anti-action application="bind_meta_app" data="3 b s  
> execute_extension::cf XML features"/>
>         <anti-action application="set" data="transfer_ringback=${us- 
> ring}"/>
>         <anti-action application="set" data="call_timeout=30"/>
>         <action application="set" data="hangup_after_bridge=false"/>
>         <anti-action application="set" data="continue_on_fail=true"/>
>         <anti-action application="db" data="insert/call_return/$ 
> {dialed_ext}/${caller_id_number}"/>
>         <anti-action application="db" data="insert/last_dial_ext/$ 
> {dialed_ext}/${uuid}"/>
>         <anti-action application="bridge" data="user/${dialed_ext}@$$ 
> {domain}"/>
>         <action application="info"/>
>         <anti-action application="answer"/>
>         <anti-action application="sleep" data="1000"/>
>         <anti-action application="voicemail" data="default $$ 
> {domain} ${dialed_ext}"/>
>       </condition>
>     </extension>
>
>    <extension name="Long Distance - wanpipe">
>       <condition field="destination_number" expression="^9(\d{5,15}) 
> $">
>       <action application="set" data="effective_caller_id_number=$1"/>
>       <action application="set" data="dialed_ext=$1"/>
>       <action application="info"/>
>       <action application="set" data="answer-state=${Answer-State}"/>
>       <action application="export"  
> data="effective_caller_id_number=true"/>
>       <action application="export" data="answer-state"/>
>       <action application="set" data="hangup_after_bridge=false"/>
>       <!-- <action application="bridge" data="sofia/default/$1 at 219.64.118.239 
> :5066"/> -->
>       <action application="record_session" data="$${base_dir}/ 
> recordings/${destination_number}-${caller_id_number}-${strftime(%Y- 
> %m-%d-%H-%M-%S)}.wav"/>
>       <action application="bridge" data="sofia/default/$1 at 172.20.191.228 
> "/>
>      </condition>
>    </extension>
>    <extension name="nb_conferences">
>       <condition field="destination_number" expression="^(30\d{2})$">
>         <action application="answer"/>
>         <!--<action application="send_display" data="8k Conference  
> $1"/>-->
>         <action application="conference" data="$1 at default"/>
>       </condition>
>     </extension>
>
>   </context>
> </include>
>
> correct me were is wrong
>
> -- 
> Warm Regards,
> N.Baskar
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081107/8c78ab4c/attachment-0002.html 


More information about the FreeSWITCH-users mailing list