summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 14f1cfe2a..f91261bf9 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14961,8 +14961,8 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
if (!strcmp(referdata->replaces_callid, transferer->callid) &&
(!sip_cfg.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;
}