[asterisk-commits] dvossel: branch dvossel/generic_aoc r254888 - /team/dvossel/generic_aoc/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 25 16:56:14 CDT 2010


Author: dvossel
Date: Thu Mar 25 16:56:11 2010
New Revision: 254888

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=254888
Log:
generate error on AOC-S encode, this feature is not supported yet

Modified:
    team/dvossel/generic_aoc/main/aoc.c

Modified: team/dvossel/generic_aoc/main/aoc.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/generic_aoc/main/aoc.c?view=diff&rev=254888&r1=254887&r2=254888
==============================================================================
--- team/dvossel/generic_aoc/main/aoc.c (original)
+++ team/dvossel/generic_aoc/main/aoc.c Thu Mar 25 16:56:11 2010
@@ -370,6 +370,11 @@
 	if (!decoded || !out_size) {
 		return NULL;
 	}
+
+	if (decoded->msg_type == AST_AOC_S) {
+		ast_log(LOG_ERROR, "Cannot encode AOC-S message, pass through of AOC-S is supported\n");
+		return NULL;
+	}
 	*out_size = 0;
 
 	/* create information element buffer before allocating the payload,




More information about the asterisk-commits mailing list