Make sure we set the ANI2 field for PRI
authorMatthew Fredrickson <creslin@digium.com>
Thu, 11 Oct 2007 22:27:32 +0000 (22:27 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Thu, 11 Oct 2007 22:27:32 +0000 (22:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85497 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 8872254..ab9d7f6 100644 (file)
@@ -9841,6 +9841,7 @@ static void *pri_dchannel(void *vpri)
                                                        if (e->ring.ani2 >= 0) {
                                                                snprintf(ani2str, 5, "%.2d", e->ring.ani2);
                                                                pbx_builtin_setvar_helper(c, "ANI2", ani2str);
+                                                               pri->pvts[chanpos]->cid_ani2 = e->ring.ani2;
                                                        }
 
 #ifdef SUPPORT_USERUSER
@@ -9879,6 +9880,7 @@ static void *pri_dchannel(void *vpri)
                                                                if (e->ring.ani2 >= 0) {
                                                                        snprintf(ani2str, 5, "%d", e->ring.ani2);
                                                                        pbx_builtin_setvar_helper(c, "ANI2", ani2str);
+                                                                       pri->pvts[chanpos]->cid_ani2 = e->ring.ani2;
                                                                }
 
 #ifdef SUPPORT_USERUSER