<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px"><action </span><span style="font-family:arial,sans-serif;font-size:13px">application="play_and_get_</span><span style="font-family:arial,sans-serif;font-size:13px">digits" data="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+"/></span><div><span style="font-family:arial,sans-serif;font-size:13px"><action application="log" data="INFO </span><span style="font-family:arial,sans-serif;font-size:13px">helena2 -1-${mybar}-"/></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"><<a href="mailto:helena.gnieto@morodo.co.uk" target="_blank">helena.gnieto@morodo.co.uk</a>></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'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>
<extension name="Read Example"><br>
<condition field="destination_number"<br>
expression="^(334)$"><br>
<action application="answer"/><br>
<action<br>
application="play_and_get_digits" data="2 5 1 7000 #<br>
$${base_dir}/conf/outgoingcall.wav $${base_dir}/conf/outgoingcall.wav myvar<br>
\d+"/><br>
<action application="log" data="INFO<br>
helena2 -1-${mybar}-"/><br>
</condition><br>
</extension><br>
<br>
I'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've tried with the read action as well:<br>
<br>
<extension name="try2" continue="true"><br>
<condition field="destination_number"<br>
expression="^(333)$"><br>
<action application="answer"/><br>
<action application="sleep" data="1"/><br>
<action application="read" data="0 10<br>
$${base_dir}/conf/outgoingcall.wav res 10000 #"/><br>
<action application="phrase"<br>
data="spell,${res}"/><br>
<action application="log" data="INFO HELENA<br>
--${res}__"/><br>
</condition><br>
</extension><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't<br>
think it is affecting.<br>
I'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'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 & 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>