BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
107 stars 81 forks source link

Weird traffic (maybe STUN) getting sent to RTCP port #449

Open JonathanWilbur opened 2 days ago

JonathanWilbur commented 2 days ago

First of all, please say "Hi" or "Hello", it doesn't cost much.

Hi! This might be an SDK issue. I am not sure where the problem lies.

  1. Describe the bug (mandatory)

I am seeing weird traffic going to the RTCP port. Wireshark picks it up as STUN traffic. It doesn't have the same version bits set as RTCP. I know it is coming from the app, because I can control the peer's RTCP port number, and it seems to follow the RTCP port.

image

Also, if applicable, do you reproduce it with linphone-android latest release from the Play Store? Yes.

If the issue is about the SDK (build, issue, etc...) open the ticket in the linphone-sdk repository or one of it's submodules!

  1. To Reproduce (mandatory)

Just use Wireshark to listen on the RTCP port of the SIP server. You'll see something that doesn't appear to be RTCP coming in.

Here is a hexdump of one such packet:

0000   00 01 00 00 21 12 a4 42 0c ed e4 9d 37 e1 30 af
0010   39 05 d1 94
  1. Expected behavior (mandatory)

I expect only RTCP to be sent to the control port. Is there some specification where you are allowed to send something else to the RTCP port?

  1. Please complete the following information (mandatory)

    • Device: Google Pixel 5
    • OS: CalyxOS
    • Version of the App: 5.2.5
    • Version of the SDK: 5.3.47
    • Where you did got it from: Play Store
    • Please tell us if your Android is a Lineage OS or another variant.

If you are using a SDK that isn't the latest release, please update first as it's likely your issue is already solved.

  1. SDK logs (mandatory)

Enable debug logs in advanced section of the settings, restart the app, reproduce the issue and then go back to advanced settings, click on "Send logs" and copy/paste the link here.

https://www.linphone.org:444//tmp/673efba97bf67_adf6daebb6db40fb0a2e.gz

  1. Adb logcat logs (mandatory if native crash)

N/A

  1. Screenshots (optionnal)

Screenshot of Wireshark capture above

Thank you in advance for filling bug reports properly!

JonathanWilbur commented 1 day ago

Oh, and if timing information helps, each of the "STUN" requests happen about 500ms apart.