parse_moved_contact tries to parse contact_name twice
authorDavid Vossel <dvossel@digium.com>
Thu, 4 Feb 2010 23:16:30 +0000 (23:16 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 4 Feb 2010 23:16:30 +0000 (23:16 +0000)
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

index b48cbe3..74b9ef1 100644 (file)
@@ -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;