How can we help you today?
Start a new topic
Answered

LDAP and country code

 Hello,


I am trying to retrieve name information from our LDAP directory on incomming and outgoing calls. The number format in the directory is "+49160xxxxxxx". The first config for ldap_number_filter is working fine with country code set:


ldap_over_tls!: off
ldap_server!: ldap.memotoo.com
ldap_port!: 389
ldap_base!: ou=xxx,dc=xxx
ldap_username!: 
ldap_password!: 
ldap_max_hits!: 50
ldap_sort_results!: on
ldap_search_filter!: (|(cn=%)(o=%)(sn=%)(givenName=%)(company=%))
ldap_number_filter!: (mobile=%)
ldap_name_attributes!: cn sn displayName o u givenName
ldap_number_attributes!: telephoneNumber homePhone otherPhone mobile
ldap_display_name!: %givenName %sn ( %o )
ldap_predict_text!: off
ldap_answer_timeout!: 7000
ldap_queue_requests!: on

PCAP Trace shows the following "searchRequest":

Filter: (|(mobile=*+49160xxxxxxx*)(mobile=*0160xxxxxxx*))


The problem arrises as soon as i start to querry for more than just one number field with country code set (which is a must for us). It wont return the caller name. Here is the second config and a PCAP Trace result:


ldap_over_tls!: off
ldap_server!: ldap.memotoo.com
ldap_port!: 389
ldap_base!: ou=xxx,dc=xxx
ldap_username!: 
ldap_password!: 
ldap_max_hits!: 50
ldap_sort_results!: on
ldap_search_filter!: (|(cn=%)(o=%)(sn=%)(givenName=%)(company=%))
ldap_number_filter!: (|(telephoneNumber=%)(mobile=%))
ldap_name_attributes!: cn sn displayName o u givenName
ldap_number_attributes!: telephoneNumber homePhone otherPhone mobile
ldap_display_name!: %givenName %sn ( %o )
ldap_predict_text!: off
ldap_answer_timeout!: 7000
ldap_queue_requests!: on

From PCAP Trace:

Filter: (|(|(telephoneNumber=*+49160xxxxxxx*)(mobile=*+49160xxxxxxx*))(|(telephoneNumber=*0160xxxxxxx*)(mobile=*0160xxxxxxx*)))


Phone: Snom 715 and 760

FW: 8.7.5.28


Greetings

Lorenz


Best Answer

Hi Lorenz,


sorry for having missed the version an model ..

This issue needs more investigations, I converted the topic into a ticket.


Thanks,


Hi Lorenz,


I don't know your LDAP structure, can you please paste here and LDAP entry in LDIF format ?


Thanks in advance,

Hi Pietro,

here is one LDIF record:

dn: cn=xxx xxx,mail=xxx@xxx.de
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
cn: xxx xxx
mail: xxx@xxx.de
givenName: xxx
sn: xxx
o: Tischlerei Vogel GmbH
title: Inhaber
cellPhone: +49160xxxxxxx
mobile: +49160xxxxxxx
telephoneNumber: +49338xxxxxx
xMozillaAnyphone: +493381xxxxxx
facsimileTelephoneNumber: +493381xxxxxx
street:: S2xlaW4gS3JldXR6ZXIgRG9yZnN0cmHDn2UgNjE=
streetAddress:: S2xlaW4gS3JldXR6ZXIgRG9yZnN0cmHDn2UgNjE=
postalCode: 14776
locality: Brandenburg an der Havel
l: Brandenburg an der Havel
st: Brandenburg
countryName: Deutschland
mozillaWorkUrl: www.xxx.de
custom1: Herr

 

I am sorry but i cant tell you much about structure and mapping with memotoos ldap server. I can tell you that the problem seems to be the country code. As soon as i delete it from the snom phone and change my ldap records to leading zeros without the +49, it will find the callers number. No matter if i search for one or more number entries on LDAP.


Thanks,

Lorenz

 

Can you please tell me the phone model and firmware version you are using ?


Thanks

 Richt there in my initial post ;)


Phone: Snom 715 and 760

FW: 8.7.5.28


Greetings

Lorenz
Answer

Hi Lorenz,


sorry for having missed the version an model ..

This issue needs more investigations, I converted the topic into a ticket.


Thanks,

Login or Signup to post a comment