That should be couched in an if(method=="REGISTER") block.
In such a way, it would never GET an INVITE
N.
On Mon, 17 Oct 2005 10:22:09 +1300, Patrick Jordan-Smith wrote
Hi Everyone,
I have a route script that includes this following:
----------------
# authenticate users if they didn't provide credentials
if (!radius_www_authorize("sip")) {
www_challenge("sip", "0");
break;
};
# save their location, etc
save("location");
----------------
now this works fine for when the message is a REGISTER message, but when
the message is a INVITE message, it goes wonky and the routing gets all
screwed up.
When I take the 'save("location");' function out, everything returns
to normal.
Has anyone else seen this behavior?
Thanks,
Patrick
--
Patrick Jordan-Smith
Mercury Telecommunications Ltd
voice +64-9-916-0300
paper +64-9-916-0301
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers