1.6.0.3 sip registration and host=dynamic forever with ldap

Hi!
I’m try to use LDAP for Asterisk Realtime with existing ldap schema, which is not adapted for asterisk, and I don’t want to change my existing schema.

for example:

extconfig.conf
[settings]
sipusers => ldap,"o=YYY,c=XX",mysip
sippeers => ldap,"o=YYY,c=XX",mysip

res_ldap.conf
[mysip]
name = uid
additionalFilter=(objectClass=account)
md5secret = userPassword

When sip client try to register, I see these messages:
[Jan 23 09:29:01] ERROR[30693]: chan_sip.c:10593 register_verify: Peer ‘user’ is trying to register, but not configured as host=dynamic
[Jan 23 09:29:01] NOTICE[30693]: chan_sip.c:18390 handle_request_register: Registration from ‘sip:user@IPasterisk’ failed for ‘IPuser’ - Peer is not supposed to register

I can set in sip.conf [general] language, allow, videosupport with values? which I needed, and I can see results in CLI with commands “show peer user load”, “sip show user user load”, but “Dynamic : No” forever.

How to set host=dynamic forever in my case?

Thank you.
Sorry for my English.

this is not possible


channels/chan_sip.c
register_verify
find_peer
realtime_peer

main/config.c
ast_load_realtime
ast_load_realtime_helper
realtime_func

res/res_config_ldap.c
ast_config_engine