[OpenSIPS-Users] Forward on Busy

Pepe Nai pepenai at gmail.com
Fri Mar 23 10:53:41 CET 2012


Hi,

i'm using kamailio 3.1.0 and i can't solve this issue. When i try to forward
all the calls works perfectly, but when i try to forward the call to another
location when the receiver is busy don't work. This is the code, any kind of
help will be apreciated.

I think that the fail is in the append_branch() because the recall never is
made.

# Sample failure route
failure_route[FAIL_ONE] {
xlog("L_INFO", "entering failure_route for reply code $T_reply_code\n");

        if (is_method("INVITE") && (isbflagset(FLB_NATB) ||
isflagset(FLT_NATS))) {
                unforce_rtp_proxy();
        }

        if (t_is_canceled()) {
                exit;
        }

        if (t_check_status("486|408"))
        {
                xlog("L_NOTICE", "r[FAIL] / &ru TimeOut or Busy\n");
               
                if(avp_db_load("$ru/username","$avp(s:callbusy)"))
                {
                        xlog("L_NOTICE", "Callbusy activado!\n");
                        avp_pushto("$ru", "$avp(s:callbusy)");
                                                       
                        xlog("L_NOTICE","$ru\n");
                        append_branch();
                        }
                t_relay();
        }
} 

--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Forward-on-Busy-tp7398116p7398116.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list