The IP address is stored in network byte order, use ntohl to convert it.
Jan.
On 11-06 16:25, l.gaillard01@free.fr wrote:
Hi,
I'm trying to get the IP address from the sip_msg and to send it in the Sip-Source-Ip-Address (using Radius) but I'm having troubles. Can anyone tell me how to do that, because when I use rc_avpair_add(&send, 108, (&_msg->rcv.src_ip.u.addr), 0) to send the attribute and the address, I get the address with the format d.c.b.a instead of a.b.c.d Please, help me
Laurent
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers