projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Don't forward MESSAGE_TRAFFIC to endpoint instance
[lcr.git]
/
chan_lcr.c
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
657edf8
..
dcc9b41
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
@@
-1412,7
+1412,9
@@
static void lcr_in_information(struct chan_call *call, int message_type, union p
#if ASTERISK_VERSION_NUM < 110000
strncat(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
#else
#if ASTERISK_VERSION_NUM < 110000
strncat(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
#else
- ast_channel_exten_set(ast, param->information.id);
+ char *tmp[AST_MAX_EXTENSION];
+ snprintf(tmp,AST_MAX_EXTENSION,"%s%s",ast_channel_exten(ast),param->information.id);
+ ast_channel_exten_set(ast, tmp);
#endif
lcr_start_pbx(call, ast, param->information.sending_complete);
return;
#endif
lcr_start_pbx(call, ast, param->information.sending_complete);
return;