[OpenSER-Users] is_uri_host_local() returns 1 or 4294967295 (always TRUE !!!)
Iñaki Baz Castillo
ibc at in.ilimit.es
Mon Sep 3 12:49:46 CEST 2007
El Monday 03 September 2007 12:36:52 Iñaki Baz Castillo escribió:
> Or maybe the issue is when I store the result in a variable? but why?
Humm, I think so, I think the problem is when I do:
$var(is_uri_host_local)=is_uri_host_local();
It literaly is the same as if I do:
$var(is_uri_host_local)= -1;
Then if I show the variable it gives me 4294967295.
I can solve it by doing:
$var(is_uri_host_local)=is_uri_host_local();
if ($var(is_uri_host_local) != 1) {
$var(is_uri_host_local) = "";
}
Any other better way? Thanks.
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the Users
mailing list