Skip to content

Audio issue, probably NAT related #18

@richard-tkg

Description

@richard-tkg

Summary:
I have built a simple WPF app using sipdotner, and calls both inbound and outbound are working. However, audio is not present for outbound calls.

Details:
Linphone works fine on the same PC, but an app built on sipdotnet has no audio for outbound calls.
It appears that the SDP packet has the internal IP of the machine from which the call is placed.
Screen cap of sngrep is here: https://cloud.branham.us/apps/gallery/s/Id1kajHUg5iMvRz

It's almost certainly a NAT issue, of course, but so far I've been unable to properly send the external IP in the SDP packet. I've tried several different ways to set a STUN server address and enable its usage but nothing so far has worked. Since I know the hostname/IP of the machine to which I'm connecting, I'd like to try setting an explicit value for the address just to confirm that this is the issue, but I haven't been able to do that, either.

The source code is at https://cloud.branham.us/s/RTpEdob706R0uWi. The area in the code where I'm setting up STUN is near the bottom of the CreatePhone method. I pasted a copy of the method at the top of the source file to make it easier to find.

Any help you can offer would be greatly appreciated!
Richard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions