mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
icseq increments only on requests, not responses (bug #3798)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8597,12 +8597,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||||||
ignore=1;
|
ignore=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seqno >= p->icseq)
|
|
||||||
/* Next should follow monotonically (but not necessarily
|
|
||||||
incrementally -- thanks again to the genius authors of SIP --
|
|
||||||
increasing */
|
|
||||||
p->icseq = seqno;
|
|
||||||
|
|
||||||
extract_uri(p, req);
|
extract_uri(p, req);
|
||||||
while(*e && (*e < 33))
|
while(*e && (*e < 33))
|
||||||
e++;
|
e++;
|
||||||
@@ -8631,6 +8625,12 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
|||||||
ignore=1;
|
ignore=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seqno >= p->icseq)
|
||||||
|
/* Next should follow monotonically (but not necessarily
|
||||||
|
incrementally -- thanks again to the genius authors of SIP --
|
||||||
|
increasing */
|
||||||
|
p->icseq = seqno;
|
||||||
|
|
||||||
/* Find their tag if we haven't got it */
|
/* Find their tag if we haven't got it */
|
||||||
if (ast_strlen_zero(p->theirtag)) {
|
if (ast_strlen_zero(p->theirtag)) {
|
||||||
from = get_header(req, "From");
|
from = get_header(req, "From");
|
||||||
|
|||||||
Reference in New Issue
Block a user