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

SDP misformat in VoIP example (AUD-5147) #1133

Open
matz-9 opened this issue Jan 17, 2024 · 2 comments
Open

SDP misformat in VoIP example (AUD-5147) #1133

matz-9 opened this issue Jan 17, 2024 · 2 comments

Comments

@matz-9
Copy link

matz-9 commented Jan 17, 2024

Environment

  • Audio development kit: ESP32-LyraT
  • Audio kit version v4.3
  • Module or chip used: ESP32-WROVER-E
  • IDF version: v4.4 or v5.1.2-602-gdb1e54a0c5
  • ADF version: v2.6-52-gdd204c42
  • Build system: idf.py
  • Compiler version (crosstool-NG esp-2021r2) 8.4.0 or (crosstool-NG esp-12.2.0_20230208) 12.2.0
  • Operating system: Linux
  • Using an IDE?: No
  • Power supply: USB

Problem Description

When I encountered the problem, I was running some voip call tests (using the VoIP example project) between 2 sip clients (ESP32 SIP and Linphone) connected to a Kamailio proxy server. The call from LyraT to Linphone client works fine, the problem occurs when, from the Linphone client, one tries to make a call to LyraT, as it (ESP SIP client) sends a badly formatted SDP packet: specifically the session ID is set to "Z" instead of the acutal values.

Expected Behavior

Filling in SDP fields with the correct values

Actual Behavior

Compilation of some SDF fields with "Z"

Steps to Reproduce

Clone and Run VoIP example

Code to Reproduce This Issue

VoIP example in ADF

Debug Logs

Some logs to clarify the issue:

linphonec> Call 3 to sip:[email protected];realFrom=65001 ringing.
2024-01-16 17:55:02:743 ortp-error-session_description parser error for [v=0
o=Z 0 3 IN IP4 192.168.1.93
s=Z
t=0 0
c=IN IP4 192.168.1.93
m=audio 31362 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
]

Other Items

image

Thank you for your attention. I'm doing a thesis project with this, please let me know if your are planning to work on it.

@github-actions github-actions bot changed the title SDP misformat in VoIP example SDP misformat in VoIP example (AUD-5147) Jan 17, 2024
@ahhfzhang
Copy link
Contributor

Hi @matz-9 ,

We don't support linphone yet but I don't think that may be the reason here as other servers or clients or even protocol standards don't require this, but you can try using twilio which is a fully supported service by us .

br.

@matz-9
Copy link
Author

matz-9 commented Feb 29, 2024

Hi @ahhfzhang,

you are right. That wasn't the problem here, but we got to the bottom of it! And if it helps, we found out that the problem with linphone can be solved by reversing the (t) and (c) fields, so (t) under (c), in the SDP offer of the ESP when it receives an incoming call.

Screenshot from 2024-02-29 16-45-12

Like that.

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