[OpenSIPS-Users] missed_calls doubt

Denis Putyato denis7979 at mail.ru
Thu Apr 28 15:15:02 CEST 2011


I am using and failed_transaction_flag and db_missed_flag 

for marking calls and I do not see any problem with sip_code while using next_routing()

 

From: Wesley Volcov [mailto:wesleyvolcov at gmail.com] 
Sent: Thursday, April 28, 2011 4:33 PM
To: Denis Putyato
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] missed_calls doubt

 

Denis,

I already tried this, but sip_code field doens't have value.  I need this value.

Any ideas ?

Thanks

On 28 April 2011 09:17, Denis Putyato <denis7979 at mail.ru> wrote:

Hello

 

Try to use failed_transaction_flag

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

 

From: users-bounces at lists.opensips.org [mailto:users-bounces at 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: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com




-- 
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/f83d5c3b/attachment-0001.htm>


More information about the Users mailing list