Skip to content

Commit 0d049ee

Browse files
committed
res_phreaknet: Suppress warning for operator trunk calls.
The 'o' flag is an unlisted flag used internally for certain calls, but since it wasn't in the option list, a warning is emitted by app.c since it can't parse the flag. Include it here to avoid that.
1 parent 57d7915 commit 0d049ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

res/res_phreaknet.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,11 +1957,13 @@ static struct ast_custom_function phreaknet_function = {
19571957
enum net_flags {
19581958
OPT_MF = (1 << 0),
19591959
OPT_SF = (1 << 1),
1960+
OPT_OPERATOR = (1 << 2), /* Internal flag for operator routings */
19601961
};
19611962

19621963
AST_APP_OPTIONS(net_flags, {
19631964
AST_APP_OPTION('m', OPT_MF),
19641965
AST_APP_OPTION('s', OPT_SF),
1966+
AST_APP_OPTION('o', OPT_OPERATOR), /* Internal flag for operator routings */
19651967
});
19661968

19671969
enum auth_flags {

0 commit comments

Comments
 (0)