[asterisk-commits] mnicholson: branch 1.8 r343690 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 7 15:40:55 CST 2011
Author: mnicholson
Date: Mon Nov 7 15:40:51 2011
New Revision: 343690
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=343690
Log:
respect case changes in peer names on sip reload
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=343690&r1=343689&r2=343690
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Mon Nov 7 15:40:51 2011
@@ -26845,8 +26845,9 @@
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) {
More information about the asterisk-commits
mailing list