From 9b490b1adc0c5d4bdb6c6929d2a3e968d647c237 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Tue, 8 Feb 2011 20:05:13 +0000 Subject: [PATCH] Fix comparison for REFER Replaces tags with pedantic=yes git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@306972 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cf5a4dc879..f8fd4f4acc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10389,8 +10389,8 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi if (!strcmp(referdata->replaces_callid, transferer->callid) && (!pedanticsipchecking || - (!strcmp(referdata->replaces_callid_fromtag, transferer->tag) && - !strcmp(referdata->replaces_callid_totag, transferer->theirtag)))) { + (!strcmp(referdata->replaces_callid_fromtag, transferer->theirtag) && + !strcmp(referdata->replaces_callid_totag, transferer->tag)))) { ast_log(LOG_WARNING, "Got an attempt to replace own Call-ID on %s\n", transferer->callid); return -4; } -- 2.47.2