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

Julien Chavanton jc at atlastelecom.com
Thu Jul 29 19:21:52 CEST 2010


Thank you both for your highlight,
 
Under some cirtcumstances, it is possible to have transcation failure, I would still like to forward CANCEL.
To protect billing, do you think this could be acceptable :
 
 
 if ( is_method("CANCEL")) {
        end_media_session();
        if ( t_check_trans() ){
                t_relay();
        }
        else{
                if(do_routing())
                        t_relay();
        }
        exit;
 }
 
I will check this webinar as well.
 
 

________________________________

From: users-bounces at lists.opensips.org on behalf of Bogdan-Andrei Iancu
Sent: Thu 29/07/2010 4:10 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] do_routing() to rewrite target URI, BYE / CANCEL / ACK ?



As Brett said, the routing is explicitly done for initial requests only
- for INVITEs in your case...

See the Routing in SIP webinar :
http://www.opensips.org/Resources/Webinars#toc11

Regards,
Bogdan

Julien Chavanton wrote:
> 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;
>                 }
>         }
>         .....
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100729/b60324f6/attachment.htm 


More information about the Users mailing list