Hello,<br><br>I am using dialog to store cdr into mysql DB. It works fine. However, today I tried to add failover capability and found that it didn&#39;t work as expected. When the first gateway answers the call, it gets accounted fine. But if it goes through to failure_route[2] and hits the alternative gateway, the call is not accounted.<br>
<br>What am I missing?<br><br>I am doing this:<br><br>route {<br><br>if(is_method(&quot;CANCEL|INFO|BYE|ACK&quot;)) {<br>    match_dialog(); t_relay(); exit; }<br><br>t_check_trans();<br>        <br>if(!is_method(&quot;INVITE&quot;)) {<br>
        sl_send_reply(&quot;503&quot;, &quot;Unsupported method&quot;); exit; }<br>        <br>if(!has_totag()) {<br>        topology_hiding();<br>        engage_rtp_proxy(&quot;o&quot;);<br>        setflag(2); # CDR<br>        setflag(1); # Log<br>
} else<br>        match_dialog();<br><br>t_on_failure(&quot;2&quot;);<br><br>$ru = &quot;<a href="http://sip:1234@192.168.0.50:5060">sip:1234@192.168.0.50:5060</a>&quot;;<br><br>if(!t_relay())<br>        { sl_reply_error(); exit; }<br>
<br>}<br><br>failure_route[2] {<br><br>$ru = &quot;<a href="http://sip:1234@192.168.0.51:5060">sip:1234@192.168.0.51:5060</a>&quot;;<br>t_relay();<br><br>}<br><br><br>Any clues on what I am doing wrong?<br><br>I found this recent patch for acc module that may be related with this:<br>
<br><a href="http://sourceforge.net/tracker/download.php?group_id=232389&amp;atid=1086412&amp;file_id=452775&amp;aid=3565679">http://sourceforge.net/tracker/download.php?group_id=232389&amp;atid=1086412&amp;file_id=452775&amp;aid=3565679</a><br>
<br>Thanks for any advice<br><br>Regards<br>Alex<br><br>