/* Received disconnect ind on active state send disconnect resp send msg to user  */
void cb_disc_1(struct pcbit_dev *dev, struct pcbit_chan *chan, struct callb_data *data)
/* Received disconnect ind on active state send disconnect resp send msg to user  */
void cb_disc_1(struct pcbit_dev *dev, struct pcbit_chan *chan, struct callb_data *data)
{
 	struct sk_buff *skb;
	int len;
        ushort refnum;
        isdn_ctrl ictl;
        if ((len = capi_disc_resp(chan, &skb)) < 0) {
                printk("capi_disc_resp failed\n");
                return;
        }
        refnum = last_ref_num++ & 0x7fffU;
        chan->s_refnum = refnum;
        pcbit_l2_write(dev, MSG_DISC_RESP, refnum, skb, len);    
        ictl.command = ISDN_STAT_BHUP;
        ictl.driver=dev->id;
        ictl.arg=chan->id;
        dev->dev_if->statcallb(&ictl);
}