mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-16 09:52:24 +00:00
Max-Forwards headers must only be present on requests, not responses
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3989,7 +3989,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 */
|
||||
|
Reference in New Issue
Block a user