Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On some Android devices, the SIP connection failed #422

Open
ax3726 opened this issue Aug 27, 2024 · 7 comments
Open

On some Android devices, the SIP connection failed #422

ax3726 opened this issue Aug 27, 2024 · 7 comments

Comments

@ax3726
Copy link

ax3726 commented Aug 27, 2024

Hello !
On some Android devices, the SIP connection failed, I don't know why, the following is the LinPhone client logs, can you help take a look
android_linphone_log.gz

@Viish
Copy link
Member

Viish commented Aug 27, 2024

Hi,
It's possible that your INVITE packets are too big for UDP and are getting lost.
It's also possible the answer to the INVITE is ill-formated given all those errors:

2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:650 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:651 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:660 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:660 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:720 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:720 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:760 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:760 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97

Anyway this ticket isn't for this repository, I'll transfer it to the proper one.
In the meantime switch to TCP or TLS to confirm it's due to UDP or not.

Cheers,

@Viish Viish transferred this issue from BelledonneCommunications/linphone-android Aug 27, 2024
@ax3726
Copy link
Author

ax3726 commented Aug 27, 2024

Hi, It's possible that your INVITE packets are too big for UDP and are getting lost. It's also possible the answer to the INVITE is ill-formated given all those errors:

2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:620 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:650 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:651 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:660 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:660 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:680 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:720 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:720 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:760 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:760 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:790 [org.linphone.debug/ortp] WARNING Receiving packet with unknown payload type 97.
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97
2024-08-27 13:54:32:791 [org.linphone.debug/mediastreamer] WARNING Discarding packet with unknown payload type 97

Anyway this ticket isn't for this repository, I'll transfer it to the proper one. In the meantime switch to TCP or TLS to confirm it's due to UDP or not.

Cheers,

How do I switch to the TCP transport protocol ?

@ax3726
Copy link
Author

ax3726 commented Aug 27, 2024

I confirmed that the transfer protocol of the SIP server is TCP

@ax3726
Copy link
Author

ax3726 commented Aug 27, 2024

I didn't sign up with a SIP account, I used a peer-to-peer connection

@Viish
Copy link
Member

Viish commented Aug 27, 2024

You can do TCP over peer to peer, simply add ;transport=tcp to called SIP URI or use address.setTransport(TransportType.Tcp).

@ax3726
Copy link
Author

ax3726 commented Aug 27, 2024

您可以通过点对点进行 TCP 连接,只需添加;transport=tcp到被叫 SIP URI 或使用即可address.setTransport(TransportType.Tcp)

After switching to TCP, I can connect, but the connection lasts for a period of time and the call automatically hangs up, what is the reason for this? The following is the log of the two devices, device 1 lasts for a short time, device 2 lasts for a long time, I suspect it is not caused by the same reason, please help to see
android_device1_linphone_log.gz
android_device2_linphone_log.gz

@ax3726
Copy link
Author

ax3726 commented Aug 27, 2024

In addition, the remote screen cannot be previewed after device 1 is connected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants