aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-19 17:31:33 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-19 17:31:33 +0000
commite941a126ad0e84ce4e11fccd3eb06fa9dacf53ee (patch)
tree2a15a9529add70e64edf7f4b3ca3a6347c8d36eb /channels/chan_sip.c
parent2b8726ee228932938a8db1676c224358e06e1ee1 (diff)
Fix tag issue (bug #3795)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5204 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3047b1405..16b260527 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3429,7 +3429,7 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, int sipmethod, in
/* Add tag *unless* this is a CANCEL, in which case we need to send it exactly
as our original request, including tag (or presumably lack thereof) */
- if (!strstr(ot, "tag=") && sipmethod == SIP_CANCEL) {
+ if (!strstr(ot, "tag=") && sipmethod != SIP_CANCEL) {
/* Add the proper tag if we don't have it already. If they have specified
their tag, use it. Otherwise, use our own tag */
if (ast_test_flag(p, SIP_OUTGOING) && !ast_strlen_zero(p->theirtag))