X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=interface.c;h=a312e4eb98986970a96511a4e9860a9a06be9384;hp=1495d3bdfa78e3603bd5f8481987dcc9b3d89d98;hb=dec6fabc354cdfe7188340623afb192b4a3fb062;hpb=591926f2029e5a0fec3adf63bc709c9ef39134b2 diff --git a/interface.c b/interface.c index 1495d3b..a312e4e 100644 --- a/interface.c +++ b/interface.c @@ -1127,7 +1127,8 @@ struct interface_param interface_param[] = { "Channel selection list for all outgoing calls to the interface.\n" "A free channels is searched in order of appearance.\n" "This parameter must follow a 'port' parameter.\n" - " force - Forces the selected port with no acceptable alternative (see DSS1).\n" + " force - Forces the selected port with no acceptable alternative (see Q.931).\n" + " -> this will be automatically set for multipoint (ptmp) NT-mode ports\n" " [,...] - List of channels to search.\n" " free - Select any free channel\n" " any - On outgoing calls, signal 'any channel acceptable'. (see DSS1)\n" @@ -1434,6 +1435,9 @@ static void set_defaults(struct interface_port *ifport) default_out_channel(ifport); if (!ifport->in_channel) default_in_channel(ifport); + /* must force the channel on PTMP/NT ports */ + if (!ifport->mISDNport->ptp && ifport->mISDNport->ntmode) + ifport->channel_force = 1; /* default is_tones */ if (ifport->interface->is_tones) ifport->mISDNport->tones = (ifport->interface->is_tones==IS_YES);