just want to share my use case if anyone has similar purpose:
I was using mediaproxy
module and have own load balancing/failover outside of kamailio
.
the id for media server was ip address string
which will be put into media_relay_avp
.
so for the uniqueness, I just need to convert ip address string
into unsigned int
as media server id to issue command to.
int
variable only supports ip address that the first field is less than 127
use unsigned int
can easily convert ip string/int back and forth while keeping uniqueness.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.