aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_ss7.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-05-21 17:14:12 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-05-23 09:59:25 +0200
commit6c981176abb0aa4e0edd63a107a6fb1b8e780cbb (patch)
treeca95a6ec65151a9ffca9ad64f115d32ca183dd24 /src/mgcp_ss7.c
parentcd062c8c664bf9317f726e27ed3dabb1c35618d0 (diff)
dtmf: Improve the log message and print the number of messages queued
Print the number of log messages that are queued in the error message.
Diffstat (limited to 'src/mgcp_ss7.c')
-rw-r--r--src/mgcp_ss7.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index f23dab5..e4d8799 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -97,10 +97,12 @@ static void send_dtmf(struct mgcp_endpoint *mgw_endp, int ascii_tone)
int rc;
rc = dtmf_state_add(&mgw_endp->dtmf_state, ascii_tone);
if (rc != 0) {
- fprintf(stderr, "DTMF queue too long on 0x%x\n",
- ENDPOINT_NUMBER(mgw_endp));
- syslog(LOG_ERR, "DTMF queue too long on 0x%x\n",
- ENDPOINT_NUMBER(mgw_endp));
+ fprintf(stderr, "DTMF queue too long on 0x%x with %u tones\n",
+ ENDPOINT_NUMBER(mgw_endp),
+ dtmf_tones_queued(&mgw_endp->dtmf_state));
+ syslog(LOG_ERR, "DTMF queue too long on 0x%x with %u tones\n",
+ ENDPOINT_NUMBER(mgw_endp),
+ dtmf_tones_queued(&mgw_endp->dtmf_state));
return;
}