From notifications@github.com Mon Jun 15 10:09:06 2015 From: Alex To: sr-dev@lists.kamailio.org Subject: [sr-dev] [kamailio] uac module (uac_req_send, register) doesn't do failover (#210) Date: Mon, 15 Jun 2015 01:08:57 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0756593870==" --===============0756593870== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Requests send with uac module's functions like uac_req_send() and remote regi= strations use the TM module, but don't actually do (DNS) failover when a dest= ination is unreachable or sends a 503. In the tm's uac.c, t_uac_prepare() function, i can already see that the dns h= andle is stored in a throwaway variable instead of in the transaction, but fi= xing the issue isn't as simple as just storing it in the transaction (print_u= ac_request_from_buf() needs a uas in the transaction). Due to github not supporting attachments to issues, the sample config and deb= ug log are inline.... :( DNS entry: ``` $ host -t SRV _sip._udp.failover.test.speakup.nl _sip._udp.failover.test.speakup.nl has SRV record 10 0 1111 try1.test.speakup= .nl. _sip._udp.failover.test.speakup.nl has SRV record 100 0 2222 try2.test.speaku= p.nl. ``` Log snippet: ```syslog Jun 15 10:00:03 rio UACFailover[18178]: INFO: