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

Issue creating SIP call with SDL2 Media Endpoints #1332

Open
tsiders opened this issue Feb 19, 2025 · 0 comments
Open

Issue creating SIP call with SDL2 Media Endpoints #1332

tsiders opened this issue Feb 19, 2025 · 0 comments

Comments

@tsiders
Copy link

tsiders commented Feb 19, 2025

We're having an issue switching from SIPSorceryMedia.Windows to SIPSorceryMedia.SDL2.

We're able to get the SIP call workiing fine through the Windows Media Endpoints. However, when switching to SDL2, the remote cannot hear the person running the program. The person running the program can hear the remote user just fine.

We've been able to run the RecordThenPlayback example project you have, but integrating the microphone into the SIP call has been the only challenge.

I've setup an example project here as we haven't been able to find an example of SDL2 with SipSorcery. However, I'll provide a snippet below of how we're configuring the SDL2 Endpoints.

SDL.SDL_Init(SDL.SDL_INIT_AUDIO);
List<string> recordingDeviceNames = SDL2Helper.GetAudioRecordingDevices();
List<string> playbackDeviceNames = SDL2Helper.GetAudioPlaybackDevices();

micSource = new SDL2AudioSource(recordingDeviceNames[1], new AudioEncoder());
speakerSource = new SDL2AudioEndPoint(playbackDeviceNames[0], new AudioEncoder());
MediaEndPoints mediaEndPoints = new MediaEndPoints()
{
    AudioSource = micSource,
    AudioSink = speakerSource,
};

var userAgent = new SIPUserAgent();
var voipMediaSession = new VoIPMediaSession(mediaEndPoints);
voipMediaSession.AcceptRtpFromAny = true;

I also left a comment on this issue as we had to manually install the sdl2.dll, so I may have just installed a version that you didn't build the SIPSorceryMedia.SDL2 package off of as I installed version 2.30.11.

Thanks for help in advance!

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

No branches or pull requests

2 participants