]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 61798 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 25 Apr 2007 16:22:07 +0000 (16:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 25 Apr 2007 16:22:07 +0000 (16:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61798 | russell | 2007-04-25 11:20:38 -0500 (Wed, 25 Apr 2007) | 3 lines

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.4@61799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 5e7ead08e0ae96472f00861d839385a82d9cd2d2..3ceec72ab6f995f51caa88c5fc8d4462c9d0c2b2 100644 (file)
@@ -5298,7 +5298,7 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
        tmp->cid.cid_num = ast_strdup(i->cid_num);
        tmp->cid.cid_name = ast_strdup(i->cid_name);
        if (!ast_strlen_zero(i->cid_ani))
-               tmp->cid.cid_ani = ast_strdup(i->cid_num);
+               tmp->cid.cid_ani = ast_strdup(i->cid_ani);
        else    
                tmp->cid.cid_ani = ast_strdup(i->cid_num);
 #else