From: Matthew Jordan Date: Thu, 26 Jun 2014 17:16:44 +0000 (+0000) Subject: chan_pjsip: Add a test event for fast picture updates X-Git-Tag: 12.4.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f50a978a515bff00a62d378cbb883eb4aeb53a7;p=thirdparty%2Fasterisk.git chan_pjsip: Add a test event for fast picture updates This will drive the test on review r3419. Note that the patch for this was done by Ben Ford, although it was slightly modified for this commit. ASTERISK-23562 Reported by: Matt Jordan git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@417399 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index fcf2a4c1d9..ee033b5113 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -60,6 +60,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/threadstorage.h" #include "asterisk/features_config.h" #include "asterisk/pickup.h" +#include "asterisk/test.h" #include "asterisk/res_pjsip.h" #include "asterisk/res_pjsip_session.h" @@ -1140,7 +1141,9 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi ao2_cleanup(channel->session); } } + ast_test_suite_event_notify("AST_CONTROL_VIDUPDATE", "Result: Success"); } else { + ast_test_suite_event_notify("AST_CONTROL_VIDUPDATE", "Result: Failure"); res = -1; } break;