]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix comparison for REFER Replaces tags with pedantic=yes
authorTerry Wilson <twilson@digium.com>
Tue, 8 Feb 2011 20:05:13 +0000 (20:05 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 8 Feb 2011 20:05:13 +0000 (20:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@306972 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cf5a4dc87953274267639dc654ee5301968bd994..f8fd4f4acc475e210d2696f96c744f567b3e5fff 100644 (file)
@@ -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;
                }