Building and running comms/asterisk

I am trying to install asterisk on NetBSD but I am running into
problems. I wonder first if anyone is actually using this and what
version of NetBSD you are using.
I tried to build and run this on a current NetBSD and 6.0.1 system. On
current it fails to build unless I go into ./main/stdtime/localtime.c
and add "#undef HAVE_NEWLOCALE". I don't know if Asterisk's configure
script makes an error when it defines it or if it really is there but
is not being found at link time. There is no man page for it and I did
not find it in any of the headers.
It does build on the 6.0.1 system. AFAICT it does so by not defining
HAVE_NEWLOCALE.
In either case it will not work. The RTP module will not load due to
missing symbol DTLSv1_method. This is supposed to be in newer versions
of OpenSSL but again I can't find it in the current or the 6.0.1
installation.
--
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost