dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 7515 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7515 | kpfleming | 2005-12-16 21:59:05 -0600 (Fri, 16 Dec 2005) | 2 lines

Max-Forwards headers must only be present on requests, not responses

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7516 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-12-17 03:59:27 +00:00
parent 00d3b18b92
commit 96e8d7e68c
1 changed files with 0 additions and 1 deletions

View File

@ -3993,7 +3993,6 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, char *msg, stru
copy_header(resp, req, "CSeq");
add_header(resp, "User-Agent", default_useragent);
add_header(resp, "Allow", ALLOWED_METHODS);
add_header(resp, "Max-Forwards", DEFAULT_MAX_FORWARDS);
if (msg[0] == '2' && (p->method == SIP_SUBSCRIBE || p->method == SIP_REGISTER)) {
/* For registration responses, we also need expiry and
contact info */