]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a typo where cid_num got copied instead of cid_ani.
authorRussell Bryant <russell@russellbryant.com>
Wed, 25 Apr 2007 16:20:38 +0000 (16:20 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 25 Apr 2007 16:20:38 +0000 (16:20 +0000)
(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

channels/chan_zap.c

index 0de98e70b48228008d44d1b0cf6e172b0db51f1d..755e80661bd0134006375c7433756af776ead09d 100644 (file)
@@ -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