Issue #7325 - Parse string after URI decoding (casper)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-06-09 21:32:48 +00:00
parent 90806eb6f2
commit 8ef5092031

View File

@@ -7325,11 +7325,12 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
/* Find the request URI */
if (req->rlPart2)
ast_copy_string(tmp, req->rlPart2, sizeof(tmp));
uri = get_in_brackets(tmp);
if (pedanticsipchecking)
ast_uri_decode(tmp);
uri = get_in_brackets(tmp);
if (strncmp(uri, "sip:", 4)) {
ast_log(LOG_WARNING, "Huh? Not a SIP header (%s)?\n", uri);
return -1;