[Users] LCR Module (How to save ip address?)

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Sep 5 10:51:19 CEST 2005


Hi Amos,

the ip is in integer format; for x.y.z.w -> (x<<24 + y<<16 + z<<8 + w)

regards,
bogdan

Amos Nungu wrote:

> Hi,
>
> I have a question on how to enter values specifically ip_address in 
> the gw table?
>
> I would like to give a go this LCR module. I'm facing a problem where 
> by: -
> 1. I created the tables (gw, lcr, gw_grp)
> 2. Inserting values into the tables ready for use.
>
> The gw:ip_addr field is int data type, not able to store the decimal 
> IP format!!
>
> How to manage that?
>
> Thanks in advance.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>





More information about the sr-users mailing list