mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Merge "apps/app_dial: Set the DIALSTATUS to NOANSWER on privacy option 5" into 13
This commit is contained in:
@@ -1914,9 +1914,10 @@ static int do_privacy(struct ast_channel *chan, struct ast_channel *peer,
|
|||||||
ast_copy_string(pa->status, "DONTCALL", sizeof(pa->status));
|
ast_copy_string(pa->status, "DONTCALL", sizeof(pa->status));
|
||||||
break;
|
break;
|
||||||
case '5':
|
case '5':
|
||||||
/* XXX should we set status to DENY ? */
|
if (ast_test_flag64(opts, OPT_PRIVACY)) {
|
||||||
if (ast_test_flag64(opts, OPT_PRIVACY))
|
ast_copy_string(pa->status, "NOANSWER", sizeof(pa->status));
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
/* if not privacy, then 5 is the same as "default" case */
|
/* if not privacy, then 5 is the same as "default" case */
|
||||||
default: /* bad input or -1 if failure to start autoservice */
|
default: /* bad input or -1 if failure to start autoservice */
|
||||||
/* well, if the user messes up, ... he had his chance... What Is The Best Thing To Do? */
|
/* well, if the user messes up, ... he had his chance... What Is The Best Thing To Do? */
|
||||||
|
Reference in New Issue
Block a user