diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-17 03:59:05 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-17 03:59:05 +0000 |
commit | f76ce130af26608b7407f802b8f4906321aa38b9 (patch) | |
tree | faef752638a4ec23b68d2de01cfaeccb96800994 | |
parent | 32a7ac32d8cdd2965a007a5663bc835d53845898 (diff) |
Max-Forwards headers must only be present on requests, not responses
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7515 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ce642fff7..97dd7b5e7 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 */ |