Yealink Forums

Full Version: ldap search space problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
We have problem with ldap search on incomming call. Record is found by ldap server but the number return by ldap has space, so the T46 does not display result. Is there a way to force display?
Bye
Hi,

has there been a fix or workaround for that?

we also use t46g phones.
searching the directory works fine.

also in the logs there seems to be the correct entry returned on incoming calls, but the name is not displayed.
Code:
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > Repalce result newstring src:(|(givenName=<incoming Number without spaces>*)(sn=<incoming Number without spaces>*)(uid=<incoming Number without spaces>*)(mobile=<incoming Number without spaces>*)(telephoneNumber=<incoming Number without spaces>*))
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > search attrs is (cn mobile)
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > pNameattr = cn
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > strcpy attrs to break = cn
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > value: <givenName SurName>
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > numattrs: mobile  attr:cn
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > strcmp: <givenName SurName> i:0
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > value: <incoming Number with spaces>
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > numattrs: mobile  attr:mobile
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > ber_free ptr
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > name = [<givenName SurName] number=[<incoming Number with spaces>]
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > 1 result(s) found!
Oct 15 11:12:05 LDAP[448]: LDAP<6+info  > yealink ldap memfree
Oct 15 11:12:05 LDAP[448]: LDAP<5+notice> unbind

we just upgraded to (which did not fix the problem):
Firmware Version 28.72.0.45
Hardware Version 28.2.0.128.0.0.0

previosly we also had the problem that dailing numbers from the ldap (which had spaces) failed, but we added the "space" to the "Call Number Filter" to work around this problem.

if any further information is needed, please let me know.

any help would be great!
Thanks.
Hi Maennlse,

Can you send us your phone configuration file.
Will check the issue locally.

Regards,
James
Hi Maennlse,

Sorry for the late reply. Please try below filter rule:

ldap.name_filter = (|(cn=%)(sn=%)(telephoneNumber=%)(mobile=%))
ldap.number_filter = (|(telephoneNumber=%)(mobile=%))

Regards,
James
Reference URL's