Skip to content

Commit 158474e

Browse files
committed
Add switch to change the PJSIP_TRANSPORT_IDLE_TIME - closes #51
1 parent 37e60ab commit 158474e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ function setConfigSite {
9494
echo "You have not enabled Video support in config_site"
9595
fi
9696

97+
if [ "${CHANGE_PJSIP_TRANSPORT_IDLE_TIME}" == "1" ]
98+
then
99+
echo "Changing PJSIP_TRANSPORT_IDLE_TIME to $PJSIP_TRANSPORT_IDLE_TIME"
100+
echo "#define PJSIP_TRANSPORT_IDLE_TIME $PJSIP_TRANSPORT_IDLE_TIME" >> "$CONFIG_SITE_PATH"
101+
fi
102+
97103
echo "#include <pj/config_site_sample.h>" >> "$CONFIG_SITE_PATH"
98104
}
99105

config.conf

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ ENABLE_IPV6=0
214214

215215
# Patch PJSIP to use a fixed Call-ID --- see README.md in patches/fixed_callid folder
216216
USE_FIXED_CALLID=1
217+
# Change the default PJSIP_TRANSPORT_IDLE_TIME
218+
# On anonymous calls servers might not send options to keep the transport alive
219+
# in such scenario sip messages will not be received after transport shutdown
220+
CHANGE_PJSIP_TRANSPORT_IDLE_TIME=1
221+
PJSIP_TRANSPORT_IDLE_TIME=600
217222
# Apply a different fixed Call-ID patch if PJSIP version is lower than 2.11
218223
IS_PJSIP_LOWER_THAN_2_11=0
219224

0 commit comments

Comments
 (0)