summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-09-23 10:10:13 +0200
committerAndreas Eversberg2010-09-28 08:50:55 +0200
commit6b858efdae9a1b86033c29bd8f0e3c636c73180f (patch)
tree0caa564bbf0b102e38492cb1f8dd4380db2e53dd
parentFix of vbox announcing bug (diff)
downloadlcr-6b858efdae9a1b86033c29bd8f0e3c636c73180f.tar.gz
lcr-6b858efdae9a1b86033c29bd8f0e3c636c73180f.tar.xz
lcr-6b858efdae9a1b86033c29bd8f0e3c636c73180f.zip
[chan_lcr] Added second caller ID (ANI) in case the caller ID is user provided.
-rw-r--r--chan_lcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 634c08b..877bd11 100644
--- 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);
-#if 0
printf("[call=%s ast=%s] %s", call_text, ast_text, buffer);
-#endif
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);
+ 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])