From: Matthew Jordan Date: Fri, 17 Oct 2014 01:45:06 +0000 (+0000) Subject: test_cel: Update pickup test to expect CANCEL instead of ANSWSER X-Git-Tag: 12.7.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a1a21afc2719a7357bdef8d6c5b9e1316bfd5df;p=thirdparty%2Fasterisk.git test_cel: Update pickup test to expect CANCEL instead of ANSWSER The CEL pickup test previously looked for a disposition of ANSWER between the original caller/peer when the call is picked up. This is actually incorrect: the disposition should, at the very least, not be ANSWER as the call was never ANSWERed. The disposition is now CANCEL; this patch updates the test accordingly. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@425757 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/tests/test_cel.c b/tests/test_cel.c index 9be0b3de5c..9e5d571f87 100644 --- a/tests/test_cel.c +++ b/tests/test_cel.c @@ -1583,7 +1583,7 @@ AST_TEST_DEFINE(test_cel_dial_pickup) ast_channel_publish_dial(chan_caller, chan_callee, NULL, "ANSWER"); - HANGUP_CHANNEL(chan_caller, AST_CAUSE_NORMAL, "ANSWER"); + HANGUP_CHANNEL(chan_caller, AST_CAUSE_NORMAL, "CANCEL"); HANGUP_CHANNEL(chan_callee, AST_CAUSE_NORMAL, ""); return AST_TEST_PASS;