[Freeswitch-users] Problems reading DTMFs sent by A

Helena Garcia-Nieto helena.gnieto at morodo.co.uk
Mon May 12 18:38:11 MSD 2014


Hi All!

I am trying to read some DTMFs dialed by A after freeswitch picks the call.
My aim is to recollect the DTMFs and create a bridge between the incoming
call and the extension he dialed but I am not able to get the dialed DTMFs.

I've tried read and play and get digits action with no success. It seems
none of the applications I used on the dialplan is able to read the sent
dtmfs. I am using it on the public dialplan since the phone is getting to
that dialplan form port 5080. I tried also transferring the call to the
default dialplan and using the actions there with no success either.

		<extension name="Read Example">
				<condition field="destination_number"
expression="^(334)$">
					<action application="answer"/>
					<action
application="play_and_get_digits" data="2 5 1 7000 #
$${base_dir}/conf/outgoingcall.wav $${base_dir}/conf/outgoingcall.wav myvar
\d+"/>
					<action application="log" data="INFO
helena2 -1-${mybar}-"/>				
				</condition>
		</extension>

I've traced on the server and I can see the RTP event packet with the digits
getting the server but in my console log I can see there were no info got:

2014-05-12 15:01:27.211903 [NOTICE] mod_dptools.c:1225 Channel
[sofia/external/1000 at XX.XX.XX.XX:5080] has been answered
2014-05-12 15:02:02.331453 [INFO] mod_dptools.c:1595 helena2 -1--
2014-05-12 15:02:02.331453 [NOTICE] switch_core_state_machine.c:262
sofia/external/1000@ XX.XX.XX.XX:5080 has executed the last dialplan
instruction, hanging up.
2014-05-12 15:02:02.331453 [NOTICE] switch_core_state_machine.c:264 Hangup
sofia/external/1000@ XX.XX.XX.XX:5080 [CS_EXECUTE] [NORMAL_CLEARING]


I've tried with the read action as well:

	<extension name="try2" continue="true">
			<condition field="destination_number"
expression="^(333)$">
			<action application="answer"/>
			<action application="sleep" data="1"/>
				<action application="read" data="0 10
$${base_dir}/conf/outgoingcall.wav res 10000 #"/>
				<action application="phrase"
data="spell,${res}"/>	
				<action application="log" data="INFO HELENA
--${res}__"/>	
			</condition> 
	 	</extension>

2014-05-12 15:16:51.971820 [NOTICE] sofia_glue.c:4360 Pre-Answer
sofia/external/1000@ XX.XX.XX.XX:5080!
2014-05-12 15:16:51.971820 [NOTICE] mod_dptools.c:1225 Channel
[sofia/external/1000@ XX.XX.XX.XX:5080] has been answered
2014-05-12 15:17:16.171867 [INFO] mod_dptools.c:1595 HELENA --__

I cannot hear the played wav from my softphone, although I can see in the
server trace that it is sent, so maybe I have some NAT problem for the RTP
but since I can see the RTP EVENT getting the freeswitch server I don't
think it is affecting.
I've tried configuring the softphone to send RFC2833 RTP events and also to
send the dTMF in band. Both cases the result on the log was an empty
variable.

I am pretty new at freeswitch so I guess I am forgetting to do something or
doing something wrong. May be there is a better option/action to do this!
I'll appreciate any help you could give me!

Thanks in advanced

Helena 




Helena Garcia-Nieto de Mir
Morodo Group VoIP Department
E-mail: helena.gnieto at morodo.co.uk
Morodo Limited
 voip at morodo.co.uk / www.mo-call.com 
Place of Registration: Companies House, England & Wales / Registered Office:
7 Breasy Place, 9 Burroughs Gardens Hendon, London NW4 4AU






Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list