Skip to content

Commit c747bac

Browse files
committed
Make MM_INIT_DELAY configurable. Bump stats timeout by 2 seconds
to help with extra delays running in emulation.
1 parent d04e53e commit c747bac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

functions

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ case "${RTPPC_TYPE}" in
8181
*) fail_rc 1 "Unknown socket type RTPPC_TYPE=${RTPPC_TYPE}";;
8282
esac
8383

84-
MM_INIT_DELAY=1
84+
MM_INIT_DELAY="${MM_INIT_DELAY:-"1"}"
8585
RTPP_STAT_TIMEOUT=$((36 + ${MM_INIT_DELAY}))
8686
ALICE_TIMEOUT=45
8787
BOB_TIMEOUT=45
@@ -93,9 +93,8 @@ then
9393
MM_SOCK_BARE="${BASEDIR}/b2bua.sock"
9494
MM_SOCK="unix:${MM_SOCK_BARE}"
9595
# Python b2bua needs slightly more time to init everything
96-
MM_INIT_DELAY=5
9796
# RTP sessions might take up to 60 seconds to disconnect on no media
98-
RTPP_STAT_TIMEOUT=$((70 + ${MM_INIT_DELAY}))
97+
RTPP_STAT_TIMEOUT=$((72 + ${MM_INIT_DELAY}))
9998
RTPP_PRE_STAT_TIMEOUT=$((55 + ${MM_INIT_DELAY}))
10099
ALICE_TIMEOUT=90
101100
BOB_TIMEOUT=90

0 commit comments

Comments
 (0)