[Freeswitch-users] start_tone_detect, but no event is fired

henry.houfeng henry.houfeng at gmail.com
Tue Apr 2 18:06:36 MSD 2013


Hi,

I want to detect call progress tone with start_tone_detect, but I can't get
the event fired.

My dialplan is:
<extension name="skynet51">
<condition field="destination_number" expression="^(\d+)$">
<action application="start_tone_detect" data="1"/>
<action application="bridge" data="sofia/gateway/skynet51/$1"/>
</condition>
</extension>

The call senario is:
Caller A is a user registered on local FS. Callee B is a user on remote
gateway.

A-------INVITE------------>B
A<------100 Trying---------B
A<-----183 with SDP-------B
A<------RTP of Ring Tone--B

The early media of ring tone or busy tone is transferred from B to A after
183. But I can't see the DETECTED_TONE is fired.

I have set loglevel to 3 in spandsp.conf.xml:
<descriptors debug-level="3">

I can only find some Tone segment at a frequencey less than 10:

freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:12.618263 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = 4, f2 = 5, duration = 48
freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:12.738255 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = -1, f2 = -1, duration = 128
freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:12.858249 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = 4, f2 = 5, duration = 112
freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:12.958243 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = -1, f2 = -1, duration = 112
freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:13.018238 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = 4, f2 = 5, duration = 48
freeswitch.log.2013-04-02-02-03-38.1:2013-04-01 21:51:13.058236 [DEBUG]
mod_spandsp_dsp.c:645 Tone segment: f1 = -1, f2 = -1, duration = 48

Is my dialplan incorrect? I will very appreciate your suggestion. Thanks!

Regards,
Henry



--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/start-tone-detect-but-no-event-is-fired-tp7589332.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list