Hi,
This is my setup: Phones -> PBX -> NAT -> Public Internet -> SIP Provider.
My Firewall / Router is OpenBSD with UPNP.
I am registered with my sip provider via TCP. Expire seconds is set to 600 and keeps this way the connection open. I made UPNP only to open ports for RTP which works fine for inbound and outbound calls depending on my settings.
But now here is something what I dont understand. Internal and external profile should be set as following
Internal profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
External profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
But this is not working for inbound calls. For Inbound calls I get only one way audio. When I change it to the following, audio is working in both directions.
Internal profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
External profile
ext-sip-ip = auto-nat OR "LAN-IP" can be both, makes no difference
ext-rtp-ip = "LAN IP" otherwise it is not working
The odd thing is, that with this configuration the echo application is not working and early media is also not working.
So I looked at everything in Wireshark. For normal voice calls:
When I set ext-rtp-ip (external) to auto-nat. The SIP OK message has the external IP in it. But the media stream from my provider is send to the local IP.
Changing ext-rtp-ip (external) to LAN IP makes it work.
When I looked at the echo application for some reason there can't be an RTP stream established. The SIP provider just keeps sending INVITE Messages and receives an OK message back. The RTP port is opened in the Firewall but not stream is arriving. Similar things happen with early media. But when I pick up the phone I have audio in both directions.
When I change ext-rtp-ip (external) to auto-nat, echo is working.
Where is my mistake ? I dont understand it
Best regards,
Paul
This is my setup: Phones -> PBX -> NAT -> Public Internet -> SIP Provider.
My Firewall / Router is OpenBSD with UPNP.
I am registered with my sip provider via TCP. Expire seconds is set to 600 and keeps this way the connection open. I made UPNP only to open ports for RTP which works fine for inbound and outbound calls depending on my settings.
But now here is something what I dont understand. Internal and external profile should be set as following
Internal profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
External profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
But this is not working for inbound calls. For Inbound calls I get only one way audio. When I change it to the following, audio is working in both directions.
Internal profile
ext-sip-ip = auto-nat
ext-rtp-ip = auto-nat
External profile
ext-sip-ip = auto-nat OR "LAN-IP" can be both, makes no difference
ext-rtp-ip = "LAN IP" otherwise it is not working
The odd thing is, that with this configuration the echo application is not working and early media is also not working.
So I looked at everything in Wireshark. For normal voice calls:
When I set ext-rtp-ip (external) to auto-nat. The SIP OK message has the external IP in it. But the media stream from my provider is send to the local IP.
Changing ext-rtp-ip (external) to LAN IP makes it work.
When I looked at the echo application for some reason there can't be an RTP stream established. The SIP provider just keeps sending INVITE Messages and receives an OK message back. The RTP port is opened in the Firewall but not stream is arriving. Similar things happen with early media. But when I pick up the phone I have audio in both directions.
When I change ext-rtp-ip (external) to auto-nat, echo is working.
Where is my mistake ? I dont understand it

Best regards,
Paul