summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-05-07 13:41:25 +0000
committerJoshua Colp <jcolp@digium.com>2008-05-07 13:41:25 +0000
commit4555f32184cfad000ef3c720f1e43ba09a7491a7 (patch)
tree8b991ede813463dd257d7e1ab58d3f5392b17c1c /channels
parent55310cc855e432b2c8ee673f35f1b9b9a81e9cf4 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7f9571362..fa6938f3f 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) ||