summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2008-09-14 12:27:11 +0200
committerAndreas Eversberg2008-09-14 12:27:11 +0200
commit6f1ac87333108b84a083eedb89ee3eb3d9f4497b (patch)
treebc4c8ed22794873ec35dada2ff53d9a9bccdbd84 /mISDN.cpp
parentCorrected error print, if mISDN_dsp.ko module cannot be loaded. (diff)
downloadlcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.tar.gz
lcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.tar.xz
lcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.zip
Fixed trace bugs.
modified: README modified: interface.c modified: lcradmin.c modified: mISDN.cpp modified: main.c modified: socket_server.c modified: trace.c modified: vbox.cpp
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index 97f7b3e..0b4c8b0 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -1954,15 +1954,21 @@ int mISDN_handler(void)
switch(l3m->type)
{
case MPH_ACTIVATE_IND:
- l1l2l3_trace_header(mISDNport, NULL, L1_ACTIVATE_IND, DIRECTION_IN);
- end_trace();
- mISDNport->l1link = 1;
+ if (mISDNport->l1link != 1)
+ {
+ l1l2l3_trace_header(mISDNport, NULL, L1_ACTIVATE_IND, DIRECTION_IN);
+ end_trace();
+ mISDNport->l1link = 1;
+ }
break;
case MPH_DEACTIVATE_IND:
- l1l2l3_trace_header(mISDNport, NULL, L1_DEACTIVATE_IND, DIRECTION_IN);
- end_trace();
- mISDNport->l1link = 0;
+ if (mISDNport->l1link != 0)
+ {
+ l1l2l3_trace_header(mISDNport, NULL, L1_DEACTIVATE_IND, DIRECTION_IN);
+ end_trace();
+ mISDNport->l1link = 0;
+ }
break;
case MPH_INFORMATION_IND:
@@ -2160,7 +2166,7 @@ struct mISDNport *mISDNport_open(int port, char *portname, int ptp, int force_nt
}
if (port == cnt)
{
- PERROR_RUNTIME("Port name '%s' no found, use 'misdn_info' tool to list all existing ports.\n", portname);
+ PERROR_RUNTIME("Port name '%s' not found, use 'misdn_info' tool to list all existing ports.\n", portname);
return(NULL);
}
// note: 'port' has still the port number