From d999f80dbefd68d7fc8d9a72dc4ee7a1f3366e21 Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Sat, 18 Dec 2004 07:10:46 +0000 Subject: [PATCH] oopsie git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4474 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_h323.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 6089653bd8..bbfe0db182 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -807,12 +807,12 @@ static struct ast_channel *oh323_new(struct oh323_pvt *pvt, int state, const cha } if (!ast_strlen_zero(pvt->cid_num)) { ch->cid.cid_num = strdup(pvt->cid_num); - } else if (!ast_strlen_zero(pvt->cd.call_source_e164)) { + } else if (pvt->cd.call_source_e164 && !ast_strlen_zero(pvt->cd.call_source_e164)) { ch->cid.cid_num = strdup(pvt->cd.call_source_e164); } if (!ast_strlen_zero(pvt->cid_name)) { ch->cid.cid_name = strdup(pvt->cid_name); - } else if (!ast_strlen_zero(pvt->cd.call_source_name)) { + } else if (pvt->cd.call_source_e164 && !ast_strlen_zero(pvt->cd.call_source_name)) { ch->cid.cid_name = strdup(pvt->cd.call_source_name); } if (!ast_strlen_zero(pvt->rdnis)) {