DTMF (RTP Event) Problem

Hello
We are using asterisk “Asterisk CVS-Nv1-0-6-07/28/05-15:06:27”. We started to have a problem with the DTMF. This is the scenario. We receive DID’s from an external company, this DID are then routed internally to an IVR system.

External Comppany —> B2BUA (Asterisk 1.06) ----> IVR Machine (Asterisk 1.2.7).

These last few days we started to receive the RTP Events DTMF like this. For example if we press one time the “1” key :

External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)

And we receive the exact same “1” in our IVR. So far so good…

But in some cases we receive the DTMF’s not in order, like this :

External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)

And this is causing that we detect two “1” in our IVR. We also have taken the debug in our IVR, and for this event we receive :

External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)
External Company -> B2BUA (Asterisk 1.06) RTP EVENT Payload type=RTP Event, DTMF One 1 (end)

Despite that the fact that all the RTP Events have the same timestamp. it seems that Asterisk interpret them as two.

we have checked reported bugs very similar to this in :

bugs.digium.com/view.php?id=5970
bugs.digium.com/view.php?id=7758
bugs.digium.com/view.php?id=6027
bugs.digium.com/view.php?id=6667

But all the patches seems to repair the version 1.2
There’s a patch for the 1.4 version?
Can someone help me with this issue?

Thanks