Free Switch 端口配置
Free Switch处于防火墙内,因此需要在防火墙上开启相关端口映射,否则无法接收到数据包.
下表为各个模块默认使用的端口列表:
FireWall Ports | Network Protocol |
Application Protocol | Description |
1719 | UDP | H.323 Gatekeeper RAS port | |
1720 | TCP | H.323 Call Signaling | |
3478 | UDP | STUN service | Used for NAT traversal |
3479 | UDP | STUN service | Used for NAT traversal |
5002 | TCP | MLP protocol server | |
5003 | UDP | Neighborhood service | |
5060 | UDP & TCP | SIP UAS | Used for SIP signaling (Standard SIP Port, for default Internal Profile) |
5070 | UDP & TCP | SIP UAS | Used for SIP signaling (For default "NAT" Profile) |
5080 | UDP & TCP | SIP UAS | Used for SIP signaling (For default "External" Profile) |
8021 | TCP | ESL | Used for mod_event_socket * |
16384-32768 | UDP | RTP/ RTCP multimedia streaming |
Used for audio/video data in SIP and other protocols |
5066 | TCP | Websocket | Used for WebRTC |
7443 | TCP | Websocket | Used for WebRTC |
例如
1.不能连接到FS,则配置连接端口,以UDP方式连接为例
图1
2.能连接FreeSwitch但通话没有声音,则再新建一个入站规则(RTP/RTCP)
图2
远程端口对应的是,客户端指定的auto rtp port,其范围可在所使用的SIP客户端进行查找.