Closed fukemy closed 7 months ago
Hi @fukemy,
AFAICT this is not a bug within the Engine itself, which is what this issue tracker is made for. It's not intended to ask for help. For that, you should instead head towards the Docker Forum, community Slack, etc... See here: https://www.docker.com/community/get-involved/. As such, I'll close this ticket.
But first, I'm pretty confident what you're seeing is a NAT issue. Docker Desktop is NATing connections to/from the VM. Here, 172.17.0.2
is an IP address assigned by the Engine to a container, so it's not reachable outside of DD VM. You need to either configure your software to use the host IP address, or use host networking (beta feature released in v4.29, see: https://docs.docker.com/network/drivers/host/#docker-desktop).
hi @akerouanton , thanks you for your explain, I know this but can I ask you other problem:
If I am using --net=host
so all the udp port will be ignore. But I want to use it's for SIP calling, can you give me some advices? Thanks
@akerouanton, I tried to run docker run ... --network=host...
, then I found this issue still occur
Description
Hi, I am building FreePBX inside
Docker
from https://github.com/tiredofit/docker-freepbx. I am success to register the trunk, when test the trunk I see it's only send and no receive like below:Here is the log from my
Asterisk
:It's seem the docker can not connect to internet? I am new with Docker, here is our container detail
Reproduce
Description
Expected behavior
I want to see our asterisk success to registering SIP trunk
docker version
docker info
Additional Info
let see the request content: Call flow for 1545a1a54cc9cefa1f481a8f2a9f9cb8@172.17.0.2 (Color by Request/Response) │REGISTER sip:sip.nexmo.com SIP/2.0 172.17.0.2:5160 216.147.4.2:5060 216.147.4.1:5060 │Via: SIP/2.0/UDP 172.17.0.2:5160;branch=z9hG ──────────┬───────── ──────────┬───────── ──────────┬─────────│K00d1ec17;rport ▒ 08:25:20.038289 │ REGISTER │ │ │Max-Forwards: 70 ▒ +4.000942 │ ──────────────────────────> │ │ │From: sip:234b80b8@sip.nexmo.com;tag=as189 │ 08:25:24.039231 │ REGISTER │ │ │735 │ +4.001929 │ ────────────────────────>>> │ │ │To: sip:234b80b8@sip.nexmo.com │ 08:25:28.041160 │ REGISTER │ │ │Call-ID: 1545a1a54cc9cefa1f481a8f2a9f9cb8@17 │ +0.518084 │ ────────────────────────>>> │ │ │17.0.2 │ 08:25:28.559244 │ REGISTER │ │ │CSeq: 105 REGISTER │ +0.501907 │ ──────────────────────────> │ │ │Supported: replaces, timer │ 08:25:29.061151 │ REGISTER │ │ │User-Agent: FPBX-15.0.37.4(17.9.3) │ +0.999491 │ ────────────────────────>>> │ │ │Expires: 120 │ 08:25:30.060642 │ REGISTER │ │ │Contact: sip:s@172.17.0.2:5160 │ +1.999446 │ ────────────────────────>>> │ │ │Content-Length: 0 │ 08:25:32.060088 │ REGISTER │ │ │ │ +4.003024 │ ────────────────────────>>> │ │ │ │ 08:25:36.063112 │ REGISTER │ │ │ │ +3.999811 │ ────────────────────────>>> │ │ │ │ 08:25:40.062923 │ REGISTER │ │ │ │ +3.997286 │ ────────────────────────>>> │ │ │ │ 08:25:44.060209 │ REGISTER │ │ │ │ +4.000228 │ ────────────────────────>>> │ │ │ │ 08:25:48.060437 │ REGISTER │ │ │ │ +0.512831 │ ────────────────────────>>> │ │ │ │ 08:25:48.573268 │ REGISTER │ │ │ │ │ ──────────────────────────> │ │ │ │ Esc Calls List Enter Raw Space Compare F1 Help F2 SDP F3 RTP F4 Extended s Compressed F6 Raw c Colour by 9 Increase