From: Terry Wilson Date: Tue, 8 Feb 2011 20:05:13 +0000 (+0000) Subject: Fix comparison for REFER Replaces tags with pedantic=yes X-Git-Tag: 1.4.41-rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b490b1adc0c5d4bdb6c6929d2a3e968d647c237;p=thirdparty%2Fasterisk.git 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 --- 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; }