printf("\nEnter mode of isdn port #%d. Should it run in NT-mode (for internal\nphones), or in TE-mode (for external lines)? If you do not like to add more\ncards, say 'done'.\n[nt | te | done]: ",i+1);fflush(stdout);
printf("\nIs your port #%d connected to point-to-multipoint line/phone, which supports multiple\ntelephones (Mehrger<65>teanschluss) OR is it a point-to-point link which is used\nfor LCR and supports extension dialing (Anlagenanschluss)?\n[ptp | ptm]: ",i+1);fflush(stdout);
printf("\nSelect driver of ISDN port #%d.\n\n",i+1);
jj=0;
while(cards[jj].card)
{
if(cards[jj].ntmode||mode[i]!='n')
printf(" (%d) %s\n",jj+1,cards[jj].card);
jj++;
}
printf("\n%sSelect card number[1-n]: ",(mode[i]=='n')?"Your card will run in NT-mode. The shown cards are capable of providing\nhardware layer for NT-mode.\n":"");fflush(stdout);
printf("\nUsing port %d of card '%s'.",port[i],cards[type[i]-1].card);
}
printf("\n\n\nSummary: Port #%d of type %s will run in %s-mode and %s-mode.\n",i+1,cards[type[i]-1].card,(mode[i]=='n')?"NT":"TE",(ptp[i])?"point-to-point":"point-to-multipoint");
i++;
}
if(!i)
{
printf("\nNo ports/cards defined!\n");
return(-1);
}
if(cards[type[i-1]-1].ports>port[i-1])
{
printf("\nNot all ports for the last card are defined. Please do that even if they will be not\nused! Select 'NT-mode' for these unused ports.\n");
gotomoreports;
}
printf("\nEnter LAW audio mode. For a-LAW (default), just enter 0. For u-LAW enter 1.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
lawopt=strtoul(input,NULL,0);
printf("\nEnter debugging flags of mISDN core. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
coredebug=strtoul(input,NULL,0);
printf("\nEnter debugging flags of cards. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
carddebug=strtoul(input,NULL,0);
printf("\nEnter l1 debugging flags of driver. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
l1debug=strtoul(input,NULL,0);
printf("\nEnter l2 debugging flags of driver. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
l2debug=strtoul(input,NULL,0);
printf("\nEnter l3 debugging flags of driver. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
scanf("%s",input);
l3debug=strtoul(input,NULL,0);
printf("\nEnter dsp debugging flags of driver. For no debug, just enter 0.\n[0..n | 0xn]: ");fflush(stdout);
printf("\nWhere do you like to load the modules from, enter 0 for default, 1 for\n'/usr/local/lcr/modules/' or the full path.\n[0 | 1 | <path>]: ");fflush(stdout);
printf("\n\nFinally tell me where to write the mISDN rc file.\Enter the name 'mISDN' for current directory.\nYou may want to say '/usr/local/lcr/mISDN' or '/etc/rc.d/mISDN'\n: ");fflush(stdout);