diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-16 16:41:50 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-16 16:41:50 +0000 |
commit | c6f318b8cefca720c6d3927da837923ea29d95cc (patch) | |
tree | 431e082c72f692f349f871417830cc63bdba87bd /apps | |
parent | ee018911d6075618ea534460031502345412276d (diff) |
Merged revisions 230381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r230381 | kpfleming | 2009-11-16 10:40:25 -0600 (Mon, 16 Nov 2009) | 1 line
Fix another buglet in T.38 session teardown at the end of FAX sessions.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@230384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_fax.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c index 5e70d8317..af178f678 100644 --- a/apps/app_fax.c +++ b/apps/app_fax.c @@ -600,7 +600,6 @@ static int transmit_t38(fax_session *s) struct timeval now, start, state_change, last_frame; t30_state_t *t30state; t38_core_state_t *t38state; - struct ast_control_t38_parameters t38_parameters = { .request_response = AST_T38_REQUEST_TERMINATE, }; #if SPANDSP_RELEASE_DATE >= 20080725 /* for spandsp shaphots 0.0.6 and higher */ @@ -710,6 +709,8 @@ disable_t38: */ if ((s->caller_mode == FALSE) && (ast_channel_get_t38_state(s->chan) == T38_STATE_NEGOTIATED)) { + struct ast_control_t38_parameters t38_parameters = { .request_response = AST_T38_REQUEST_TERMINATE, }; + if (ast_indicate_data(s->chan, AST_CONTROL_T38_PARAMETERS, &t38_parameters, sizeof(t38_parameters)) == 0) { /* wait up to five seconds for negotiation to complete */ unsigned int timeout = 5000; @@ -741,7 +742,7 @@ disable_t38: struct ast_control_t38_parameters *parameters = inf->data.ptr; switch (parameters->request_response) { - case AST_T38_NEGOTIATED: + case AST_T38_TERMINATED: ast_debug(1, "Shut down T.38 on %s\n", s->chan->name); break; case AST_T38_REFUSED: |