doc/
subfolder, the README file is autogenerated)Introduce new function: allow_register_include_port()
to be able to check the whole Contact header including port.
Example, register.deny content is:
ALL : "^sip:.*192.168.0.101:5062"
If the Contact is: "Contact: sip:testuser1004@192.168.0.101:5062" then this will check the Contact hf including port of it.
Otherwise if usual allow_register()
function is used, then only the "testuser1004@192.168.0.101" will be taken into account, which will lead the regex to be failing and letting the check to pass through.
The func allow_register_include_port()
works similarly as allow_register()
except it checks Contact's port.
A separate function was created in order to not complicate things by introducing one more parameter to the
existing function allow_register()
, which already takes a variable amount of parameters, so 1 or 2 parameters
(depending on if it is a "basename" or "allow-file, deny-file").
Documentation updated accordingly.
Additionally, "Register File Format" section has been added to the doc (to provide allow/deny file examples).
Full backwards compatibility is kept in place,
no need for users of the module to change anything in their configuration or kamailio script itself.
https://github.com/kamailio/kamailio/pull/3846
(3 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.