mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-19 01:45:25 -07:00
respect case changes in peer names on sip reload
ASTERISK-18669 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@343690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user