From: Chris Rienzo Date: Sat, 20 Feb 2021 19:17:50 +0000 (+0000) Subject: [test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will... X-Git-Tag: v1.10.6^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e49a4176b3f1583eb3064076f8676918e4dcf35;p=thirdparty%2Ffreeswitch.git [test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will be set when the channel has actually parked. --- diff --git a/src/include/test/switch_test.h b/src/include/test/switch_test.h index eb6f7f3ee6..3413884145 100644 --- a/src/include/test/switch_test.h +++ b/src/include/test/switch_test.h @@ -141,7 +141,7 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char */ #define fst_session_park(session) \ switch_ivr_park_session(session); \ - switch_channel_wait_for_state(switch_core_session_get_channel(session), NULL, CS_PARK); + switch_channel_wait_for_flag(switch_core_session_get_channel(session), CF_PARK, SWITCH_TRUE, 10000, NULL); /** * check for test requirement - execute teardown on failure