Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
yudha2008 at gmail.com
Guest





PostPosted: Fri Nov 07, 2008 1:00 am    Post subject: [Freeswitch-users] Recording through Default.xml not working Reply with quote

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@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@172.20.191.228 (1@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@default"/>
</condition>
</extension>

</context>
</include>

correct me were is wrong

--
Warm Regards,
N.Baskar
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Nov 07, 2008 1:22 am    Post subject: [Freeswitch-users] Recording through Default.xml not working Reply with quote

What is actually happening? Is there no sound file created or is it something else wrong?


-MC

Sent from my iPhone

On Nov 6, 2008, at 9:59 PM, Baskar <yudha2008@gmail.com (yudha2008@gmail.com)> wrote:



Quote:
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@219.64.118.239 (1@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/$[url=mailto:1@172.20.191.228]1@172.20.191.228 (1@172.20.191.228)[/url]"/>
</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@default"/>
</condition>
</extension>

</context>
</include>

correct me were is wrong

--
Warm Regards,
N.Baskar


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
yudha2008 at gmail.com
Guest





PostPosted: Fri Nov 07, 2008 2:05 am    Post subject: [Freeswitch-users] Recording through Default.xml not working Reply with quote

Hi Michael,
Actually the recording file will be in the path /usr/local/freeswitch/recordings. I get those recoding file till 4th Nov 2008 i get the sound file in the format 1001-0000000000-2008-11-04-15-17-54. On 5th Nov 2008 onwards there is no sound file created. Another thing how can i get the called no ID now it is storing like this 0000000000.



On Fri, Nov 7, 2008 at 11:51 AM, Michael S Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:
What is actually happening? Is there no sound file created or is it something else wrong?


-MC

Sent from my iPhone


On Nov 6, 2008, at 9:59 PM, Baskar <yudha2008@gmail.com (yudha2008@gmail.com)> wrote:



Quote:
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@219.64.118.239 (1@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@172.20.191.228)1@172.20.191.228 (1@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@default"/>
</condition>
</extension>

</context>
</include>

correct me were is wrong

--
Warm Regards,
N.Baskar


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:[/url][url=http://lists.freeswitch.org/mailman/options/freeswitch-users]http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Warm Regards,
N.Baskar
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Nov 07, 2008 2:22 am    Post subject: [Freeswitch-users] Recording through Default.xml not working Reply with quote

Well, I can say that possibly your vars.xml file got reset to default. Can you check that file for clues?


-MC

Sent from my iPhone

On Nov 6, 2008, at 11:04 PM, Baskar <yudha2008@gmail.com (yudha2008@gmail.com)> wrote:



Quote:
Hi Michael,
Actually the recording file will be in the path /usr/local/freeswitch/recordings. I get those recoding file till 4th Nov 2008 i get the sound file in the format 1001-0000000000-2008-11-04-15-17-54. On 5th Nov 2008 onwards there is no sound file created. Another thing how can i get the called no ID now it is storing like this 0000000000.



On Fri, Nov 7, 2008 at 11:51 AM, Michael S Collins <[url=mailto:msc@freeswitch.org]msc@freeswitch.org (msc@freeswitch.org)[/url]> wrote:
Quote:
What is actually happening? Is there no sound file created or is it something else wrong?


-MC

Sent from my iPhone


On Nov 6, 2008, at 9:59 PM, Baskar <[url=mailto:yudha2008@gmail.com]yudha2008@gmail.com (yudha2008@gmail.com)[/url]> wrote:



Quote:
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/$[url=mailto:1@219.64.118.239]1@219.64.118.239 (1@219.64.118.239)[/url]: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@172.20.191.228)[url=mailto:1@172.20.191.228]1@172.20.191.228 (1@172.20.191.228)[/url]"/>
</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@default"/>
</condition>
</extension>

</context>
</include>

correct me were is wrong

--
Warm Regards,
N.Baskar


_______________________________________________
Freeswitch-users mailing list
[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:[/url][url=http://lists.freeswitch.org/mailman/options/freeswitch-users]http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Warm Regards,
N.Baskar


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Nov 07, 2008 8:56 am    Post subject: [Freeswitch-users] Recording through Default.xml not working Reply with quote

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:
Quote:
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@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@172.20.191.228 (1@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@default"/>
</condition>
</extension>

</context>
</include>

correct me were is wrong

--
Warm Regards,
N.Baskar

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services