--- main/core_local.c (Asterisk 13.32.0) +++ main/core_local.c (working copy) @@ -146,2 +146,3 @@ static void local_optimization_started_c static void local_optimization_finished_cb(struct ast_unreal_pvt *base, int success, unsigned int id); +static int local_setoption(struct ast_channel *chan, int option, void *data, int datalen); @@ -189,3 +190,3 @@ static struct ast_channel_tech local_tec .queryoption = ast_unreal_queryoption, - .setoption = ast_unreal_setoption, + .setoption = local_setoption, }; @@ -1110 +1111,12 @@ int ast_local_init(void) } + +int local_setoption(struct ast_channel *ast, int option, void *data, int datalen) +{ + switch (option) { + case AST_OPTION_SECURE_SIGNALING: + case AST_OPTION_SECURE_MEDIA: + return 0; /* local calls (like forwardings) are secure always */ + default: + return ast_unreal_setoption(ast, option, data, datalen); + } +}