[Serusers] Re: LCR usage (How to enter data in gw table?)
Andres
andres at telesip.net
Tue Sep 6 18:28:46 CEST 2005
Andres wrote:
> Klaus Darilion wrote:
>
>> Andres wrote:
>>
>>>
>>> You can convert IP address a.b.c.d to unsigned integer using:
>>>
>>> int = d * 224 + c * 216 + b * 28 + a
>>
>>
>>
> Sorry about that. Klaus is correct. I did a copy paste from
> somewhere else without even reading!
>
It should have read int = d * 2^24 + c * 2^16 + b * 2^8 + a
> Andres.
>
>> I do not think that this will work. Try
>> a+b*256+c*65536+d*16777216
>>
>> Or even better: Backport this patch:
>> http://cvs.sourceforge.net/viewcvs.py/openser/sip-server/scripts/sc?r1=1.5&r2=1.6
>>
>>
>> regards
>> klaus
>>
>>
>
>
More information about the sr-users
mailing list