testing-sip-fake is a FreeSWITCH box, configured to hangup every inbound call with 503: NETWORK_OUT_OF_ORDER.
testing-sip-real will accept traffic from this server, and actually connect to something.
When I make a call via FreeSWITCH (latest master), it sends the INVITE to testing-sip-fake, which responds correctly. FreeSWITCH does not ACK the 503, but sends the INVITE to testing-sip-real.
testing-sip-real responds with a 200, but FreeSWITCH sends the ACK to testing-sip-fake.
│
──────────┬───────── ──────────┬───────── ──────────┬───────── │
▒ 17:06:29.054095 │ INVITE (SDP) │ │ │
▒ +0.016957 │ ──────────────────────────> │ │ │
▒ 17:06:29.071052 │ 100 Trying │ │ │
▒ +0.004131 │ <────────────────────────── │ │ │
▒ 17:06:29.075183 │ 503 Service Unavailable │ │ │
▒ +0.005387 │ <────────────────────────── │ │ │
▒ 17:06:29.080570 │ INVITE (SDP) │ │
▒ +0.003829 │ ────────────────────────────────────────────────────────> │ │
▒ 17:06:29.084399 │ 100 Giving a try │ │
▒ +0.491453 │ <──────────────────────────────────────────────────────── │ │
▒ 17:06:29.575852 │ 503 Service Unavailable │ │ │
▒ +1.000255 │ <────────────────────────── │ │ │
▒ 17:06:30.576107 │ 503 Service Unavailable │ │ │
▒ +2.000364 │ <<<──────────────────────── │ │ │
▒ 17:06:32.576471 │ 503 Service Unavailable │ │ │
▒ +2.662937 │ <<<──────────────────────── │ │ │
▒ 17:06:35.239408 │ 183 Session Progress (SDP) │ │
▒ +1.155243 │ <──────────────────────────────────────────────────────── │ │
▒ 17:06:36.394651 │ 183 Session Progress (SDP) │ │
▒ +0.093683 │ <<<────────────────────────────────────────────────────── │ │
▒ 17:06:36.488334 │ 180 Ringing (SDP) │ │
▒ +0.088306 │ <──────────────────────────────────────────────────────── │ │
▒ 17:06:36.576640 │ 503 Service Unavailable │ │ │
▒ +1.936790 │ <────────────────────────── │ │ │
▒ 17:06:38.513430 │ 200 OK (SDP) │ │
▒ +0.010268 │ <──────────────────────────────────────────────────────── │ │
│ 17:06:38.523698 │ ACK │ │ │
│ +0.489731 │ ──────────────────────────> │ │ │
│ 17:06:39.013429 │ 200 OK (SDP) │ │
│ +0.000296 │ <──────────────────────────────────────────────────────── │ │
│ 17:06:39.013725 │ ACK │ │ │
│ +0.999795 │ ──────────────────────────> │ │ │
│ 17:06:40.013520 │ 200 OK (SDP) │ │
│ +0.000282 │ <──────────────────────────────────────────────────────── │ │
│ 17:06:40.013802 │ ACK │ │ │
│ +0.562804 │ ──────────────────────────> │ │ │
│ 17:06:40.576606 │ 503 Service Unavailable │ │ │
│ +1.436391 │ <────────────────────────── │ │ │
│ 17:06:42.012997 │ 200 OK (SDP) │ │
│ +0.000149 │ <──────────────────────────────────────────────────────── │ │
│ 17:06:42.013146 │ ACK │ │ │
│ +2.564912 │ ──────────────────────────> │ │ │
│ 17:06:44.578058 │ 503 Service Unavailable │ │ │
│ +0.685651 │ <────────────────────────── │ │ │
│ 17:06:45.263709 │ BYE │ │ │
│ +0.016618 │ ──────────────────────────> │ │ │
│ 17:06:45.280327 │ 481 Call Does Not Exist │ │ │
│ +0.730549 │ <────────────────────────── │ │ │
│