]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Decode URI in contact header of 302 response.
authorMark Michelson <mmichelson@digium.com>
Mon, 28 Jun 2010 17:31:40 +0000 (17:31 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 28 Jun 2010 17:31:40 +0000 (17:31 +0000)
ABE-2352

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8d36daebe50128f049c0bef1b7c36b79e83b3aa1..027b3f42d4d076a1e4aa75734c7707c1a5ab684d 100644 (file)
@@ -12781,6 +12781,7 @@ static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req)
        
                if (!strncasecmp(s, "sip:", 4))
                        s += 4;
+               ast_uri_decode(s);
                if (option_debug > 1)
                        ast_log(LOG_DEBUG, "Received 302 Redirect to extension '%s' (domain %s)\n", s, domain);
                if (p->owner) {