diff options
author | David Vossel <dvossel@digium.com> | 2010-02-04 23:16:30 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2010-02-04 23:16:30 +0000 |
commit | f30de5ef0ed6f63d2a0d51aa277ff6ea184b6278 (patch) | |
tree | 18a6e669034c2b89623689055d753601b4adcf6f /channels/chan_sip.c | |
parent | 962b1a22fd44f7e81a6ba9171f7bd0287e1ab02a (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: https://origsvn.digium.com/svn/asterisk/trunk@244769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 8 |
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; |