[Kamailio-Users] allow_address and "Error while converting IP address string to in_addr"

Marcello Lupo mlist at itspecialist.it
Fri Sep 18 17:54:06 CEST 2009


Made some other tests.

copied $rd in another avp and passed it to the allow_address function  
and it is working correctly.

i made:

$avp(s:test)=$rd;
allow_address("$avp(s:test)", "$rp"))

And it is working.
Do you know where the issue with $rd can be?
regards,
Marcello

On Sep 18, 2009, at 5:35 PM, Marcello Lupo wrote:

> I made some more investigation.
> I tried to use $si in a separate check and it is working correctly.
> The problem seems to be related to the $ru or $rp PV.
> Is it possible that the $rp passed to the allow_address function is  
> not the actual one but the original request value?
> Even if the actual one has been changed in the script and if i print  
> it i get the actual value?
> Thanks,
> Marcello
>
> On Sep 18, 2009, at 5:18 PM, Marcello Lupo wrote:
>
>> Hi to all,
>> i'm using openser-1.2.2 and i'm getting the error:
>>
>> "Error while converting IP address string to in_addr"
>>
>> while using the allow_address function.
>>
>> I tried both with:
>>
>> allow_address("$(ru{uri.host})", "$rp")
>> allow_address("$rd", "$rp")
>>
>> I made debugging printng content of both $rd and $(ru{uri.host})  
>> and both return the correct value.
>> Don't know anymore where to search about it.
>> Any help?
>> Thank you,
>> regards,
>> Marcello
>>
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>





More information about the sr-users mailing list