Lines Matching refs:dv
388 struct deflect_struc *dv; in isdn_divert_icall() local
393 for (dv = table_head; dv; dv = dv->next) { in isdn_divert_icall()
395 if (((dv->rule.callopt == 1) && (ic->command == ISDN_STAT_ICALLW)) || in isdn_divert_icall()
396 ((dv->rule.callopt == 2) && (ic->command == ISDN_STAT_ICALL))) in isdn_divert_icall()
398 if (!(dv->rule.drvid & (1L << ic->driver))) in isdn_divert_icall()
400 if ((dv->rule.si1) && (dv->rule.si1 != ic->parm.setup.si1)) in isdn_divert_icall()
402 if ((dv->rule.si2) && (dv->rule.si2 != ic->parm.setup.si2)) in isdn_divert_icall()
405 p = dv->rule.my_msn; in isdn_divert_icall()
421 if ((strcmp(dv->rule.caller, "0")) || in isdn_divert_icall()
423 p = dv->rule.caller; in isdn_divert_icall()
440 switch (dv->rule.action) { in isdn_divert_icall()
448 if (dv->rule.action == DEFLECT_PROCEED) in isdn_divert_icall()
449 if ((!if_used) || ((!extern_wait_max) && (!dv->rule.waittime))) in isdn_divert_icall()
459 cs->ics.parm.setup.screen = dv->rule.screen; in isdn_divert_icall()
460 if (dv->rule.waittime) in isdn_divert_icall()
461 cs->timer.expires = jiffies + (HZ * dv->rule.waittime); in isdn_divert_icall()
462 else if (dv->rule.action == DEFLECT_PROCEED) in isdn_divert_icall()
466 cs->akt_state = dv->rule.action; in isdn_divert_icall()
472 strcpy(cs->deflect_dest, dv->rule.to_nr); in isdn_divert_icall()
476 ic->parm.setup.screen = dv->rule.screen; in isdn_divert_icall()
477 strlcpy(ic->parm.setup.phone, dv->rule.to_nr, sizeof(ic->parm.setup.phone)); in isdn_divert_icall()
498 dv->rule.waittime, in isdn_divert_icall()
500 if ((dv->rule.action == DEFLECT_REPORT) || in isdn_divert_icall()
501 (dv->rule.action == DEFLECT_REJECT)) { in isdn_divert_icall()
504 return ((dv->rule.action == DEFLECT_REPORT) ? 0 : 2); /* nothing to do */ in isdn_divert_icall()