From 8ef66261f14b5b951f2ec10e69af5a7aa3ffb6bc Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sat, 17 Dec 2005 03:59:05 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ce642fff7a..97dd7b5e74 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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 */