are you using "record" or "record_session"? The latter is a background record where the former is a foreground record.<br><br><br><div class="gmail_quote">On Fri, Oct 24, 2008 at 8:22 PM, Woody Dickson <span dir="ltr"><<a href="mailto:woodydickson@gmail.com">woodydickson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Thank you very much for your prompt response. I actually did try to put the "read" app in a separate extension, but what happened was that when *1 was pressed, Freeswitch would play MOH and both both soft phone couldn't hear each other anymore. After MOH is played, Freeswitch just continues to place it forever. What I need is for the record to take place at the background without interrupting the existing call. That part can be accomplished by using<div class="Ih2E3d">
<br>
<action application="bind_meta_app" data="2 a s record_session::$${base_dir}/<div>recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></div><br></div>In addition to that, the party that presses *1 would hear a BEEP sound, indicating the beginning of the recording.<br>
<br>I think the problem may due to a misconfigured dialplan, but I can't figure out what's wrong. <br><br>Here is my dialplan:<br><br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
<document type="freeswitch/xml"><br> <section name="dialplan" description="Redirect to agent dialplan"><br> <context name="public"><br> <extension name="test9"><br>
<condition field="destination_number" expression="^(.*)$"><br> <action application="bind_meta_app" data="3 a a execute_extension::transfer XML features"/><br> <action application="bind_meta_app" data="1 a a execute_extension::record XML features"/><br>
<action application="bind_meta_app" data="2 a a stop_record_session::/mnt/app/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><br> <action application="bind_meta_app" data="4 a s execute_extension::att_xfer XML features"/><br>
<action application="bridge" data="sofia/gateway/mygateway/1000"/><br> <action application="hangup" /><br> </condition><br> </extension><br>
</context><br> <context name="features"><br><extension name="features"><br><condition field="destination_number" expression="^att_xfer" break="on-true"><br>
<action application="read" data="1 10 'tone_stream://%(10000,0,350,440)' digits 30000 #"/><br> <action application="set" data="action=att-xfer" /><br>
<action application="execute_extension" data="att${digits} XML public"/><br>
</condition><br><condition field="destination_number" expression="^record" break="on-true"><br> <action application="record" data="/mnt/app/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><br>
</condition><br></extension><br> </context><br> </section><br></document><br><br>The Freeswitch log shows that it plays a MOH after *1 is pressed, which is not what I want:<br><br>2008-10-25 17:05:13 [DEBUG] switch_ivr_async.c:1425 meta_on_dtmf() sofia/internal/<a href="mailto:5454@192.168.1.101" target="_blank">5454@192.168.1.101</a> Processing meta digit '1' [execute_extension::record XML features]<br>
2008-10-25 17:05:13 [DEBUG] switch_core_session.c:616 switch_core_session_queue_private_event() Kill sofia/internal/<a href="mailto:5454@192.168.1.101" target="_blank">5454@192.168.1.101</a> [BREAK]<br>2008-10-25 17:05:13 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/internal/<a href="mailto:5454@192.168.1.101" target="_blank">5454@192.168.1.101</a> [BREAK]<br>
2008-10-25 17:05:13 [DEBUG] switch_core_session.c:616 switch_core_session_queue_private_event() Kill sofia/external/1000 [BREAK]<br>2008-10-25 17:05:13 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/external/1000 [BREAK]<br>
2008-10-25 17:05:13 [DEBUG] switch_ivr.c:382 <span style="color: rgb(51, 51, 255);">switch_ivr_parse_event() sofia/external/1000 Command Execute playback(local_stream://moh)</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">2008-10-25 17:05:13 [DEBUG] switch_ivr.c:382 </span>switch_ivr_parse_event() sofia/internal/<a href="mailto:5454@192.168.1.101" target="_blank">5454@192.168.1.101</a> Command Execute execute_extension(record XML features)<br>
2008-10-25 17:05:13 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing 5454->record in context features<br>2008-10-25 17:05:13 [DEBUG] mod_local_stream.c:320 local_stream_file_open() Opening Stream [moh/8000] 8000hz<br>
2008-10-25 17:05:14 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 30ms<br>2008-10-25 17:05:14 [DEBUG] switch_core_session.c:435 switch_core_session_receive_message() Kill sofia/external/1000 [BREAK]<br>
2008-10-25 17:05:14 [CONSOLE] mod_xml_curl.c:206 xml_url_fetch() XML response is in /tmp/4384f1d4-b856-4817-8ac7-d6f9fb3dd866.tmp.xml<br>2008-10-25 17:05:14 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [features] destination_number(record) =~ /^att_xfer/<br>
2008-10-25 17:05:14 [DEBUG] mod_dialplan_xml.c:119 parse_exten() Regex mismatch<br>2008-10-25 17:05:14 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [features] destination_number(record) =~ /^record/<br>2008-10-25 17:05:14 [NOTICE] switch_core_session.c:1219 switch_core_session_execute_exten() Execute record(/mnt/app/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav)<br>
<br>Thank you so much for all your help.<br><font color="#888888"><br>Woody<br><br><br>
</font><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>