Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: 90003ec474ff23b385c4760336671ae8758d2523
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=90003ec…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)iptel.org>
Date: Tue Sep 28 17:13:28 2010 +0200
cfg framework: apply additional var list bugfix
The variable list needs to be applied for each group
---
cfg/cfg_struct.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/cfg/cfg_struct.c b/cfg/cfg_struct.c
index a736d67..10d8ef7 100644
--- a/cfg/cfg_struct.c
+++ b/cfg/cfg_struct.c
@@ -255,11 +255,12 @@ int cfg_shmize(void)
group->name_len, group->name);
goto error;
}
+
+ /* Create the additional group instances with applying
+ the temporary list. */
+ if (apply_add_var_list(block, group))
+ goto error;
}
- /* Create the additional group instances with applying
- the temporary list. */
- if (apply_add_var_list(block, group))
- goto error;
/* try to fixup the selects that failed to be fixed-up previously */
if (cfg_fixup_selects()) goto error;
Module: sip-router
Branch: master
Commit: 8bfbe85163e974cc917eb7043d728dd8ef4917d0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8bfbe85…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Wed Sep 29 13:59:54 2010 +0300
modules/lcr: removed #!/usr/bin/awk from lcr_weight_test.awk
---
modules/lcr/utils/lcr_weight_test.awk | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/modules/lcr/utils/lcr_weight_test.awk b/modules/lcr/utils/lcr_weight_test.awk
index fdb9a37..66e3e3d 100755
--- a/modules/lcr/utils/lcr_weight_test.awk
+++ b/modules/lcr/utils/lcr_weight_test.awk
@@ -1,5 +1,3 @@
-#!/usr/bin/awk -f
-
# This script can be used to find out actual probabilities
# that correspond to a list of LCR gateway weights.
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);
#}
i noticed that in sr master version, return is not terminating switch
statement.
i have
route [foo] {
switch ($var(test)) {
case "e1":
xlog("L_INFO", "We are at e1\n");
return(1);
case "lo":
xlog("L_INFO", "... and at lo\n");
return(2);
default:
xlog("L_INFO", "... and at default\n");
};
return(-1);
}
and when the switch statement is executed, i get to syslog
Sep 28 18:09:12 sip /usr/sbin/sip-proxy[3802]: INFO: We are at e1
Sep 28 18:09:12 sip /usr/sbin/sip-proxy[3802]: INFO: ... and at default
why is that? is it a bug or strange "feature".
-- juha