[Freeswitch-users] Problems getting dtmf events - code and debug now attached

Nigel Kent ktngl at yahoo.co.uk
Thu Sep 2 06:26:25 PDT 2010

code below and debug log now attached. It seems once playback file is played no further dtmf events come through? Any ideas!

        while @con.connected
puts "wait for event"
                e = @con.recvEvent
puts "got event"
                if (!e.nil?)
puts "test event"
                    name = e.getHeader("Event-Name")
                    break if name == "SERVER_DISCONNECTED"
                    if name == "DTMF"
                        digit = e.getHeader("DTMF-DIGIT")
                        duration = e.getHeader("DTMF-DURATION")
                        puts "*** dtmf #{digit} #{duration}"

--- On Wed, 1/9/10, Nigel Kent <ktngl at yahoo.co.uk> wrote:

From: Nigel Kent <ktngl at yahoo.co.uk>
Subject: [Freeswitch-users] Problems getting dtmf events
To: freeswitch-users at lists.freeswitch.org
Date: Wednesday, 1 September, 2010, 21:15

I am trying to catch dtmf events but am having problems. It seems no dtmfs are being recieved. I can filter to other events and it gets picked up so this section of the code is doing the indented action of getting events. 

However I notice that during the execution of the playback command while the sound file is playing if a key press is done at this time the dtmf does get received.

So my thought are what conditions does the playback command set in order to be able to have dtmf get recognized.

-----Inline Attachment Follows-----

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100902/24634445/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.log
Type: application/octet-stream
Size: 107714 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100902/24634445/attachment-0001.obj 

More information about the FreeSWITCH-users mailing list