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
2 Answers
0
votes
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.