Skip to content

Issue creating SIP call with SDL2 Media Endpoints #1332

Open
@tsiders

Description

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!

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions