linphone-android icon indicating copy to clipboard operation
linphone-android copied to clipboard

Odd situation with DTMF type selection seems to be inverted

Open ParticleCore opened this issue 1 year ago • 2 comments

Hi, I've been debugging an issue with DTMF not being recognized in our internal system only to find out that the SDK might be inverting the logic internally.

Current scenario is our SIP system uses RFC 2833 for the DTMF, and I was able to confirm this today using MicroSip with the RFC 2833 method selected

image

Testing it in our automated menu system confirmed the DTMF signals were being sent and received correctly, I was able to navigate the menu. If I switch to SIP Info then I am not able to navigate the menu, any signals sent are ignored.

However, when trying the exact same test using the Play Store and SDK, this did not work, any attempts were ignored and I was not able to navigate the menu.

Then I switched RFC 2833 off and turned SIP Info on and now I was able to send the signals correctly and navigate the menu

image

image

This behavior was exactly the same between the SDK and the Play Store Linphone app 5.2.4

I tried inspecting the app code but I could not go past the setting being set in the UI, and any digging into the SDK ends at the native code which I cannot go past.

Is it possible that internally the SDK is sending the wrong tones? When SIP Info is enabled, it is actually sending RFC 2833 and vice versa? Because I cannot reach any other conclusion at this time.

ParticleCore avatar Apr 24 '24 17:04 ParticleCore

Hi @ParticleCore,

Could you attach logs from a Linphone call sending DTMFs with SIP INFO enabled please? I believe that your endpoint also accepts SIP INFO (that's why it works), but for some SIP offer/answer issue the RFC2833 doesn't get negociated properly.

Cheers,

Viish avatar Apr 25 '24 06:04 Viish

Maybe your issue will be fixed by this: https://gitlab.linphone.org/BC/public/linphone-sdk/-/merge_requests/4262

Viish avatar Apr 25 '24 14:04 Viish

@Viish I've been waiting to see that included in a new release, but I couldn't see where it would mention that. Is there a version out already with that fix so I can test it out to see if this issue has been resolved as well?

ParticleCore avatar May 07 '24 14:05 ParticleCore

Hi @ParticleCore,

Fix is part of 5.2.5 release currently published on Play Store.

Cheers,

Viish avatar May 07 '24 14:05 Viish

Hi @Viish thanks for the update, the linphone app now works when sending the tones while SIP INFO is off and RFC 2833 is enabled.

Is there any specific SDK version that has that fix included so I can test it on the local integration?

ParticleCore avatar May 07 '24 14:05 ParticleCore

the linphone app now works

Great!

Is there any specific SDK version that has that fix included so I can test it on the local integration?

Fix was added in 5.3.45, latest SDK releaseis 5.3.47.

Viish avatar May 07 '24 14:05 Viish

@Viish thank you, just tested it on that version and it is working as well, much appreciated!

ParticleCore avatar May 07 '24 14:05 ParticleCore