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

Michael Collins msc at freeswitch.org
Thu Sep 2 11:54:45 PDT 2010


Did you do this?
http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators
-MC

On Thu, Sep 2, 2010 at 6:26 AM, Nigel Kent <ktngl at yahoo.co.uk> wrote:

> 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}"
>                     end
>                 end
>         end
>
>
>
> --- 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<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100902/2ebecc14/attachment.html 


More information about the FreeSWITCH-users mailing list