[asterisk-bugs] [JIRA] (ASTERISK-20149) Crash when faxing SIP to SIP with strictrtp set to yes

Johann Steinwendtner (JIRA) noreply at issues.asterisk.org
Tue Mar 18 05:10:20 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216617#comment-216617 ] 

Johann Steinwendtner commented on ASTERISK-20149:
-------------------------------------------------

This patch should consider the installed spandsp version, to free the g711 context correctly.

Index: res/res_fax_spandsp.c
===================================================================
--- res/res_fax_spandsp.c	(Revision 410826)
+++ res/res_fax_spandsp.c	(Arbeitskopie)
@@ -676,7 +676,11 @@
 		g711_decode(decoder, slndata, f->data.ptr, f->samples);
 		ast_debug(5, "spandsp transcoding frame from %s to slinear for v21 detection\n", (f->subclass.format.id == AST_FORMAT_ALAW ? "G711_ALAW" : "G711_ULAW"));
 		modem_connect_tones_rx(p->tone_state, slndata, f->samples);
+#if SPANDSP_RELEASE_DATE >= 20090211
+		g711_free(decoder);
+#else
 		g711_release(decoder);
+#endif
 		ast_free(slndata);
 
 	/* frame in other formats cannot be passed to spandsp, it could cause segfault */


> Crash when faxing SIP to SIP with strictrtp set to yes
> ------------------------------------------------------
>
>                 Key: ASTERISK-20149
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20149
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax, Resources/res_fax_spandsp
>    Affects Versions: 10.6.0, 11.5.0
>            Reporter: Alexandr Gordeev
>            Assignee: Alexandr Gordeev
>            Severity: Critical
>         Attachments: backtrace.1346914431.1467.11, backtrace_20120719.txt, backtrace_20120720.txt, backtrace_20121205.txt, backtrace_20130814_2.txt, backtrace_20130814.txt, full_20120719.txt, full_20120720.txt, spandsp_g711decode.diff, t38_gw_crash_dec_20.backtrace, t38_gw_crash_dec_20.pcap.gz, traffic_20120719.dump, traffic_20120720.dump
>
>
> Crash Asterisk (2) when faxing.
> Schema :
> Other PBX - > pri - > Asterisk 10.6.0 (1) - > sip,g729,t38 - > Asterisk 10.6.0 (2) - > sip,g711,t30- > Other PBX



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list