From: Mark Spencer Date: Tue, 27 Jul 2004 19:00:06 +0000 (+0000) Subject: Make ACK sticky too (bug #2134) X-Git-Tag: 1.0.0-rc2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f41a06dcbdee4e899f8b9172e4339371202a7d;p=thirdparty%2Fasterisk.git Make ACK sticky too (bug #2134) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3524 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a93d6c00ad..fe1dcd664b 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3105,7 +3105,7 @@ static int reqprep(struct sip_request *req, struct sip_pvt *p, char *msg, int se else /* Some implementations (e.g. Uniden UIP200) can't handle rport being in the message!! */ snprintf(p->via, sizeof(p->via), "SIP/2.0/UDP %s:%d;branch=z9hG4bK%08x", ast_inet_ntoa(iabuf, sizeof(iabuf), p->ourip), ourport, p->branch); } - if (!strcasecmp(msg, "CANCEL")) { + if (!strcasecmp(msg, "CANCEL") || !strcasecmp(msg, "ACK")) { /* MUST use original URI */ c = p->initreq.rlPart2; } else if (!ast_strlen_zero(p->uri)) {