forked from kamailio/kamailio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
permissions: introduce func
allow_register_include_port()
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:[email protected]:5062>" then this will check the Contact hf including port of it. Otherwise if usual `allow_register()` function is used, then only the "[email protected]" 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. Full backwards compatibility is kept in place, no need for users of the module to change anything in their configuration or kamailio script itself.
- Loading branch information
1 parent
82cfea3
commit 534a359
Showing
3 changed files
with
200 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,13 @@ | |
<email>[email protected]</email> | ||
</address> | ||
</editor> | ||
<editor> | ||
<firstname>Donat</firstname> | ||
<surname>Zenichev</surname> | ||
<address> | ||
<email>[email protected]</email> | ||
</address> | ||
</editor> | ||
</authorgroup> | ||
<copyright> | ||
<year>2003</year> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters