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
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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hello,
On 18.09.2009 17:18 Uhr, Marcello Lupo wrote:
Hi to all, i'm using openser-1.2.2 and i'm getting the error:
this is pretty old release, most probably at that time the PV support was not propagated much in module parameters, but only the AVPs. AFAIK, transformations came a bit later, so first for is wrong.
Can you upgrade to a newer version (1.5) and try?
Cheers, Daniel
"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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
For the moment i solved passing through AVP. For the upgrade i'm thinking about it but it. It need quite lot of changes around in the config/db and it is a production server so is hard to upgrade without some downtime. I will do it when we will have replicated the installation and will have 2 balanced systems. Thank you for your answer. Regards, Marcello
On Sep 21, 2009, at 10:34 AM, Daniel-Constantin Mierla wrote:
Hello,
On 18.09.2009 17:18 Uhr, Marcello Lupo wrote:
Hi to all, i'm using openser-1.2.2 and i'm getting the error:
this is pretty old release, most probably at that time the PV support was not propagated much in module parameters, but only the AVPs. AFAIK, transformations came a bit later, so first for is wrong.
Can you upgrade to a newer version (1.5) and try?
Cheers, Daniel
"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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla