aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 21:23:48 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 21:23:48 +0000
commit4fd45884a272fb1650af83291dde4b97f80c3769 (patch)
tree7e7b9ebf3f70ca5c461d00465596052d4a650cc7
parentdb19ec718ed280808536755cc884fadfb9e44e5e (diff)
Rename "limitonpeer" to "counteronpeer" since the call-limit is deprecated.
Both still works in this version. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89613 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
-rw-r--r--configs/sip.conf.sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 301397f9a..ebf77519f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18243,7 +18243,7 @@ static int reload_config(enum channelreloadreason reason)
compactheaders = ast_true(v->value);
} else if (!strcasecmp(v->name, "notifymimetype")) {
ast_copy_string(default_notifymime, v->value, sizeof(default_notifymime));
- } else if (!strncasecmp(v->name, "limitonpeer", 11)) {
+ } else if (!strncasecmp(v->name, "limitonpeer", 11) || !strcasecmp(v->name, "counteronpeer")) {
global_limitonpeers = ast_true(v->value);
} else if (!strcasecmp(v->name, "directrtpsetup")) {
global_directrtpsetup = ast_true(v->value);
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index ae5c9ba61..cee5e1abb 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -236,7 +236,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;notifyhold = yes ; Notify subscriptions on HOLD state (default: no)
; Turning on notifyringing and notifyhold will add a lot
; more database transactions if you are using realtime.
-;limitonpeer = yes ; Apply call counting on peers only. This will improve
+;counteronpeer = yes ; Apply call counting on peers only. This will improve
; status notification when you are using type=friend
; Inbound calls, that really apply to the user part
; of a friend will now be added to and compared with