From: Andreas Eversberg Date: Tue, 21 Aug 2012 06:07:45 +0000 (+0200) Subject: Fix: chan_lcr must use right context attribute for Asterisk version >= 11 X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=2bdb5135a30caebb75cb55663938cc453a445016 Fix: chan_lcr must use right context attribute for Asterisk version >= 11 --- diff --git a/chan_lcr.c b/chan_lcr.c index 657edf8..735e4e7 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -1000,8 +1000,8 @@ static void lcr_in_setup(struct chan_call *call, int message_type, union paramet strncpy(ast->context, param->setup.callerinfo.interface, AST_MAX_CONTEXT-1); #else ast_channel_exten_set(ast, param->setup.dialinginfo.id); - if (param->setup.context[0]) - ast_channel_context_set(ast, param->setup.context); + if (param->setup.dialinginfo.context[0]) + ast_channel_context_set(ast, param->setup.dialinginfo.context); else ast_channel_context_set(ast, param->setup.callerinfo.interface); #endif