]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
respect case changes in peer names on sip reload
authorMatthew Nicholson <mnicholson@digium.com>
Mon, 7 Nov 2011 21:42:08 +0000 (21:42 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Mon, 7 Nov 2011 21:42:08 +0000 (21:42 +0000)
ASTERISK-18669
........

Merged revisions 343690 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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

channels/chan_sip.c

index 9bba0bd21e59699e8159fe2f4933d2ee194f7992..ce1ebd74c043d7bf1e8f3282cfca8eb8d54a9e81 100644 (file)
@@ -27527,8 +27527,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                set_peer_defaults(peer);        /* Set peer defaults */
                peer->type = 0;
        }
-       if (!found && name)
-               ast_copy_string(peer->name, name, sizeof(peer->name));
+
+       /* in case the case of the peer name has changed, update the name */
+       ast_copy_string(peer->name, name, sizeof(peer->name));
 
        /* If we have channel variables, remove them (reload) */
        if (peer->chanvars) {