Webrtc 有人在apprtc配置collinder中成功吗

Webrtc 有人在apprtc配置collinder中成功吗,webrtc,apprtc,Webrtc,Apprtc,我在github中的问题: 我无法为信号服务器配置apprtc,只需通过wifi呼叫视频ok,但通过移动网络没有运气。 请查看我的配置,我在任何地方都找不到constands.py的任何示例。 这是我的配置: ICE_SERVER_OVERRIDE = [ { "urls": [ "stun:stun.l.google.com:19302" ] }, { "urls": [ "turn:my_ip_address:3478?transp

我在github中的问题: 我无法为信号服务器配置apprtc,只需通过wifi呼叫视频ok,但通过移动网络没有运气。 请查看我的配置,我在任何地方都找不到constands.py的任何示例。 这是我的配置:

ICE_SERVER_OVERRIDE = [
  {
    "urls": [
      "stun:stun.l.google.com:19302"
    ]
  },
  {
    "urls": [
      "turn:my_ip_address:3478?transport=udp"
    ],
    "username": "my_account",
    "credential": "password"
  },
  {
    "urls": [
      "turn:my_ip_address:3479?transport=udp"
    ],
    "username": "my_account",
    "credential": "password"
  }
]

TURN_SERVER_OVERRIDE = [
  {
    "urls": "turn:my_ip_address:3478",
    "username": "my_account",
    "credential": "password"
  },
  {
    "urls": "stun:stun.l.google.com:19302"
  }
]

TURN_BASE_URL = 'http://my_url.com'
TURN_URL_TEMPLATE = '%s/turn?username=%s&key=%s'
CEOD_KEY = ''

ICE_SERVER_BASE_URL = 'http://my_url.com'
ICE_SERVER_URL_TEMPLATE = '%s/v1alpha/iceconfig?key=%s'
ICE_SERVER_API_KEY = os.environ.get('ICE_SERVER_API_KEY')
碰撞器实例信息常量中的字典键。 当我在原始代码中更改为默认值时,它只能通过Wifi工作,没有移动网络工作,我还使用pem文件在端口3478中运行turnserver,在8443中运行collinder。
因此,任何人都可以告诉我如何为移动连接成功测试collinder和turnserver配置?

我在两年前配置apprtc时发现了错误: 只需如下配置ICE服务器:

ICE_SERVER_OVERRIDE = [
    {
        "urls": [
        "stun:stun.l.google.com:19302"
        ]
    },
    {
        "urls": [
        "turn:my_ip_address:3478?transport=udp"
        ],
        "username": "my_account",
        "credential": "password"
    },
    {
        "urls": [
        "turn:my_ip_address:3479?transport=udp"
        ],
        "username": "my_account",
        "credential": "password"
    }
]
ICE_SERVER_BASE_URL = 'http://my_url.com'
ICE_SERVER_URL_TEMPLATE = '%s/v1alpha/iceconfig?key=%s'
ICE_SERVER_API_KEY = os.environ.get('ICE_SERVER_API_KEY')
和在/etc/turnserver.conf中 错误原因是:当我配置“lt cred mech”身份验证时,它失败了。 所以,我把它改为“oauth”:它成功了。 此网站中的测试转向服务器(Collinder):


请有人来救我。
ICE_SERVER_OVERRIDE = [
    {
        "urls": [
        "stun:stun.l.google.com:19302"
        ]
    },
    {
        "urls": [
        "turn:my_ip_address:3478?transport=udp"
        ],
        "username": "my_account",
        "credential": "password"
    },
    {
        "urls": [
        "turn:my_ip_address:3479?transport=udp"
        ],
        "username": "my_account",
        "credential": "password"
    }
]
ICE_SERVER_BASE_URL = 'http://my_url.com'
ICE_SERVER_URL_TEMPLATE = '%s/v1alpha/iceconfig?key=%s'
ICE_SERVER_API_KEY = os.environ.get('ICE_SERVER_API_KEY')
cert=/root/cert.pem
pkey=/root/key.pem

listening-port=3478
tls-listening-port=5349

listening-ip=my_ip_address

relay-ip=my_ip_address
external-ip=my_ip_address

realm=my_web_address
server-name=my_web_address

#lt-cred-mech
userdb=/etc/turnuserdb.conf
oauth
user=my_account:my_password
no-stdout-log
# The result very fast (like sturn url of Google):
0.005   1   host    3868393361  udp 192.168.1.157   35353   126 | 30 | 255
0.006   1   host    891932622   udp xxxx:xxxx:12c7:xxxx:247e:xxxx:3c18:xxxx 51606   126 | 40 | 255
0.009   1   srflx   842163049   udp aa.bb.cc.dd 3341    100 | 30 | 255
0.062   1   relay   3031532034  udp my_turn_ip_address  62030   2 | 30 | 255
0.105   Done
0.109