if(res2<'1'||(ast_test_flag(&opts,OPT_PRIVACY)&&res2>'5')||(ast_test_flag(&opts,OPT_SCREENING)&&res2>'4'))/* uh, interrupting with a bad answer is ... ignorable! */
if(res2<'1'||(ast_test_flag(&opts,OPT_PRIVACY)&&res2>'5')||(ast_test_flag(&opts,OPT_SCREENING)&&res2>'4'))/* uh, interrupting with a bad answer is ... ignorable! */
res2=0;
/* priv-callpending script:
"I have a caller waiting, who introduces themselves as:"
*/
if(!res2)
res2=ast_play_and_wait(peer,privintro);
if(res2<'1'||(ast_test_flag(&opts,OPT_PRIVACY)&&res2>'5')||(ast_test_flag(&opts,OPT_SCREENING)&&res2>'4'))/* uh, interrupting with a bad answer is ... ignorable! */
res2=ast_play_and_wait(peer,privintro);
if(res2<'1'||(ast_test_flag(&opts,OPT_PRIVACY)&&res2>'5')||(ast_test_flag(&opts,OPT_SCREENING)&&res2>'4'))/* uh, interrupting with a bad answer is ... ignorable! */
res2=0;
/* now get input from the called party, as to their choice */