Davidliu 1 月之前
父節點
當前提交
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)