projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d71951
)
Fix: chan_lcr must use right context attribute for Asterisk version >= 11
author
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 21 Aug 2012 06:07:45 +0000
(08:07 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Sun, 16 Dec 2012 09:11:46 +0000
(10:11 +0100)
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
657edf8
..
735e4e7
100644
(file)
--- 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);
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
else
ast_channel_context_set(ast, param->setup.callerinfo.interface);
#endif