Files
telephony/net/asterisk-chan-lantiq/patches/0004-report-state-in-lantiq_dev_event_digit.patch
Daniel Golle d1123a245b asterisk-chan-lantiq: import patches improving log output
Output channel state in log message if a digit ends up not being handled.
Report USER_BUSY as cause in case a phone is not on hook while being
called.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-29 02:14:04 +01:00

25 lines
835 B
Diff

From c1af296bac46a828f16c616f0f470b0d525e7860 Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Sat, 29 Jun 2024 01:12:47 +0100
Subject: [PATCH 2/2] report state in lantiq_dev_event_digit
Inform user about channel state in case of unhandled digit.
As it is not really an error, use NOTICE log level instead of ERROR.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
src/channels/chan_lantiq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/channels/chan_lantiq.c
+++ b/src/channels/chan_lantiq.c
@@ -1574,7 +1574,7 @@ static void lantiq_dev_event_digit(int c
}
break;
default:
- ast_log(LOG_ERROR, "don't know what to do in unhandled state\n");
+ ast_log(LOG_NOTICE, "don't know what to do in unhandled state %s\n", state_string(pvt->channel_state));
break;
}