From: Mark Michelson Date: Mon, 28 Jun 2010 17:31:40 +0000 (+0000) Subject: Decode URI in contact header of 302 response. X-Git-Tag: 1.4.34-rc1~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc343faa2484c2ad593316acbbef04c3fb3c651;p=thirdparty%2Fasterisk.git Decode URI in contact header of 302 response. ABE-2352 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272804 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8d36daebe5..027b3f42d4 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) {