[OpenSIPS-Users] loose_route and $du
    Bogdan-Andrei Iancu 
    bogdan at voice-system.ro
       
    Wed Oct 13 21:53:42 CEST 2010
    
    
  
Hi Stefano,
yes, it is possible - if the request does not have any other Route hdr 
to indicate the next hope, routing based on RURI will be done, so the 
"loose_route" function will not set any $du (destination URI) - this du 
is actually a kind of outbound proxy used by opensips when it wants to 
send the request to other destination than RURI.
Such a case is when your opensips is the last hop before the end client.
Regards,
Bogdan
Stefano Sasso wrote:
> Hello,
>   sorry for the newbie stupid question.
>
> Is it normal that after a loose_route() the $du is set to null?
>
> this is my config:
> if (loose_route()) {
>                         if (is_method("BYE")) {
>                                 setflag(1); # do accounting ...
>                                 setflag(3); # ... even if the transaction fails
>                         } else if (is_method("INVITE")) {
>                                 # even if in most of the cases is
> useless, do RR for
>                                 # re-INVITEs alos, as some buggy
> clients do change route set
>                                 # during the dialog.
>                                 record_route();
>                         }
>                         # route it out to whatever destination was set
> by loose_route()
>                         # in $du (destination URI).
>                         xlog("[LOOSE_ROUTE] from $si:$sp method $rm
> SET_DESTINATION $du");
>                         route(1);
> }
>
> in my log file I have:
> Oct 13 12:09:42 TDCVIRX09 /usr/local/sbin/opensips[17647]:
> [LOOSE_ROUTE] from 192.168.6.132:10002 method BYE SET_DESTINATION
> <null>
>
> thanks
>
>   
-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
    
    
More information about the Users
mailing list