[asterisk-commits] jrose: branch 13 r423524 - /branches/13/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 19 09:56:48 CDT 2014


Author: jrose
Date: Fri Sep 19 09:56:37 2014
New Revision: 423524

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=423524
Log:
chan_iax2: Fix a crash when using chan_iax2 jitterbuffer settings

Caused by format changes in Asterisk 13

ASTERISK-24265 #close
Reported by: Dafi Ni
Review: https://reviewboard.asterisk.org/r/3999/

Modified:
    branches/13/channels/chan_iax2.c

Modified: branches/13/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_iax2.c?view=diff&rev=423524&r1=423523&r2=423524
==============================================================================
--- branches/13/channels/chan_iax2.c (original)
+++ branches/13/channels/chan_iax2.c Fri Sep 19 09:56:37 2014
@@ -4123,7 +4123,7 @@
 	if(ms >= (next = jb_next(pvt->jb))) {
 		struct ast_format *voicefmt;
 		voicefmt = ast_format_compatibility_bitfield2format(pvt->voiceformat);
-		ret = jb_get(pvt->jb, &frame, ms, ast_format_get_default_ms(voicefmt));
+		ret = jb_get(pvt->jb, &frame, ms, voicefmt ? ast_format_get_default_ms(voicefmt) : 20);
 		switch(ret) {
 		case JB_OK:
 			fr = frame.data;




More information about the asterisk-commits mailing list