[svn-commits] tilghman: branch 1.6.0 r120566 - /branches/1.6.0/apps/app_fax.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 5 07:42:45 CDT 2008


Author: tilghman
Date: Thu Jun  5 07:42:44 2008
New Revision: 120566

URL: http://svn.digium.com/view/asterisk?view=rev&rev=120566
Log:
Fix frame API for 1.6.0 (Closes issue #12793)

Modified:
    branches/1.6.0/apps/app_fax.c

Modified: branches/1.6.0/apps/app_fax.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_fax.c?view=diff&rev=120566&r1=120565&r2=120566
==============================================================================
--- branches/1.6.0/apps/app_fax.c (original)
+++ branches/1.6.0/apps/app_fax.c Thu Jun  5 07:42:44 2008
@@ -403,7 +403,7 @@
 		   to slinear so it will still be received by ast_read */
 		if (inf->frametype == AST_FRAME_VOICE && inf->subclass == AST_FORMAT_SLINEAR) {
 
-			if (fax_rx(&fax, inf->data.ptr, inf->samples) < 0) {
+			if (fax_rx(&fax, inf->data, inf->samples) < 0) {
 				/* I know fax_rx never returns errors. The check here is for good style only */
 				ast_log(LOG_WARNING, "fax_rx returned error\n");
 				res = -1;
@@ -417,7 +417,7 @@
 			}
 		} else if (inf->frametype == AST_FRAME_CONTROL && inf->subclass == AST_CONTROL_T38 &&
 				inf->datalen == sizeof(enum ast_control_t38)) {
-			t38control =*((enum ast_control_t38 *) inf->data.ptr);
+			t38control =*((enum ast_control_t38 *) inf->data);
 			if (t38control == AST_T38_NEGOTIATED) {
 				/* T38 switchover completed */
 				ast_debug(1, "T38 negotiated, finishing audio loop\n");
@@ -522,7 +522,7 @@
 		ast_debug(10, "frame %d/%d, len=%d\n", inf->frametype, inf->subclass, inf->datalen);
 
 		if (inf->frametype == AST_FRAME_MODEM && inf->subclass == AST_MODEM_T38) {
-			t38_core_rx_ifp_packet(&t38.t38, inf->data.ptr, inf->datalen, inf->seqno);
+			t38_core_rx_ifp_packet(&t38.t38, inf->data, inf->datalen, inf->seqno);
 
 			/* Watchdog */
 			if (last_state != t38.t30_state.state) {
@@ -532,7 +532,7 @@
 		} else if (inf->frametype == AST_FRAME_CONTROL && inf->subclass == AST_CONTROL_T38 &&
 				inf->datalen == sizeof(enum ast_control_t38)) {
 
-			t38control = *((enum ast_control_t38 *) inf->data.ptr);
+			t38control = *((enum ast_control_t38 *) inf->data);
 
 			if (t38control == AST_T38_TERMINATED || t38control == AST_T38_REFUSED) {
 				ast_debug(1, "T38 down, terminating\n");




More information about the svn-commits mailing list