Module: sip-router
Branch: master
Commit: 9fba21f14a07bc504d41b57c206b0628821fe920
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9fba21f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Mar 28 19:33:41 2010 +0200
permissions(k): added allow_source_address()
- it is equivalent of allow_source_address("1")
- 1 is the default group id value in database
---
modules_k/permissions/README | 11 ++++++-----
modules_k/permissions/doc/permissions_admin.xml | 5 +++--
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/modules_k/permissions/README b/modules_k/permissions/README
index 3642796..760c3ab 100644
--- a/modules_k/permissions/README
+++ b/modules_k/permissions/README
@@ -68,7 +68,7 @@ Juha Heinanen
4.5. allow_register(allow_file, deny_file)
4.6. allow_uri(basename, pvar)
4.7. allow_address(group_id, ip_addr_pvar, port_pvar)
- 4.8. allow_source_address(group_id)
+ 4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_trusted([src_ip_pvar, proto_pvar])
@@ -159,7 +159,7 @@ Chapter 1. Admin Guide
4.5. allow_register(allow_file, deny_file)
4.6. allow_uri(basename, pvar)
4.7. allow_address(group_id, ip_addr_pvar, port_pvar)
- 4.8. allow_source_address(group_id)
+ 4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_trusted([src_ip_pvar, proto_pvar])
@@ -593,7 +593,7 @@ modparam("permissions", "peer_tag_avp",
"$avp(i:707)")
4.5. allow_register(allow_file, deny_file)
4.6. allow_uri(basename, pvar)
4.7. allow_address(group_id, ip_addr_pvar, port_pvar)
- 4.8. allow_source_address(group_id)
+ 4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_trusted([src_ip_pvar, proto_pvar])
@@ -769,9 +769,10 @@ if (!allow_address("2", "$avp(i:704)",
"$avp(i:705)") {
};
...
-4.8. allow_source_address(group_id)
+4.8. allow_source_address([group_id])
- Equal to allow_address(group_id, "$si", "$sp").
+ Equal to allow_address(group_id, "$si", "$sp"). If
'group_id' is
+ missing, the function is equal to allow_address("1", "$si",
"$sp").
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
diff --git a/modules_k/permissions/doc/permissions_admin.xml
b/modules_k/permissions/doc/permissions_admin.xml
index b6e878e..0470224 100644
--- a/modules_k/permissions/doc/permissions_admin.xml
+++ b/modules_k/permissions/doc/permissions_admin.xml
@@ -955,10 +955,11 @@ if (!allow_address("2", "$avp(i:704)",
"$avp(i:705)") {
</section>
<section>
<title>
- <function
moreinfo="none">allow_source_address(group_id)</function>
+ <function
moreinfo="none">allow_source_address([group_id])</function>
</title>
<para>
- Equal to allow_address(group_id, "$si", "$sp").
+ Equal to allow_address(group_id, "$si", "$sp"). If
'group_id' is
+ missing, the function is equal to allow_address("1", "$si",
"$sp").
</para>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.