<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">&lt;action </span><span style="font-family:arial,sans-serif;font-size:13px">application=&quot;play_and_get_</span><span style="font-family:arial,sans-serif;font-size:13px">digits&quot; data=&quot;2 5 1 7000 #</span><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">$${base_dir}/conf/</span><span style="font-family:arial,sans-serif;font-size:13px">outgoingcall.wav $${base_dir}/conf/</span><span style="font-family:arial,sans-serif;font-size:13px">outgoingcall.wav myvar</span><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">\d+&quot;/&gt;</span><div><span style="font-family:arial,sans-serif;font-size:13px">&lt;action application=&quot;log&quot; data=&quot;INFO </span><span style="font-family:arial,sans-serif;font-size:13px">helena2 -1-${mybar}-&quot;/&gt;</span><br>

</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Looks like you have a typo here - my<b>v</b>ar vs my<b>b</b>ar</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 May 2014 15:38, Helena Garcia-Nieto <span dir="ltr">&lt;<a href="mailto:helena.gnieto@morodo.co.uk" target="_blank">helena.gnieto@morodo.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All!<br>
<br>
I am trying to read some DTMFs dialed by A after freeswitch picks the call.<br>
My aim is to recollect the DTMFs and create a bridge between the incoming<br>
call and the extension he dialed but I am not able to get the dialed DTMFs.<br>
<br>
I&#39;ve tried read and play and get digits action with no success. It seems<br>
none of the applications I used on the dialplan is able to read the sent<br>
dtmfs. I am using it on the public dialplan since the phone is getting to<br>
that dialplan form port 5080. I tried also transferring the call to the<br>
default dialplan and using the actions there with no success either.<br>
<br>
                &lt;extension name=&quot;Read Example&quot;&gt;<br>
                                &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^(334)$&quot;&gt;<br>
                                        &lt;action application=&quot;answer&quot;/&gt;<br>
                                        &lt;action<br>
application=&quot;play_and_get_digits&quot; data=&quot;2 5 1 7000 #<br>
$${base_dir}/conf/outgoingcall.wav $${base_dir}/conf/outgoingcall.wav myvar<br>
\d+&quot;/&gt;<br>
                                        &lt;action application=&quot;log&quot; data=&quot;INFO<br>
helena2 -1-${mybar}-&quot;/&gt;<br>
                                &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
<br>
I&#39;ve traced on the server and I can see the RTP event packet with the digits<br>
getting the server but in my console log I can see there were no info got:<br>
<br>
2014-05-12 15:01:27.211903 [NOTICE] mod_dptools.c:1225 Channel<br>
[sofia/external/1000@XX.XX.XX.XX:5080] has been answered<br>
2014-05-12 15:02:02.331453 [INFO] mod_dptools.c:1595 helena2 -1--<br>
2014-05-12 15:02:02.331453 [NOTICE] switch_core_state_machine.c:262<br>
sofia/external/1000@ XX.XX.XX.XX:5080 has executed the last dialplan<br>
instruction, hanging up.<br>
2014-05-12 15:02:02.331453 [NOTICE] switch_core_state_machine.c:264 Hangup<br>
sofia/external/1000@ XX.XX.XX.XX:5080 [CS_EXECUTE] [NORMAL_CLEARING]<br>
<br>
<br>
I&#39;ve tried with the read action as well:<br>
<br>
        &lt;extension name=&quot;try2&quot; continue=&quot;true&quot;&gt;<br>
                        &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^(333)$&quot;&gt;<br>
                        &lt;action application=&quot;answer&quot;/&gt;<br>
                        &lt;action application=&quot;sleep&quot; data=&quot;1&quot;/&gt;<br>
                                &lt;action application=&quot;read&quot; data=&quot;0 10<br>
$${base_dir}/conf/outgoingcall.wav res 10000 #&quot;/&gt;<br>
                                &lt;action application=&quot;phrase&quot;<br>
data=&quot;spell,${res}&quot;/&gt;<br>
                                &lt;action application=&quot;log&quot; data=&quot;INFO HELENA<br>
--${res}__&quot;/&gt;<br>
                        &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
<br>
2014-05-12 15:16:51.971820 [NOTICE] sofia_glue.c:4360 Pre-Answer<br>
sofia/external/1000@ XX.XX.XX.XX:5080!<br>
2014-05-12 15:16:51.971820 [NOTICE] mod_dptools.c:1225 Channel<br>
[sofia/external/1000@ XX.XX.XX.XX:5080] has been answered<br>
2014-05-12 15:17:16.171867 [INFO] mod_dptools.c:1595 HELENA --__<br>
<br>
I cannot hear the played wav from my softphone, although I can see in the<br>
server trace that it is sent, so maybe I have some NAT problem for the RTP<br>
but since I can see the RTP EVENT getting the freeswitch server I don&#39;t<br>
think it is affecting.<br>
I&#39;ve tried configuring the softphone to send RFC2833 RTP events and also to<br>
send the dTMF in band. Both cases the result on the log was an empty<br>
variable.<br>
<br>
I am pretty new at freeswitch so I guess I am forgetting to do something or<br>
doing something wrong. May be there is a better option/action to do this!<br>
I&#39;ll appreciate any help you could give me!<br>
<br>
Thanks in advanced<br>
<br>
Helena<br>
<br>
<br>
<br>
<br>
Helena Garcia-Nieto de Mir<br>
Morodo Group VoIP Department<br>
E-mail: <a href="mailto:helena.gnieto@morodo.co.uk">helena.gnieto@morodo.co.uk</a><br>
Morodo Limited<br>
 <a href="mailto:voip@morodo.co.uk">voip@morodo.co.uk</a> / <a href="http://www.mo-call.com" target="_blank">www.mo-call.com</a><br>
Place of Registration: Companies House, England &amp; Wales / Registered Office:<br>
7 Breasy Place, 9 Burroughs Gardens Hendon, London NW4 4AU<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div><br></div>