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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 1 12:26:06 CDT 2011


Author: mnicholson
Date: Wed Jun  1 12:26:00 2011
New Revision: 321533

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321533
Log:
pass the whole ast_fax_session instead of just the pvt to t38_tx_packet_handler

Modified:
    team/irroot/t38gateway-trunk/res/res_fax_spandsp.c

Modified: team/irroot/t38gateway-trunk/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax_spandsp.c?view=diff&rev=321533&r1=321532&r2=321533
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax_spandsp.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax_spandsp.c Wed Jun  1 12:26:00 2011
@@ -183,7 +183,8 @@
  */
 static int t38_tx_packet_handler(t38_core_state_t *t38_core_state, void *data, const uint8_t *buf, int len, int count)
 {
-	struct spandsp_pvt *p = data;
+	struct ast_fax_session *s = data;
+	struct spandsp_pvt *p = s->tech_pvt;
 	struct ast_frame fax_frame = {
 		.frametype = AST_FRAME_MODEM,
 		.subclass.integer = AST_MODEM_T38,
@@ -657,7 +658,7 @@
 	p->t38_core_state=&p->t38_gw_state.t38;
 #endif
 
-	if (! t38_gateway_init(&p->t38_gw_state, t38_tx_packet_handler, p)) {
+	if (! t38_gateway_init(&p->t38_gw_state, t38_tx_packet_handler, s)) {
 		return -1;
 	}
 




More information about the asterisk-commits mailing list