Hi,<br><br>Thank you very much for your prompt response.&nbsp; I actually did try to put the &quot;read&quot; app in a separate extension, but what happened was that when *1 was pressed, Freeswitch would play MOH and both both soft phone couldn&#39;t hear each other anymore.&nbsp; After MOH is played, Freeswitch just continues to place it forever.&nbsp; What I need is for the record to take place at the background without interrupting the existing call.&nbsp; That part can be accomplished by using<br>
&lt;action application=&quot;bind_meta_app&quot; data=&quot;2 a s record_session::$${base_dir}/<div>recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;</div><br>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&#39;t figure out what&#39;s wrong.&nbsp; <br><br>Here is my dialplan:<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&nbsp; &lt;section name=&quot;dialplan&quot; description=&quot;Redirect to agent dialplan&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;context name=&quot;public&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;test9&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;<br>&nbsp;&lt;action application=&quot;bind_meta_app&quot; data=&quot;3 a a execute_extension::transfer XML features&quot;/&gt;<br>&nbsp;&lt;action application=&quot;bind_meta_app&quot; data=&quot;1 a a execute_extension::record XML features&quot;/&gt;<br>
&nbsp;&lt;action application=&quot;bind_meta_app&quot; data=&quot;2 a a stop_record_session::/mnt/app/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;<br>&nbsp;&lt;action application=&quot;bind_meta_app&quot; data=&quot;4 a s execute_extension::att_xfer XML features&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/mygateway/1000&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;hangup&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/context&gt;<br>&nbsp;&nbsp;&nbsp; &lt;context name=&quot;features&quot;&gt;<br>&lt;extension name=&quot;features&quot;&gt;<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^att_xfer&quot; break=&quot;on-true&quot;&gt;<br>
&lt;action application=&quot;read&quot; data=&quot;1 10 &#39;tone_stream://%(10000,0,350,440)&#39; digits 30000 #&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;action=att-xfer&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;execute_extension&quot; data=&quot;att${digits} XML public&quot;/&gt;<br>
&lt;/condition&gt;<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^record&quot; break=&quot;on-true&quot;&gt;<br>&nbsp; &lt;action application=&quot;record&quot; data=&quot;/mnt/app/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;<br>
&lt;/condition&gt;<br>&lt;/extension&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/context&gt;<br>&nbsp; &lt;/section&gt;<br>&lt;/document&gt;<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">5454@192.168.1.101</a> Processing meta digit &#39;1&#39; [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">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">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">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-&gt;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><br>Woody<br><br><br>