[OpenSIPS-Users] do_routing() to rewrite target URI, BYE / CANCEL / ACK ?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Jul 29 17:10:57 CEST 2010
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
More information about the Users
mailing list