[Kamailio-Users] registrar lookups without reason
Juha Heinanen
jh at tutpro.com
Tue Sep 1 09:52:13 CEST 2009
Juha Heinanen writes:
> ...
> xlog("L_INFO", "INFO: : Request URI when leaving Initial_Tasks: <$ru>\n");
> route(2);
i changed that to
$avp(REQUEST_URI_AVP) = $ru;
xlog("L_INFO", "INFO: EXTR: Request URI when leaving Initial_Tasks: <$ru>\n");
route(2);
and in front of route block 2:
route [2] {
xlog("L_INFO", "INFO: EXTR: Request URI when entering Other_Requests: <$ru>\n");
if (!is_avp_set("$avp(REQUEST_URI_AVP)")) {
$avp(REQUEST_URI_AVP) = $ru;
} else {
$ru = $avp(REQUEST_URI_AVP);
};
and the calls that kept on failing started to work!
something is seriously wrong, however, because there should not be any
need to save/restore request uri from being modified by lookup()
function that is not explicitly called by the script.
-- juha
More information about the sr-users
mailing list