[asterisk-commits] russell: branch 1.2 r61798 - /branches/1.2/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 25 09:20:38 MST 2007


Author: russell
Date: Wed Apr 25 11:20:38 2007
New Revision: 61798

URL: http://svn.digium.com/view/asterisk?view=rev&rev=61798
Log:
Fix a typo where cid_num got copied instead of cid_ani.  
(issue #9587, reported and patched by xrg)

Modified:
    branches/1.2/channels/chan_zap.c

Modified: branches/1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_zap.c?view=diff&rev=61798&r1=61797&r2=61798
==============================================================================
--- branches/1.2/channels/chan_zap.c (original)
+++ branches/1.2/channels/chan_zap.c Wed Apr 25 11:20:38 2007
@@ -5281,7 +5281,7 @@
 		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



More information about the asterisk-commits mailing list