From 1ef1b937765a055dc06dfbfdc95e802ec0c09377 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 11 Feb 2018 11:57:08 +0100 Subject: [PATCH] B-Netz: Give warning about possibly unsupported channels --- src/bnetz/bnetz.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bnetz/bnetz.c b/src/bnetz/bnetz.c index 4f5a564..570dde6 100644 --- a/src/bnetz/bnetz.c +++ b/src/bnetz/bnetz.c @@ -177,6 +177,11 @@ int bnetz_create(int kanal, const char *audiodev, int use_sdr, int samplerate, d return -EINVAL; } + if (kanal >= 38 && kanal <= 39) + PDEBUG(DBNETZ, DEBUG_NOTICE, "Selected channel ('Kanal') number %d may not be supported by older B1-Network phones.\n", kanal); + if (kanal >= 50) + PDEBUG(DBNETZ, DEBUG_NOTICE, "Selected channel ('Kanal') number %d belongs to B2-Network and is not supported by B1 phones.\n", kanal); + if ((gfs < 1 || gfs > 19)) { PDEBUG(DBNETZ, DEBUG_ERROR, "Given 'Gruppenfreisignal' %d invalid.\n", gfs); return -EINVAL;