aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-04 23:16:30 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-04 23:16:30 +0000
commit2a0fdcc0540ca6bcf4b92044aa8e3cbf1f24a907 (patch)
tree18a6e669034c2b89623689055d753601b4adcf6f
parentcc4a1bbae8e097f44c0d6c789150945c6ac258f9 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@244769 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b48cbe355..74b9ef110 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;