diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-09-07 13:01:53 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-09-07 13:01:53 -0500 |
commit | 4b66c74c9422c10c25dd42c7d204c5f499749d80 (patch) | |
tree | bb0a69ac137340fd07d119d7f53d7077175cba69 /apps | |
parent | 89f7cd8182478e4f6654f801ae29460348588097 (diff) | |
parent | a64063cc9720637c1f54f85bb48d54b0e0ae8d3d (diff) |
Merge "apps/app_dial: Set the DIALSTATUS to NOANSWER on privacy option 5" into 13
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index c2484a2f3..de6fe1852 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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)); break; 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; + } /* if not privacy, then 5 is the same as "default" case */ 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? */ |