Hi Daniel
what actually happens? New registrations are accepted with different contact headers? Have you run with debug=3 to see if you can spot any hint in the logs?
Well I did a different test, which I think hints where the problem is:
== Test 1 ==
modparam("registrar", "max_contacts", 10) modparam("registrar", "xavp_cfg", "reg")
[...]
$xavp(reg=>max_contacts) = 2; $var(result) = save("location","0x00","$var(saveuri)");
Result with 3 clients: AOR contains 3 Addresses.
$var(result) is positive.
== Test 2 ==
modparam("registrar", "max_contacts", 2) modparam("registrar", "xavp_cfg", "reg")
[...]
$xavp(reg=>max_contacts) = 3; $var(result) = save("location","0x00","$var(saveuri)");
Result with 3 clients: 3rd client is being rejected by save operation with:
[save.c:631]: test_max_contacts(): too many contacts for AOR
$var(result) is -2 as per documentation.
== Conclusion ==
Setting $xavp(reg=>max_contacts) on the fly in the config seems not work in Version 5.5.4
I will also increase the debug level to 3 and re-test to see if setting $xavp(reg=>max_contacts) generates any debug output hinting to the cause of the problem.
Mit freundlichen Grüssen
-Benoît Panizzon-