<div>I'm not an authority on this, but I have spotted some things that might help you figure this out</div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; ">Your events show up with different unique-ids - <span class="Apple-style-span" style="border-collapse: separate; ">Unique-ID: 34b83622-a473-11dd-8207-2b46fcff01af and Unique-ID: 34adac7a-a473-11dd-8207-2b46fcff01af</span></span><br>
</div><div>You should only be looking for events on only one unique-id.<br></div><div><span class="Apple-style-span" style="border-collapse: collapse;">If each ID is a leg of the call (Not sure about this) It also looks like each leg has a different sampling rate ie PCMU and G722.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">Hope this is helpful</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">Tony Knight</span></div><div><br></div><div class="gmail_quote">On Mon, Oct 27, 2008 at 2:08 PM, 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks. I am not bridging any call. Calls are originated via the socket interface to the extension 1003. And for the same call, all digits except star will produce two events while star will produce one event sometimes and two events some other times in the same call.<br>
<br>
Here are for instance events i got in one single call, pressing 5** (five, star, star). You see that 5 produced two events, the first star produced one event, and the third star produced two events.<br>
<br>
<br>
Channel-State: CS_EXCHANGE_MEDIA<br>
Channel-State-Number: 5<br>
Channel-Name: sofia/internal/1003%40192.168.50.56%3A50435%3Brinstance%3D65055bcc835b9844<br>
Unique-ID: 34b83622-a473-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: PCMU<br>
Channel-Read-Codec-Rate: 8000<br>
Channel-Write-Codec-Name: PCMU<br>
Channel-Write-Codec-Rate: 8000<br>
DTMF-Digit: 5<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A04%3A25<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A04%3A25%20GMT<br>
Event-Date-timestamp: 1225145065750884<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/internal/1003%40192.168.50.94<br>
Unique-ID: 34adac7a-a473-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: G722<br>
Channel-Read-Codec-Rate: 16000<br>
Channel-Write-Codec-Name: G722<br>
Channel-Write-Codec-Rate: 16000<br>
DTMF-Digit: 5<br>
DTMF-Duration: 2080<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A04%3A26<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A04%3A26%20GMT<br>
Event-Date-timestamp: 1225145066008156<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
Channel-State: CS_EXCHANGE_MEDIA<br>
Channel-State-Number: 5<br>
Channel-Name: sofia/internal/1003%40192.168.50.56%3A50435%3Brinstance%3D65055bcc835b9844<br>
Unique-ID: 34b83622-a473-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: PCMU<br>
Channel-Read-Codec-Rate: 8000<br>
Channel-Write-Codec-Name: PCMU<br>
Channel-Write-Codec-Rate: 8000<br>
DTMF-Digit: *<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A04%3A27<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A04%3A27%20GMT<br>
Event-Date-timestamp: 1225145067315160<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
Channel-State: CS_EXCHANGE_MEDIA<br>
Channel-State-Number: 5<br>
Channel-Name: sofia/internal/1003%40192.168.50.56%3A50435%3Brinstance%3D65055bcc835b9844<br>
Unique-ID: 34b83622-a473-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: PCMU<br>
Channel-Read-Codec-Rate: 8000<br>
Channel-Write-Codec-Name: PCMU<br>
Channel-Write-Codec-Rate: 8000<br>
DTMF-Digit: *<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A04%3A28<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A04%3A28%20GMT<br>
Event-Date-timestamp: 1225145068213242<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/internal/1003%40192.168.50.94<br>
Unique-ID: 34adac7a-a473-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: G722<br>
Channel-Read-Codec-Rate: 16000<br>
Channel-Write-Codec-Name: G722<br>
Channel-Write-Codec-Rate: 16000<br>
DTMF-Digit: *<br>
DTMF-Duration: 2080<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A04%3A28<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A04%3A28%20GMT<br>
Event-Date-timestamp: 1225145068456248<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
<br>
Thanks,<br>
klaus.<br>
<br>
<br>
<br>
<br>
<br>
Channel-State: CS_EXCHANGE_MEDIA<br>
Channel-State-Number: 5<br>
Channel-Name: sofia/internal/1003%40192.168.50.56%3A50435%3Brinstance%3D65055bcc835b9844<br>
Unique-ID: b367e680-a472-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: PCMU<br>
Channel-Read-Codec-Rate: 8000<br>
Channel-Write-Codec-Name: PCMU<br>
Channel-Write-Codec-Rate: 8000<br>
DTMF-Digit: 8<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A00%3A47<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A00%3A47%20GMT<br>
Event-Date-timestamp: 1225144847932433<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/internal/1003%40192.168.50.94<br>
Unique-ID: b35d1110-a472-11dd-8207-2b46fcff01af<br>
Call-Direction: outbound<br>
Answer-State: answered<br>
Channel-Read-Codec-Name: G722<br>
Channel-Read-Codec-Rate: 16000<br>
Channel-Write-Codec-Name: G722<br>
Channel-Write-Codec-Rate: 16000<br>
DTMF-Digit: 8<br>
DTMF-Duration: 2080<br>
Event-Name: DTMF<br>
Core-UUID: 1abe8d52-a44b-11dd-8207-2b46fcff01af<br>
FreeSWITCH-Hostname: localhost.localdomain<br>
FreeSWITCH-IPv4: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>
FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2008-10-27%2018%3A00%3A48<br>
Event-Date-GMT: Mon,%2027%20Oct%202008%2022%3A00%3A48%20GMT<br>
Event-Date-timestamp: 1225144848192750<br>
Event-Calling-File: switch_channel.c<br>
Event-Calling-Function: switch_channel_dequeue_dtmf<br>
Event-Calling-Line-Number: 357<br>
<br>
<br>
<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Mon, 27 Oct 2008 12:16:34 -0500<br>
<div><div></div><div class="Wj3C7c">> 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>
<br>
> if this is a bridged call you will get one on each leg as the dtmf passes<br>
> from one leg to the other.<br>
> if in some cases the dtmf is intercepted by something like the<br>
> bind_meta_app<br>
> then you may only see 1.<br>
><br>
><br>
> On Mon, Oct 27, 2008 at 11:36 AM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>><br>
> wrote:<br>
><br>
> > I do indeed look for the Event-Name attribute. But since for a single<br>
> DTMF<br>
> > digit two events are received from Freeswitch (with Event-Name: DTMF) ,<br>
> i<br>
> > need to differentiate them somehow such that one is processed and the<br>
> other<br>
> > ignored. The differentiation pattern i found is the channel state<br>
> > (CS_EXCHANGE_MEDIA or CS_EXECUTE state). But then, DTMF-star doesn't<br>
> always<br>
> > 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>
> ><br>
> > > you should be looking for the DTMF event and not reacting to any<br>
> 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<br>
> 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<br>
> Java<br>
> > > code<br>
> > > > via the socket interface. Most things run pretty smoothly: i can<br>
> 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<br>
> > DTMF-9,<br>
> > > > and DTMF-#, i receive two events via the socket interface. The first<br>
> > one<br>
> > > is<br>
> > > > in CS_EXCHANGE_MEDIA state and the second is in CS_EXECUTE state.<br>
> 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<br>
> 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<br>
> 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:<br>
> > <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>
> > > <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><<br>
> ><br>
</div></div>> <a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a><<a href="mailto:MSN%25253Aanthony_minessale@hotmail.com">MSN%253Aanthony_minessale@hotmail.com</a>><br>
<div class="Ih2E3d">> > ><br>
> > ><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>
> ><br>
</div>> <<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%25253Aanthony.minessale@gmail.com">PAYPAL%253Aanthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> > ><br>
> > > IRC: <a href="http://irc.freenode.net" target="_blank">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="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><<br>
> ><br>
</div>> <a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a><<a href="mailto:sip%25253A888@conference.freeswitch.org">sip%253A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> > ><br>
> > > <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> > ><br>
> <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>
> ><br>
</div>> <<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a><<a href="mailto:googletalk%25253Aconf%25252B888@conference.freeswitch.org">googletalk%253Aconf%252B888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> > ><br>
> > > pstn:213-799-1400<br>
> ><br>
> > --<br>
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit<br>
> allen:<br>
> > <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</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>
> <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>
> IRC: <a href="http://irc.freenode.net" target="_blank">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> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> <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>
<br>
--<br>
</div><div><div></div><div class="Wj3C7c">"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>
</div></div></blockquote></div><br>