From f30de5ef0ed6f63d2a0d51aa277ff6ea184b6278 Mon Sep 17 00:00:00 2001
From: David Vossel <dvossel@digium.com>
Date: Thu, 4 Feb 2010 23:16:30 +0000
Subject: [PATCH] parse_moved_contact tries to parse contact_name twice

parse_moved_contact attempts to remove a quoted string
twice, and the first try wasn't even being done correctly.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b48cbe3554..74b9ef1100 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -16559,14 +16559,6 @@ static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req, char
 	if ((separator = strchr(contact, ',')))
 		*separator = '\0';
 
-	/* ooh, a name */
-	if (*contact == '"') {
-		contact_name = contact + 1;
-		if ((separator = strchr(contact_name, '"'))) {
-			*separator++ = '\0';
-		}
-	}
-
 	contact_number = get_in_brackets(contact);
 	if ((trans = strcasestr(contact_number, ";transport="))) {
 		trans += 11;
-- 
GitLab