Fix: Do not send notify IDs that are not 0, 1 or 2
[lcr.git] / socket_server.c
index ac821b0..df07b14 100644 (file)
@@ -752,7 +752,6 @@ int admin_state(struct admin_queue **responsep)
        class Pdss1             *pdss1;
        struct mISDNport        *mISDNport;
        struct select_channel   *selchannel;
-       int                     anybusy;
 #endif
        struct interface        *interface;
        struct interface_port   *ifport;
@@ -937,7 +936,6 @@ int admin_state(struct admin_queue **responsep)
                                }
                                /* channel state */
                                i = 0;
-                               anybusy = 0;
                                while(i < mISDNport->b_num) {
                                        response->am[num].u.i.busy[i] = mISDNport->b_state[i];
                                        if (mISDNport->b_port[i])
@@ -1120,7 +1118,7 @@ int admin_state(struct admin_queue **responsep)
                        response->am[num].u.p.isdn = 1;
                        pdss1 = (class Pdss1 *)port;
                        response->am[num].u.p.isdn_chan = pdss1->p_m_b_channel;
-                       response->am[num].u.p.isdn_hold = pdss1->p_m_hold;
+                       response->am[num].u.p.isdn_hold = pdss1->p_hold;
                        response->am[num].u.p.isdn_ces = pdss1->p_m_d_ces;
                }
 #endif