[OpenSIPS-Users] missed_calls doubt

Wesley Volcov wesleyvolcov at gmail.com
Thu Apr 28 14:12:30 CEST 2011


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: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110428/c26bfc21/attachment.htm>


More information about the Users mailing list