From: Russell Bryant Date: Wed, 25 Apr 2007 16:20:38 +0000 (+0000) Subject: Fix a typo where cid_num got copied instead of cid_ani. X-Git-Tag: 1.2.19~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab557da864ea1c184ab08db391edfcd8782dc86;p=thirdparty%2Fasterisk.git Fix a typo where cid_num got copied instead of cid_ani. (issue #9587, reported and patched by xrg) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61798 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 0de98e70b4..755e80661b 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -5281,7 +5281,7 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int if (!ast_strlen_zero(i->cid_name)) tmp->cid.cid_name = strdup(i->cid_name); if (!ast_strlen_zero(i->cid_ani)) - tmp->cid.cid_ani = strdup(i->cid_num); + tmp->cid.cid_ani = strdup(i->cid_ani); else if (!ast_strlen_zero(i->cid_num)) tmp->cid.cid_ani = strdup(i->cid_num); #else