Skip to content
Snippets Groups Projects
Commit b323c972 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Allow the '#' sign to exist within an extension (inspired by issue #13330)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 887e28d7
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,13 @@ static int readexten_exec(struct ast_channel *chan, void *data)
status = "TIMEOUT";
}
break;
} else if (res == '#') {
break;
}
exten[x] = res;
if (!ast_matchmore_extension(chan, arglist.context, exten, 1 /* priority */, chan->cid.cid_num)) {
if (!ast_exists_extension(chan, arglist.context, exten, 1, chan->cid.cid_num) && res == '#') {
exten[x] = '\0';
}
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment