简体   繁体   中英

OpenSIPS fork=yes required when listening on multiple ports?

If I set OpenSIPS to listen on multiple ports on the same IP, do I need to set fork=yes or is that an old option no longer needed? Thanks

The parameter 'listen' can be set multiple times in the same configuration file. Doing so will instruct opensips to listen on all protocol:addresses:ports specified.

Example: listen to UDP ports 5060 and 5070 on the (fake) address 10.10.10.10

listen = udp:10.10.10.10:5060
listen = udp:10.10.10.10:5070

You can even mix different protocols and interface like:

listen = udp:eth0:5080
listen = tcp:eth1:5090

Cheers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM