NMT: Assign traffic channel for outgoing and incoming calls

This way the control channel stays available for other (idle) phones.

No more loss of coverage for other phones, when a call to a mobile is
made.

It is still possible to define a combined control+traffic channel.
(e.g. for single channel setup)
This commit is contained in:
Andreas Eversberg
2017-10-28 19:01:27 +02:00
parent 5c33b8824b
commit 87a21a285a
2 changed files with 82 additions and 18 deletions

View File

@@ -314,10 +314,11 @@ int main(int argc, char *argv[])
for (i = 0; i < num_kanal; i++)
audiodev[i] = "sdr";
num_audiodev = num_kanal;
/* set chan_type */
if (num_chan_type == 0) {
for (i = 0; i < num_kanal; i++)
chan_type[i] = CHAN_TYPE_CC_TC;
/* set channel types for more than 1 channel */
if (num_kanal > 1 && num_chan_type == 0) {
chan_type[0] = CHAN_TYPE_CC;
for (i = 1; i < num_kanal; i++)
chan_type[i] = CHAN_TYPE_TC;
num_chan_type = num_kanal;
}
if (num_supervisory == 0) {