projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e711b3
)
[chan_lcr] Added second caller ID (ANI) in case the caller ID is user provided.
author
Andreas Eversberg
<jolly@eversberg.eu>
Thu, 23 Sep 2010 08:10:13 +0000
(10:10 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 28 Sep 2010 06:50:55 +0000
(08:50 +0200)
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
634c08b
..
877bd11
100644
(file)
--- a/
chan_lcr.c
+++ b/
chan_lcr.c
@@
-247,9
+247,7
@@
void chan_lcr_log(int type, const char *file, int line, const char *function, st
ast_text[sizeof(ast_text)-1] = '\0';
// ast_log(type, file, line, function, "[call=%s ast=%s] %s", call_text, ast_text, buffer);
ast_text[sizeof(ast_text)-1] = '\0';
// ast_log(type, file, line, function, "[call=%s ast=%s] %s", call_text, ast_text, buffer);
-#if 0
printf("[call=%s ast=%s] %s", call_text, ast_text, buffer);
printf("[call=%s ast=%s] %s", call_text, ast_text, buffer);
-#endif
ast_mutex_unlock(&log_lock);
}
ast_mutex_unlock(&log_lock);
}
@@
-885,6
+883,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);
if (param->setup.callerinfo.id[0])
ast->cid.cid_num = strdup(param->setup.callerinfo.id);
strncpy(ast->context, param->setup.callerinfo.interface, AST_MAX_CONTEXT-1);
if (param->setup.callerinfo.id[0])
ast->cid.cid_num = strdup(param->setup.callerinfo.id);
+ if (param->setup.callerinfo.id2[0])
+ ast->cid.cid_ani = strdup(param->setup.callerinfo.id2);
if (param->setup.callerinfo.name[0])
ast->cid.cid_name = strdup(param->setup.callerinfo.name);
if (param->setup.redirinfo.id[0])
if (param->setup.callerinfo.name[0])
ast->cid.cid_name = strdup(param->setup.callerinfo.name);
if (param->setup.redirinfo.id[0])