Davidliu 1 сар өмнө
parent
commit
f199bcf0c3
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/core/voip/bot.py

+ 3 - 0
src/core/voip/bot.py

@@ -631,6 +631,9 @@ class BotAgent:
                 acfg.natConfig.turnServer = f"stun:{self.host}:3478"
                 # acfg.natConfig.turnUsername = "username"
                 # acfg.natConfig.turnPassword = "password"
+                acfg.natConfig.udpKaIntervalSec = 30
+                acfg.natConfig.contactRewriteUse = 2
+                acfg.natConfig.sdpNatRewriteUse = 2
 
                 # Create the account
                 acc = Account(self, user_part=user_part)