+ start_trace(-1,
+ NULL,
+ NULL,
+ NULL,
+ DIRECTION_NONE,
+ 0,
+ 0,
+ "REMOTE APP release");
+ add_trace("app", "name", "%s", admin->remote_name);
+ end_trace();
+ /* release all exported channels */
+ mISDNport = mISDNport_first;
+ while(mISDNport)
+ {
+ i = 0;
+ ii = mISDNport->b_num;
+ while(i < ii)
+ {
+ if (mISDNport->b_remote_id[i] == admin->sock)
+ {
+ mISDNport->b_state[i] = B_STATE_IDLE;
+ mISDNport->b_timer[i] = 0;
+ mISDNport->b_remote_id[i] = 0;
+ mISDNport->b_remote_ref[i] = 0;
+ }
+ i++;
+ }
+ mISDNport = mISDNport->next;
+ }
+ /* release join */