[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r323842 - /team/irroot/t38gateway-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 15 14:13:53 CDT 2011


Author: mnicholson
Date: Wed Jun 15 14:13:47 2011
New Revision: 323842

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323842
Log:
cleanup the framehook destroy_cb

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=323842&r1=323841&r2=323842
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed Jun 15 14:13:47 2011
@@ -2457,20 +2457,14 @@
  * \param data framehook data (gateway data)*/
 static void t38_gw_fh_destroy(void *data) {
 	struct fax_gateway *gateway = data;
-	struct ast_fax_session *s;
-
-	if (!gateway) {
-		return;
-	}
 
 	if (gateway->s) {
-		s = gateway->s;
-		s->tech->destroy_session(s);
 		ao2_lock(faxregistry.container);
-		ao2_unlink(faxregistry.container, s);
+		ao2_unlink(faxregistry.container, gateway->s);
 		ao2_unlock(faxregistry.container);
-		ao2_ref(s, -1);
-	}
+		ao2_ref(gateway->s, -1);
+	}
+
 	ao2_ref(gateway, -1);
 }
 




More information about the asterisk-commits mailing list