[OpenSIPS-Users] no acc after failure_route in 1.8

Binan AL Halabi binanalhalabi at yahoo.com
Tue Oct 2 23:44:12 CEST 2012


Hi,

Add setflag(2) before t_relay() in failure_route[2].


//Binan


________________________________
 From: Alex <alexstdb at gmail.com>
To: users at lists.opensips.org 
Sent: Tuesday, October 2, 2012 9:35 PM
Subject: [OpenSIPS-Users] no acc after failure_route in 1.8
 

Hello,

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'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.

What am I missing?

I am doing this:

route {

if(is_method("CANCEL|INFO|BYE|ACK")) {
    match_dialog(); t_relay(); exit; }

t_check_trans();
        
if(!is_method("INVITE")) {
        sl_send_reply("503", "Unsupported method"); exit; }
        
if(!has_totag()) {
        topology_hiding();
        engage_rtp_proxy("o");
        setflag(2); # CDR
        setflag(1); # Log
} else
        match_dialog();

t_on_failure("2");

$ru = "sip:1234 at 192.168.0.50:5060";

if(!t_relay())
        { sl_reply_error(); exit; }

}

failure_route[2] {

$ru = "sip:1234 at 192.168.0.51:5060";
t_relay();

}


Any clues on what I am doing wrong?

I found this recent patch for acc module that may be related with this:

http://sourceforge.net/tracker/download.php?group_id=232389&atid=1086412&file_id=452775&aid=3565679

Thanks for any advice

Regards
Alex


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121002/3a353501/attachment.htm>


More information about the Users mailing list