is there a function or way to compare an ip store in pseudo variable to one kamailio ips ? 

 i would for example 

if ( $nh(d) == myself )