[OpenSIPS-Users] loose_route and $du
Stefano Sasso
stesasso at gmail.com
Wed Oct 13 12:23:50 CEST 2010
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
--
Stefano Sasso
http://stefano.dscnet.org/
More information about the Users
mailing list