]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[test] Fix fst_session_park() to wait for CF_PARK instead of CS_PARK. CF_PARK will...
authorChris Rienzo <chris@signalwire.com>
Sat, 20 Feb 2021 19:17:50 +0000 (19:17 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Mar 2021 16:46:18 +0000 (19:46 +0300)
src/include/test/switch_test.h

index eb6f7f3ee6d442d09a38b860128b6aae63d2065e..3413884145d5029c5929a5dab570a725e3ebd194 100644 (file)
@@ -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