[asterisk-commits] dvossel: branch dvossel/generic_aoc r256416 - /team/dvossel/generic_aoc/chann...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 6 15:58:01 CDT 2010
Author: dvossel
Date: Tue Apr 6 15:57:59 2010
New Revision: 256416
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=256416
Log:
fixes issue with AOC-S not being queued onto channel in sig_pri
Modified:
team/dvossel/generic_aoc/channels/sig_pri.c
Modified: team/dvossel/generic_aoc/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/generic_aoc/channels/sig_pri.c?view=diff&rev=256416&r1=256415&r2=256416
==============================================================================
--- team/dvossel/generic_aoc/channels/sig_pri.c (original)
+++ team/dvossel/generic_aoc/channels/sig_pri.c Tue Apr 6 15:57:59 2010
@@ -2137,6 +2137,8 @@
static void sig_pri_aoc_s_from_pri(const struct pri_subcmd_aoc_s *aoc_s, struct ast_channel *owner)
{
struct ast_aoc_decoded *decoded = NULL;
+ struct ast_aoc_encoded *encoded = NULL;
+ size_t encoded_size = 0;
int idx;
if (!owner || !aoc_s) {
@@ -2197,10 +2199,14 @@
}
}
+ if ((encoded = ast_aoc_encode(decoded, &encoded_size))) {
+ ast_queue_control_data(owner, AST_CONTROL_AOC, encoded, encoded_size);
+ }
+
ast_aoc_manager_event(decoded, owner);
ast_aoc_destroy_decoded(decoded);
-
+ ast_aoc_destroy_encoded(encoded);
}
#endif /* defined(HAVE_PRI_AOC_EVENTS) */
More information about the asterisk-commits
mailing list