if this is a bridged call you will get one on each leg as the dtmf passes from one leg to the other.<br>if in some cases the dtmf is intercepted by something like the bind_meta_app then you may only see 1.<br><br><br><div class="gmail_quote">
On Mon, Oct 27, 2008 at 11:36 AM, Klaus Teller <span dir="ltr"><<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I do indeed look for the Event-Name attribute. But since for a single DTMF digit two events are received from Freeswitch (with Event-Name: DTMF) , i need to differentiate them somehow such that one is processed and the other ignored. The differentiation pattern i found is the channel state (CS_EXCHANGE_MEDIA or CS_EXECUTE state). But then, DTMF-star doesn't always have these two states.<br>
<br>
Klaus.<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Mon, 27 Oct 2008 11:19:18 -0500<br>
> Von: "Anthony Minessale" <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>><br>
> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Betreff: Re: [Freeswitch-users] DTMF Star Event Inconsistent<br>
<div><div></div><div class="Wj3C7c"><br>
> you should be looking for the DTMF event and not reacting to any others<br>
><br>
> Event-Name: DTMF<br>
><br>
> any other ones are not necessarily related to what you want.<br>
><br>
><br>
> On Mon, Oct 27, 2008 at 8:49 AM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>><br>
> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I'm calling a registered soft phone (ext. 1003) via the event socket<br>
> > interface. That is, on one side i have some Java code connecting to the<br>
> > Freeswitch event socket interface and placing calls and on the other<br>
> hand i<br>
> > have the soft phone registered to Freeswitch and awaiting for calls.<br>
> ><br>
> ><br>
> > Now, when i get a call on the soft phone, i press a sequence of DTMF<br>
> > digits. The sequence of DTMF digits is intended to be read by the Java<br>
> code<br>
> > via the socket interface. Most things run pretty smoothly: i can place<br>
> > calls, i can send DTMFs, i can receive them on the other hand.<br>
> ><br>
> > The inconsistent behavior i'm seeing is following. For DTMF-0 to DTMF-9,<br>
> > and DTMF-#, i receive two events via the socket interface. The first one<br>
> is<br>
> > in CS_EXCHANGE_MEDIA state and the second is in CS_EXECUTE state. Yet<br>
> for<br>
> > DTMF-* i receive inconsistent number of events: sometimes only one<br>
> single<br>
> > event in state CS_EXCHANGE_MEDIA sometimes two events as in the case of<br>
> > other DTMF digits.<br>
> ><br>
> > It seems there is a pattern in this "inconsistency". The odd DTMF-*<br>
> (first,<br>
> > third, fifth, etc.) generate only one CS_EXCHANGE_MEDIA event while the<br>
> even<br>
> > (second, fourth, sixth, etc.) generate both events.<br>
> ><br>
> > Can somebody help me understand what's going on?<br>
> ><br>
> > Thanks,<br>
> > Klaus.<br>
> ><br>
> > --<br>
> > "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...<br>
> > Jetzt GMX ProMail testen: <a href="http://www.gmx.net/de/go/promail" target="_blank">http://www.gmx.net/de/go/promail</a><br>
> ><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>
> ><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
</div></div>> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
</div>> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
<font color="#888888"><br>
--<br>
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
</font><div><div></div><div class="Wj3C7c"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>