Hello,
On 5/29/12 11:29 AM, Øyvind Kolbu wrote:
Hi,
is there a way to validate a domain, e.g. it resolves to something, without
calling t_relay() or forward() and checking the return code?
In my case I'd like to validate enum results before dispatching it
to our outbound proxies. If not valid I must use the pstn servers.
In the logs I can see a function named sip_hostport2su does some
validation, but it seems to be a c-function only. From the log:
ERROR: <core> [resolve.c:1540]: ERROR: sip_hostport2su: could not resolve hostname:
"example.org"
ERROR: tm [ut.h:327]: failed to resolve "example.org"
that function is
not exported in config, maybe with the next major
release (3.4). At this moment the options are using embedded languages,
such as Lua, or exec module.
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 -
http://asipto.com/u/katu