diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 301397f9a57c5df47a8c52607a4177524f97bfd8..ebf77519f18de695ce25139af973de28c53249ed 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 ae5c9ba61e4db7b7852e91af6dbd8684193d12d9..cee5e1abbf36a1aced525f032319f14635c026a1 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