Hello everyone,
I'm having some issues with SIP when the VPN is active. I'm running a Docker container inside WSL. My WSL IP is 172.31.217.74, and my machine's IP is 192.168.1.77. When I connect to the VPN, I get the IP 192.168.1.129.
When I place a call, I see this log. I've tried disabling ICE, setting the public IP of the SIP server in MicroSIP, and manually specifying my local machine IP. This does change the c= and a= parameters in the SDP, but it still doesn't work.
Everything works fine without the VPN. I need the VPN active to access certain endpoints, but SIP stops working once it's connected.
INVITE sip:100@localhost;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 172.31.208.1:54367;rport;branch=z9hG4bKPjb591721e91454d2bae56a9edfc645ebe;alias Max-Forwards: 70 From: "6001" sip:6001@localhost;tag=daa078657d2949e68935f308beeb8b89 To: sip:100@localhost Contact: "6001" sip:6001@172.31.208.1:54367;transport=TCP;ob;+sip.ice Call-ID: 49c169a9e92d4b23ad70709636ccab4f CSeq: 13400 INVITE Route: sip:172.31.217.74;transport=tcp;lr Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 User-Agent: MicroSIP/3.21.6 Content-Type: application/sdp Content-Length: 1345
v=0 o=- 3962710251 3962710251 IN IP4 192.168.1.129 s=pjmedia b=AS:84 t=0 0 a=X-nat:0 m=audio 4030 RTP/AVP 8 0 96 97 98 9 99 100 101 102 103 c=IN IP4 192.168.1.129 b=TIAS:64000 a=rtcp:4001 IN IP4 192.168.1.129 ... a=ice-ufrag:1d266809 a=ice-pwd:2f7e2ef6047a47d832ed0f55 a=candidate:Hc0a80181 1 UDP 2130706431 192.168.1.129 4030 typ host a=candidate:Hc0a8014d 1 UDP 2130706175 192.168.1.77 4030 typ host a=candidate:Hc0a83801 1 UDP 2130705919 192.168.56.1 4030 typ host a=candidate:Hac1fd001 1 UDP 2130705663 172.31.208.1 4030 typ host a=candidate:Hc0a80181 2 UDP 2130706430 192.168.1.129 4001 typ host a=candidate:Hc0a8014d 2 UDP 2130706174 192.168.1.77 4001 typ host a=candidate:Hc0a83801 2 UDP 2130705918 192.168.56.1 4001 typ host a=candidate:Hac1fd001 2 UDP 2130705662 172.31.208.1 4001 typ host
Does anyone know where the problem may be?
Have you tried other softphones? Had a similar issue with MicroSIP over NAT (not using docker) and when using Zoiper all worked fine. I have always used MicroSIP, but sometimes, it can be tricky....
Atenciosamente / Kind Regards / Cordialement / Un saludo,
*Sérgio Charrua*
On Mon, Jul 28, 2025 at 6:22 PM Fernando Lopes via sr-users < sr-users@lists.kamailio.org> wrote:
Hello everyone,
I'm having some issues with SIP when the VPN is active. I'm running a Docker container inside WSL. My WSL IP is 172.31.217.74, and my machine's IP is 192.168.1.77. When I connect to the VPN, I get the IP 192.168.1.129.
When I place a call, I see this log. I've tried disabling ICE, setting the public IP of the SIP server in MicroSIP, and manually specifying my local machine IP. This does change the c= and a= parameters in the SDP, but it still doesn't work.
Everything works fine without the VPN. I need the VPN active to access certain endpoints, but SIP stops working once it's connected.
INVITE sip:100@localhost;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 172.31.208.1:54367 ;rport;branch=z9hG4bKPjb591721e91454d2bae56a9edfc645ebe;alias Max-Forwards: 70 From: "6001" sip:6001@localhost;tag=daa078657d2949e68935f308beeb8b89 To: sip:100@localhost Contact: "6001" sip:6001@172.31.208.1:54367;transport=TCP;ob;+sip.ice Call-ID: 49c169a9e92d4b23ad70709636ccab4f CSeq: 13400 INVITE Route: sip:172.31.217.74;transport=tcp;lr Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 User-Agent: MicroSIP/3.21.6 Content-Type: application/sdp Content-Length: 1345
v=0 o=- 3962710251 3962710251 IN IP4 192.168.1.129 s=pjmedia b=AS:84 t=0 0 a=X-nat:0 m=audio 4030 RTP/AVP 8 0 96 97 98 9 99 100 101 102 103 c=IN IP4 192.168.1.129 b=TIAS:64000 a=rtcp:4001 IN IP4 192.168.1.129 ... a=ice-ufrag:1d266809 a=ice-pwd:2f7e2ef6047a47d832ed0f55 a=candidate:Hc0a80181 1 UDP 2130706431 192.168.1.129 4030 typ host a=candidate:Hc0a8014d 1 UDP 2130706175 192.168.1.77 4030 typ host a=candidate:Hc0a83801 1 UDP 2130705919 192.168.56.1 4030 typ host a=candidate:Hac1fd001 1 UDP 2130705663 172.31.208.1 4030 typ host a=candidate:Hc0a80181 2 UDP 2130706430 192.168.1.129 4001 typ host a=candidate:Hc0a8014d 2 UDP 2130706174 192.168.1.77 4001 typ host a=candidate:Hc0a83801 2 UDP 2130705918 192.168.56.1 4001 typ host a=candidate:Hac1fd001 2 UDP 2130705662 172.31.208.1 4001 typ host
Does anyone know where the problem may be? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Tried but is not working, the problem is that is all happening locally, if I turn off "Use default gateway on remote network" in my vpn connection it works, but then I lose access to resources that I need that need vpn connection. Also I don't know if simple modifications on microSip account settings will resolve the error. I currently have SIP Server: 10.5.0.2:5060(Ast IP), Sip Proxy: 172.31.217.74(Podman WSL IP), Domain: Localhost, I've tried setting public address to my machine ip but nothing.
Hi,
Is the VPN taking UDP traffic? is the MTU for the UDP the correct size on the VPN. if the traffic is working without the VPN involved and then the VPN is breaking it, it suggests the VPN is either not routing the traffic or its getting blocked somewhere.
I suggst running sngrep with RTP capture enables and seiing if the traffic is reacing the endpoint
Regard,
Richard
On 29/07/2025 16:49, Fernando Lopes via sr-users wrote:
Tried but is not working, the problem is that is all happening locally, if I turn off "Use default gateway on remote network" in my vpn connection it works, but then I lose access to resources that I need that need vpn connection. Also I don't know if simple modifications on microSip account settings will resolve the error. I currently have SIP Server: 10.5.0.2:5060(Ast IP), Sip Proxy: 172.31.217.74(Podman WSL IP), Domain: Localhost, I've tried setting public address to my machine ip but nothing. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
I agree and would try sngrep on command line to watch what’s happening when you make the call
Otherwise wireshark if it’s windows
Looking at the traces will usually show you what’s being misunderstood.
On 30 Jul 2025, at 6:29 AM, Richard Robson via sr-users sr-users@lists.kamailio.org wrote:
Hi,
Is the VPN taking UDP traffic? is the MTU for the UDP the correct size on the VPN. if the traffic is working without the VPN involved and then the VPN is breaking it, it suggests the VPN is either not routing the traffic or its getting blocked somewhere.
I suggst running sngrep with RTP capture enables and seiing if the traffic is reacing the endpoint
Regard,
Richard
On 29/07/2025 16:49, Fernando Lopes via sr-users wrote: Tried but is not working, the problem is that is all happening locally, if I turn off "Use default gateway on remote network" in my vpn connection it works, but then I lose access to resources that I need that need vpn connection. Also I don't know if simple modifications on microSip account settings will resolve the error. I currently have SIP Server: 10.5.0.2:5060(Ast IP), Sip Proxy: 172.31.217.74(Podman WSL IP), Domain: Localhost, I've tried setting public address to my machine ip but nothing. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Fixed the issue by stopping my podman machine stop and then podman machine set --user-mode-networking.