summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-11-21 19:20:26 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-11-21 19:20:26 +0000
commit354b7f1a81057d6c68b51a05268f0d914b809357 (patch)
tree12368025bc99db00f6da2f14a26e549af5f2edbb /channels/chan_sip.c
parentd34be7edf7ac6484e1567ce162a99f4d3c4c09d5 (diff)
fix a bug found during a recent upgrade
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3d5e4544c..e6faa6b4e 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11967,7 +11967,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
if (!realtime)
/* Note we do NOT use find_peer here, to avoid realtime recursion */
- peer = ASTOBJ_CONTAINER_FIND_UNLINK(&peerl, name);
+ /* We also use a case-sensitive comparison (unlike find_peer) so
+ that case changes made to the peer name will be properly handled
+ during reload
+ */
+ peer = ASTOBJ_CONTAINER_FIND_UNLINK_FULL(&peerl, name, name, 0, 0, strcmp);
if (peer) {
/* Already in the list, remove it and it will be added back (or FREE'd) */