Juha Heinanen writes:
It would be better to use the name of the interface (in above wlp1s0) with call if_nametoindex(ifname). Is the name available?
In baresip ifname is available and I can use the if_nametoindex() call. I don't know where it got the name,
-- Juha