From: Anthony Minessale Date: Tue, 10 Jan 2017 17:20:20 +0000 (-0600) Subject: FS-9929: [core,mod_spandsp] Assert in switch_frame_buffer_dup when receiving a fax... X-Git-Tag: v1.8.0~923 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3ff00368753c220fe909c702ab6c2c78977f53;p=thirdparty%2Ffreeswitch.git FS-9929: [core,mod_spandsp] Assert in switch_frame_buffer_dup when receiving a fax using t.38 #resolve --- diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_fax.c b/src/mod/applications/mod_spandsp/mod_spandsp_fax.c index 81dabb3f44..acb707588a 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_fax.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp_fax.c @@ -640,6 +640,7 @@ static int t38_tx_packet_handler(t38_core_state_t *s, void *user_data, const uin /* we need to build a real packet here and make write_frame.packet and write_frame.packetlen point to it */ out_frame.flags = SFF_UDPTL_PACKET | SFF_PROXY_PACKET; out_frame.packet = pkt; + out_frame.buflen = LOCAL_FAX_MAX_DATAGRAM; if ((r = udptl_build_packet(pvt->udptl_state, pkt, buf, len)) > 0) { out_frame.packetlen = r; //switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "WRITE %d udptl bytes\n", out_frame.packetlen);