[asterisk-commits] pcadach: branch pcadach/chan_h323-live r41670 -
/team/pcadach/chan_h323-live/...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Aug 31 21:21:21 MST 2006
Author: pcadach
Date: Thu Aug 31 23:21:21 2006
New Revision: 41670
URL: http://svn.digium.com/view/asterisk?rev=41670&view=rev
Log:
More readable messages on variable length DTMFs
Modified:
team/pcadach/chan_h323-live/channels/chan_h323.c
Modified: team/pcadach/chan_h323-live/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/chan_h323.c?rev=41670&r1=41669&r2=41670&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/chan_h323.c (original)
+++ team/pcadach/chan_h323-live/channels/chan_h323.c Thu Aug 31 23:21:21 2006
@@ -1575,14 +1575,14 @@
struct oh323_pvt *pvt;
int res;
- if (h323debug)
- ast_log(LOG_DEBUG, "Received digit '%c' (%u ms) for call %s\n", digit, duration, token);
-
pvt = find_call_locked(call_reference, token);
if (!pvt) {
- ast_log(LOG_ERROR, "Private structure not found in receive_digit.\n");
+ ast_log(LOG_ERROR, "Received digit '%c' (%u ms) for call %s without private structure\n", digit, duration, token);
return -1;
}
+ if (h323debug)
+ ast_log(LOG_DEBUG, "Received %s digit '%c' (%u ms) for call %s\n", (digit == ' ' ? "update for" : "new"), (digit == ' ' ? pvt->curDTMF : digit), duration, token);
+
if (pvt->owner && !ast_channel_trylock(pvt->owner)) {
if (digit == '!')
res = ast_queue_control(pvt->owner, AST_CONTROL_FLASH);
More information about the asterisk-commits
mailing list