aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 90dae4345..dc6bad66a 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2058,17 +2058,18 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
c++;
else
c = dest;
- if (!p->hidecalleridname)
- n = ast->cid.cid_name;
- else
- n = NULL;
+
+ l = NULL;
+ n = NULL;
+
if (!p->hidecallerid) {
l = ast->cid.cid_num;
- n = ast->cid.cid_name;
- } else {
- l = NULL;
- n = NULL;
+ if (!p->hidecalleridname) {
+ n = ast->cid.cid_name;
+ }
}
+
+
if (strlen(c) < p->stripmsd) {
ast_log(LOG_WARNING, "Number '%s' is shorter than stripmsd (%d)\n", c, p->stripmsd);
ast_mutex_unlock(&p->lock);