[asterisk-commits] mjordan: branch mjordan/udptl r350366 - /team/mjordan/udptl/apps/app_fax.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 11 13:28:00 CST 2012
Author: mjordan
Date: Wed Jan 11 13:27:56 2012
New Revision: 350366
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=350366
Log:
Instrumented to see if app_fax is the culprit
Modified:
team/mjordan/udptl/apps/app_fax.c
Modified: team/mjordan/udptl/apps/app_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/udptl/apps/app_fax.c?view=diff&rev=350366&r1=350365&r2=350366
==============================================================================
--- team/mjordan/udptl/apps/app_fax.c (original)
+++ team/mjordan/udptl/apps/app_fax.c Wed Jan 11 13:27:56 2012
@@ -805,6 +805,7 @@
}
s->t38state = ast_channel_get_t38_state(s->chan);
+ ast_debug(1, "@@@@ - Got T38 state %d from channel %s\n", s->t38state, s->chan->name);
if (s->t38state != T38_STATE_NEGOTIATED) {
/* T38 is not negotiated on the channel yet. First start regular transmission. If it switches to T38, follow */
pbx_builtin_setvar_helper(s->chan, "FAXMODE", "audio");
@@ -812,6 +813,7 @@
if (res > 0) {
/* transmit_audio reports switchover to T38. Update t38state */
s->t38state = ast_channel_get_t38_state(s->chan);
+ ast_debug(1, "@@@@ - Got T38 state %d from channel %s\n", s->t38state, s->chan->name);
if (s->t38state != T38_STATE_NEGOTIATED) {
ast_log(LOG_ERROR, "Audio loop reports T38 switchover but t38state != T38_STATE_NEGOTIATED\n");
}
@@ -821,6 +823,8 @@
if (s->t38state == T38_STATE_NEGOTIATED) {
pbx_builtin_setvar_helper(s->chan, "FAXMODE", "T38");
res = transmit_t38(s);
+ } else {
+ ast_debug(1, "@@@@ - shazbot, state was %d, not T38_STATE_NEGOTIATED\n", s->t38state);
}
if (res) {
@@ -897,6 +901,7 @@
ast_channel_setoption(chan, AST_OPTION_FAX_DETECT, &new_fax_detect, sizeof(new_fax_detect), 0);
}
+ ast_debug(1, "@@@@ - starting transmit\n");
res = transmit(&session);
if (restore_digit_detect) {
More information about the asterisk-commits
mailing list