]> 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:40:51 +0000 (21:40 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Mon, 7 Nov 2011 21:40:51 +0000 (21:40 +0000)
ASTERISK-18669

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

channels/chan_sip.c

index b72a298bc43d843d3f9a4a58b85acf0f75fd19fe..de963f3a630551cb5b756f122e5bf37c0adba409 100644 (file)
@@ -26845,8 +26845,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) {