[svn-commits] mnicholson: branch irroot/t38gateway-trunk r324848 - /team/irroot/t38gateway-...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 24 15:20:44 CDT 2011


Author: mnicholson
Date: Fri Jun 24 15:20:41 2011
New Revision: 324848

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324848
Log:
set the fax channel variables from the details structure one last time before
we go away

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=324848&r1=324847&r2=324848
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Fri Jun 24 15:20:41 2011
@@ -2765,14 +2765,18 @@
 	struct ast_channel *peer, *active;
 
 	/* restore audio formats when we are detached */
-	if (event == AST_FRAMEHOOK_EVENT_DETACHED && gateway->bridged) {
-		ast_set_read_format(chan, &gateway->chan_read_format);
-		ast_set_read_format(chan, &gateway->chan_write_format);
-
-		if ((peer = ast_bridged_channel(chan))) {
-			ast_set_read_format(peer, &gateway->peer_read_format);
-			ast_set_read_format(peer, &gateway->peer_write_format);
-			ast_channel_make_compatible(chan, peer);
+	if (event == AST_FRAMEHOOK_EVENT_DETACHED) {
+		set_channel_variables(chan, gateway->s->details);
+
+		if (gateway->bridged) {
+			ast_set_read_format(chan, &gateway->chan_read_format);
+			ast_set_read_format(chan, &gateway->chan_write_format);
+
+			if ((peer = ast_bridged_channel(chan))) {
+				ast_set_read_format(peer, &gateway->peer_read_format);
+				ast_set_read_format(peer, &gateway->peer_write_format);
+				ast_channel_make_compatible(chan, peer);
+			}
 		}
 
 		return NULL;




More information about the svn-commits mailing list