[Freeswitch-users] RFC 3263 and failing over
Joshua Gigg
giggsey at gmail.com
Thu Sep 3 20:30:06 MSD 2015
I've setup some SRV records to test failover between a few servers.
$ dig _sip._udp.testing-sip.giggsey.net SRV
;; ANSWER SECTION:
_sip._udp.testing-sip.giggsey.net. 371 IN SRV 10 0 5060
testing-sip-real.giggsey.net.
_sip._udp.testing-sip.giggsey.net. 371 IN SRV 0 0 5080
testing-sip-fake.giggsey.net.
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.
Trace from sngrep below (apologies for any formatting issues):
http://i.imgur.com/aGOBHpp.png
│
193.104.89.40:5080 178.62.61.192:5080
193.104.89.57:5060 │
──────────┬───────── ──────────┬─────────
──────────┬───────── │
▒ 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 │ <────────────────────────── │
│ │
│
Any ideas on where to start to debug?
--
Joshua Gigg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150903/4b1b69c2/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list