Asterisk 1.8 error "realtime retrieval.." with LDAP


Today I’ve upgraded my server to Asterisk 1.8, and I’m experiencing this warning on the console each time a dialplan is to be fetched from LDAP:

 [Oct 27 11:52:30] WARNING[9621]: res_config_ldap.c:964 realtime_multi_ldap: realtime retrieval requires at least 1 parameter and 1 value to search on.

The dialplan is normally executed and so the call is made. The warning didn’t appear on Asterisk 1.6.
Configuration details:

  • extconfig.conf:
extensions => ldap,"ou=extensions,o=asterisk,dc=mcd,dc=secpl",extensions
  • extensions.conf:
exten => 3000,1,Answer
exten => 3000,2,Set(CHANNEL(musicclass)=moh)
exten => 3000,3,MusicOnHold(20)
exten => 3000,4,Hangup

switch => Realtime/@

I’m seeing the same issue. I guess there’s something wrong in our LDAP database or in the config files pointing to it.

In my case, in addition to the messages you see, I’m getting a segfault: