[svn-commits] kmoore: branch 12 r420513 - /branches/12/tests/test_cel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 7 21:51:18 CDT 2014
Author: kmoore
Date: Thu Aug 7 21:51:15 2014
New Revision: 420513
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420513
Log:
CEL: Update unit tests for additional information
This updates the CEL unit tests for the new information contained in
the attended transfer CEL extra field.
Modified:
branches/12/tests/test_cel.c
Modified: branches/12/tests/test_cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/tests/test_cel.c?view=diff&rev=420513&r1=420512&r2=420513
==============================================================================
--- branches/12/tests/test_cel.c (original)
+++ branches/12/tests/test_cel.c Thu Aug 7 21:51:15 2014
@@ -176,12 +176,14 @@
APPEND_EVENT(channel, AST_CEL_BLINDTRANSFER, NULL, extra); \
} while (0)
-#define ATTENDEDTRANSFER_BRIDGE(channel1, bridge1, channel2, bridge2) do { \
+#define ATTENDEDTRANSFER_BRIDGE(channel1, bridge1, channel2, bridge2, channel3, channel4) do { \
RAII_VAR(struct ast_json *, extra, NULL, ast_json_unref); \
- extra = ast_json_pack("{s: s, s: s, s: s}", \
+ extra = ast_json_pack("{s: s, s: s, s: s, s: s, s: s}", \
"bridge1_id", bridge1->uniqueid, \
"channel2_name", ast_channel_name(channel2), \
- "bridge2_id", bridge2->uniqueid); \
+ "bridge2_id", bridge2->uniqueid, \
+ "transferee_channel_name", ast_channel_name(channel4), \
+ "transfer_target_channel_name", ast_channel_name(channel3)); \
ast_test_validate(test, extra != NULL); \
APPEND_EVENT(channel1, AST_CEL_ATTENDEDTRANSFER, NULL, extra); \
} while (0)
@@ -1322,7 +1324,7 @@
BRIDGE_ENTER_EVENT_PEER(chan_bob, bridge2, "CELTestChannel/David,CELTestChannel/Charlie");
BRIDGE_EXIT_EVENT(chan_david, bridge2);
- ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2);
+ ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2, chan_charlie, chan_bob);
BRIDGE_EXIT_EVENT(chan_alice, bridge1);
do_sleep();
@@ -1404,7 +1406,7 @@
BRIDGE_EXIT_EVENT(chan_david, bridge2);
BRIDGE_EXIT_EVENT(chan_alice, bridge1);
- ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2);
+ ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2, chan_charlie, chan_bob);
do_sleep();
BRIDGE_EXIT(chan_bob, bridge1);
@@ -1489,7 +1491,7 @@
APPEND_DUMMY_EVENT();
APPEND_DUMMY_EVENT();
- ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2);
+ ATTENDEDTRANSFER_BRIDGE(chan_alice, bridge1, chan_david, bridge2, chan_charlie, chan_bob);
ast_bridge_transfer_attended(chan_alice, chan_david);
do_sleep();
More information about the svn-commits
mailing list