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: https://origsvn.digium.com/svn/asterisk/trunk@7516
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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 */