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

[1.x] SIP plugin "Couldn't connect audio RTP? -- 22 (Invalid argument)" #3370

Closed
Pineappluh opened this issue May 8, 2024 · 5 comments
Closed
Labels
multistream Related to Janus 1.x

Comments

@Pineappluh
Copy link

Pineappluh commented May 8, 2024

What version of Janus is this happening on?
1.2.3

Have you tested a more recent version of Janus too?
It's the latest version.

Was this working before?
No.

Is there a gdb or libasan trace of the issue?
Max level debug logs: https://pastebin.com/4SBywC8E

Additional context
I'm on macOS Sonoma (version 14.41). I'm trying to create a PoC where I connect a softphone from the browser to a FreeSwitch we have running in our VPN. I am running Janus locally on my machine and I set up the softphone using JS SIP demo code. I'm able to register as a client to the FreeSwitch fine. However, when I make a call (I'm using audio only), I can hear audio, but I can't send any audio as I'm seeing the audio error.

@Pineappluh Pineappluh added the multistream Related to Janus 1.x label May 8, 2024
@lminiero
Copy link
Member

lminiero commented May 8, 2024

I don't use MacOS so I don't know what it is that it doesn't like. It may be our usage of sockaddr_storage, since I seem to remember MacOS not liking using the same socket for both IPv4 and IPv6. Try changing the sizeof(struct sockaddr_storage) that is in the connect() calls to sizeof(struct sockaddr_in), since I see IPv4 is being used in your case. If that fixes it, we'll see how we can prepare a proper fix.

@Pineappluh
Copy link
Author

I've tried doing that now, but I'm still getting the same error. Any other ideas?

@lminiero
Copy link
Member

lminiero commented May 8, 2024

Did you do a make install after editing the code? If so, then no, I don't have other ideas, as I don't know which of the fields connect on MacOS thinks are illegal. They're definitely fine on Linux.

@Pineappluh
Copy link
Author

I did, it was recompiled. I'm not the best with C, but I guess I'll try to dig and find the root cause myself. If any other ideas come up please let me know

@Pineappluh
Copy link
Author

I decided to run the gateway in Docker with a Linux distro instead and it works now! Fixing the issue was too difficult

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

No branches or pull requests

2 participants