coturn / coturn

coturn TURN server project
Other
11.07k stars 1.99k forks source link

connect with postgress and use turn_origin_to_realm table #1318

Open khanbabaei opened 9 months ago

khanbabaei commented 9 months ago

hi I have configured Coturn with a Postgre database. When I set the default realm in config to webrtc.github.io and i set data in turnusers_lt table (realm=webrtc.github.io, name=usertest, hmackey=064d6ec58e429427ead436279ca474e3), everything works fine, But when I comment out the default realm in the config file and set the turn_origin_to_realm table (origin=https://webrtc.github.io, realm=webrtc.github.io) , it does not work when i test it with https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice

Could you please tell me what I'm doing wrong?

eakraly commented 9 months ago

Hi @khanbabaei Try setting origin with https://webrtc.github.io:443 which is what admin tool would have done The code compares/expects canonical format

Or try admin tool instead of setting manually in db