On 1/5/10 2:42 PM, Olivier Taylor wrote:
for sure it's something like that, but then how to
get the IP range...
In fact, I have 2 interfaces, users are registered under the local
one, 10.0.X.X with subnet 255.255.0.0
to be sure you get it right, you ave to compare dst_ip against the IP
kamailio is listening on, not the IP of the users. So in this case would
be comparison against one IP not against network address.
Say kamailio is listening on 10.0.0.1 and 192.168.0.1, to check if the
message has been received on 10.0.0.1 you do:
if(dst_ip==10.0.0.1)
Cheers,
Daniel
I need to know if their IPs are local or not.
It's not even possible to 'print' via xlog the dst_ip.
--
Daniel-Constantin Mierla
*
http://www.asipto.com/