[Serusers] IP address
Jan Janak
jan at iptel.org
Wed Jun 16 11:42:52 CEST 2004
The IP address is stored in network byte order, use ntohl to convert it.
Jan.
On 11-06 16:25, l.gaillard01 at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list