]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Case insensitive comparison of "defaultuser" parameter.
authorWalter Doekes <walter+asterisk@wjd.nu>
Fri, 23 Jan 2015 14:34:39 +0000 (14:34 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Fri, 23 Jan 2015 14:34:39 +0000 (14:34 +0000)
All the other configuration options are case insensitive, so this one
should be too.

ASTERISK-24355 #close
Reported by: HZMI8gkCvPpom0tM
patches:
  ast.patch uploaded by HZMI8gkCvPpom0tM (License 6658)

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

channels/chan_sip.c

index 78f0ea452f9e3bd17fe34df9714b994b4a5c6d15..bc0497e7991758b9b1978994c82516b11c78270f 100644 (file)
@@ -30862,7 +30862,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                                if (peer->callingpres == -1) {
                                        peer->callingpres = atoi(v->value);
                                }
-                       } else if (!strcasecmp(v->name, "username") || !strcmp(v->name, "defaultuser")) {       /* "username" is deprecated */
+                       } else if (!strcasecmp(v->name, "username") || !strcasecmp(v->name, "defaultuser")) {   /* "username" is deprecated */
                                ast_string_field_set(peer, username, v->value);
                                if (!strcasecmp(v->name, "username")) {
                                        if (deprecation_warning) {