If you configure kamailio to listen on a multicast address (eg. `224.0.1.75`) it _auto_
selects the interface that joins the multicast group. The selection happens on what the
kernel thinks the multicast IP address is active on. This is decided by the kernel route
table since you cannot configure a multicast address on your interface. In the default
scenario this would mean the default route interface will be selected to join the
multicast group. In case you want to select another interface this is possible by altering
the route for that particular multicast address to the interface you desire. This is a
workable solution but it has the following downsides:
- need to add route manually to specify interface
- multicast for 1 specific address only possible on 1 interface
I would like to propose a solution by adding a config parameter to kamailio (eg.
`mcast_interface`) which could then be defined before each `listen` directive that is a
multicast address. This would allow for selecting an interface per listen socket in the
same way as you can specify the amount of workers for an interface. In this scenario there
is no need for manually adding a route to specify the interface.
Please let me know if this is a feature that is of interest to kamailio. If so I'd be
willing to work on this myself, but somebody else can also do it.
If something isn't clear or needs more explanation don't hesitate to ask.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/813