Hello

 

Try to use failed_transaction_flag

http://www.opensips.org/html/docs/modules/devel/acc.html#id292642

 

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Wesley Volcov
Sent: Thursday, April 28, 2011 4:13 PM
To: OpenSIPS users mailling list
Subject: [OpenSIPS-Users] missed_calls doubt

 

Dear List,

I use my opensips, to make the routes based on prefix received and send the 
call to the termination carrier based on a lcr configured with dr_route module.
I have 2 route to each prefix. When I receive an error from the fist carrier, 
the opensips set the missed_call flag, and send the call to second carrier. If 
the second carrier send an error, the opensips set the missed_call flag again 
and relay this error to the user that made the call. In my missed_call table, I 
just see the second error, but I need to see both. How can I do this ?

Follow my failure route:

failure_route[1] {

        xlog("FailureRoute entered");
        setflag(10); #accounting missed calls
        if (t_check_status("(487)|(486)")) {
                xlog"FailureRoute: $rm exited");
                exit;
        } else if(!next_routing()) {
                        xlog("FailureRoute: no more gateways available.");
                }
        route(1);
}


route[1] {

        t_on_reply("ONREPLY");
        if (!t_relay()) {
                sl_reply_error();
        };

        exit;
}

Regards,

-- 
Wesley Volcov
Email: wesleyvol...@gmail.com
Messenger: vol...@live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to