[SR-Users] sip-router 3.0.99 newbe question
Rouskol Andrey
anry-dev at yandex.ru
Mon Sep 27 14:37:11 CEST 2010
Hello,
Could somebody check if default ser.cfg file is correct in the following section:
route[AUTHENTICATION]
{
....
# check if the UID from the authentication meets the From header
$authuid = $uid;
if (!lookup_user("$fu.uid", "@from.uri")) {
xlog("L_INFO","fu.uid lookup failed\n");
del_attr("$uid");
}
if ($fu.uid != $fr.authuid) {
sl_reply("403", "Fake Identity");
drop;
}
..
Because it didn't work for me till I've replaced:
if (!lookup_user("$fu.uid", "@from.uri")) {
with:
if (!lookup_user("$fr.uid", "@from.uri")) {
Best regards,
Andrey
More information about the sr-users
mailing list