From: Joshua Colp Date: Wed, 7 May 2008 13:41:25 +0000 (+0000) Subject: Remove redundant header getting. X-Git-Tag: 1.6.2.0-beta1~2300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4555f32184cfad000ef3c720f1e43ba09a7491a7;p=thirdparty%2Fasterisk.git Remove redundant header getting. (closes issue #12597) Reported by: hooi git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115507 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7f95713623..fa6938f3fe 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6171,11 +6171,6 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si const char *cseq = get_header(req, "Cseq"); struct sip_pvt *sip_pvt_ptr; - callid = get_header(req, "Call-ID"); - from = get_header(req, "From"); - to = get_header(req, "To"); - cseq = get_header(req, "Cseq"); - /* Call-ID, to, from and Cseq are required by RFC 3261. (Max-forwards and via too - ignored now) */ /* get_header always returns non-NULL so we must use ast_strlen_zero() */ if (ast_strlen_zero(callid) || ast_strlen_zero(to) ||