aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/isdn_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/misdn/isdn_lib.c')
-rw-r--r--channels/misdn/isdn_lib.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c
index e143ae588..2942ecfbb 100644
--- a/channels/misdn/isdn_lib.c
+++ b/channels/misdn/isdn_lib.c
@@ -2259,7 +2259,7 @@ void misdn_tx_jitter(struct misdn_bchannel *bc, int len)
flip_buf_bits( data, jlen);
if (jlen < len) {
- cb_log(7,bc->port,"Jitterbuffer Underrun.\n");
+ cb_log(1, bc->port, "Jitterbuffer Underrun. Got %d of expected %d\n", jlen, len);
}
txfrm->prim = DL_DATA|REQUEST;
@@ -2295,11 +2295,16 @@ void misdn_tx_jitter(struct misdn_bchannel *bc, int len)
txfrm->addr = bc->addr|FLG_MSG_DOWN; /* | IF_DOWN; */
txfrm->len =len;
- cb_log(9, bc->port, "Transmitting %d samples 2 misdn\n", txfrm->len);
+ cb_log(5, bc->port, "Transmitting %d samples of silence to misdn\n", len);
r=mISDN_write( glob_mgr->midev, buf, txfrm->len + mISDN_HEADER_LEN, 8000 );
+#else
+ r = 0;
#endif
+ }
+ if (r < 0) {
+ cb_log(1, bc->port, "Error in mISDN_write (%s)\n", strerror(errno));
}
}