[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r324536 - /team/irroot/t38gateway-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 22 14:29:02 CDT 2011
Author: mnicholson
Date: Wed Jun 22 14:28:57 2011
New Revision: 324536
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324536
Log:
use a check that actually might work to detect reserved/incomplete sessions
Modified:
team/irroot/t38gateway-trunk/res/res_fax.c
Modified: team/irroot/t38gateway-trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax.c?view=diff&rev=324536&r1=324535&r2=324536
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed Jun 22 14:28:57 2011
@@ -2657,7 +2657,7 @@
static void fax_gateway_framehook_destroy(void *data) {
struct fax_gateway *gateway = data;
- if (gateway->s && !gateway->token) {
+ if (gateway->s && gateway->s->status != AST_FAX_STATE_INACTIVE && gateway->s->status != AST_FAX_STATE_RESERVED) {
if (gateway->s->tech->cancel_session) {
gateway->s->tech->cancel_session(gateway->s);
}
More information about the asterisk-commits
mailing list