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:
parent
246ce365ae
commit
2606a9f8a3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue