[asterisk-commits] file: branch 1.2 r62037 - /branches/1.2/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Apr 26 09:30:58 MST 2007


Author: file
Date: Thu Apr 26 11:30:57 2007
New Revision: 62037

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62037
Log:
Revert previous fix for when the IAX2 channel goes funky (that's the technical term). This is causing legit calls to be prematurely hung up. (issue #9600 reported by justdave)

Modified:
    branches/1.2/channels/chan_iax2.c

Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?view=diff&rev=62037&r1=62036&r2=62037
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Thu Apr 26 11:30:57 2007
@@ -3164,8 +3164,12 @@
 
 static struct ast_frame *iax2_read(struct ast_channel *c) 
 {
-	ast_log(LOG_NOTICE, "I should never be called! Hanging up.\n");
-	return NULL;
+	static struct ast_frame null_frame = {
+		AST_FRAME_NULL,
+	};
+
+	ast_log(LOG_NOTICE, "I should never be called!\n");
+	return &null_frame;
 }
 
 static int iax2_start_transfer(unsigned short callno0, unsigned short callno1)



More information about the asterisk-commits mailing list