respect case changes in peer names on sip reload

ASTERISK-18669
........

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

Merged revisions 343691 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@343692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Nicholson
2011-11-07 21:44:05 +00:00
parent 98e494d4a0
commit 2b6ebcb9e9

View File

@@ -27590,8 +27590,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) {