Yeti-lnp-resolver unable to start

Hi,
While configuring yeti-lnp-resolver, I am facing the following error.

sems yeti-lnp-resolver[25687]: [25687] error: yeti_lnp_resolver.cpp:56: can’t init resolvers
sems yeti-lnp-resolver[25687]: [25687] info: yeti_lnp_resolver.cpp:63: terminated
sems yeti-lnp-resolver[26629]: [26629] info: yeti_lnp_resolver.cpp:49: start
sems yeti-lnp-resolver[26629]: [26629] error: Resolver.cpp:60: pqxx_exception: ERROR: function load_lnp_databases() does not exist#012LINE 1: SELECT * FROM load_lnp_databases()#012 ^#012HINT: No function matches the given name and argument types. You might need to add explicit type casts.

looks like mistake in configuration. Show your system.cfg

Here it is.

lnp {
globals {
daemon {
listen = {
“tcp://0.0.0.0:3333”,
“tcp://0.0.0.0:3332”
}
log_level = 2
}
db {
host = routing_db_ip
port = 5432
name = db_name
user = username
pass = password
schema = switch18
conn_timeout = 0
check_interval = 5000
}
sip {
contact_user = yeti-lnp-resolver
from_uri = sip:yeti-lnp-resolver@localhost
from_name = yeti-lnp-resolver
}
}
node 1 { }
}

try schema = lnp

Thank you Dmitry. It’s working fine now. It would be better to update the configuration in github repo as well.

Moreover, there is probably a mistake in a LNP driver module.

https://github.com/yeti-switch/yeti-lnp-resolver/blob/master/server/src/drivers/HttpAlcazarDriver.h

Line: 28

const char * geKey() const { return mHost.c_str(); }

It should be

const char * geKey() const { return mKey.c_str(); }

Currently resultant API call is using hostname as a key which is wrong.

Thanks, we will fix it soon. You also can open pull request if you have enough skills.