dect
/
asterisk
Archived
13
0
Fork 0

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

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159853 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2008-11-29 18:33:18 +00:00
parent 246ce365ae
commit 2606a9f8a3
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}