[OpenSIPS-Users] do_routing() to rewrite target URI, BYE / CANCEL / ACK ?

Julien Chavanton jc at atlastelecom.com
Fri Jul 23 20:47:48 CEST 2010


Hi, when using Dynamic routing, we call do_routing() to rewrite target URI, we can not do it on BYE / CANCEL / ACK ?
 
Is this a correct way to handle CANCEL, ACK and BYE when using Drouting ?
 
        ....
        if (is_method("CANCEL") || is_method("ACK")){
                if(t_check_trans()){
                        t_relay();
                }
                exit;
        }
        else if (is_method("BYE")){
                t_relay();
                exit;
        }
        else{
                if(!do_routing()) {
                sl_send_reply("503", "No destination available");
                exit;
                }
        }
        .....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100723/5e73784d/attachment.htm 


More information about the Users mailing list