Merged revisions 58906 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2007 19:19:00 +0000 (19:19 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2007 19:19:00 +0000 (19:19 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58906 | russell | 2007-03-14 14:18:08 -0500 (Wed, 14 Mar 2007) | 4 lines

Some people like to put "limitonpeer" instead of "limitonpeers" in their
configuration.  While we're at it, support "limitonpeerz" and
"limitonpeerssssss".  (inspired by issue #9172)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6a2d449..3f45550 100644 (file)
@@ -17031,7 +17031,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 (!strcasecmp(v->name, "limitonpeers")) {
+               } else if (!strncasecmp(v->name, "limitonpeer", 11)) {
                        global_limitonpeers = ast_true(v->value);
                } else if (!strcasecmp(v->name, "directrtpsetup")) {
                        global_directrtpsetup = ast_true(v->value);