Module: sip-router
Branch: master
Commit: d010f59edf3fbb61b4f74b78eb6e0eb27230dbe3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d010f59…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Sep 28 14:02:39 2010 +0200
sip-router-oob.cfg: user src_ip instead of @src.ip
Using the built-in src_ip is slightly faster then the @src.ip
select and also more consistent with the other src_ip checks in
the config.
---
etc/sip-router-oob.cfg | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/sip-router-oob.cfg b/etc/sip-router-oob.cfg
index 6aa82f5..cad1071 100644
--- a/etc/sip-router-oob.cfg
+++ b/etc/sip-router-oob.cfg
@@ -1166,7 +1166,7 @@ route[AUTHENTICATION]
# You have to trust them base on some other information such as the
# source IP address.
# WARNING: If at all this is only safe in a local network!
- if (@src.ip == $gw_ip) {
+ if (src_ip == $gw_ip) {
break;
}
@@ -1298,7 +1298,7 @@ route[INBOUND]
# clause in the next line and closing bracket below.
# WARNING: If at all you should trust IP addresses only in
# your local network!
- #if (@src.ip == $gw_ip) {
+ #if (src_ip == $gw_ip) {
route(SESSION_TIMER);
#}