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
certified/1.8.6
David Vossel 16 years ago
parent 962b1a22fd
commit f30de5ef0e

@ -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;

Loading…
Cancel
Save