Ldap search on incoming call is not working - Printable Version +- Yealink Forums (http://forum.yealink.com/forum) +-- Forum: IP Phone Series (/forumdisplay.php?fid=4) +--- Forum: Configuration (/forumdisplay.php?fid=24) +--- Thread: Ldap search on incoming call is not working (/showthread.php?tid=1208) |
RE: Ldap search on incoming call is not working - overgr - 09-19-2014 11:30 PM Same situation here with T48G - 35.72.0.30 LDAP lookup works, but not on incoming. Any help appreciated. RE: Ldap search on incoming call is not working - gekran - 10-10-2014 02:42 AM It's almost a month ago about the last reaction. Any help would be very welcome RE: Ldap search on incoming call is not working - cptjack - 10-10-2014 03:50 AM I just tested LDAP lookup on a T48G with 35.73.0.15 and it is working for me. Please check the ldap.number_filter option since that is the filter that is used to match the incoming caller ID. Here is my config: Code: ####################################################################################### RE: Ldap search on incoming call is not working - gekran - 10-10-2014 04:09 AM Hi cptjack, Thanks for your quick response. I will check it out. RE: Ldap search on incoming call is not working - gekran - 10-11-2014 02:44 AM Hi cptjack, I changed my settings as follows: Here is the config LDAP part exported from my phone [ LDAP ] bEnable = 1 strLdapName = strNameFilter = (&(cn=%)) strNumberFilter = (&(telephoneNumber=%)(mobilePhone=%)) strServerName = xxxxxxxxxx nServerPort = 389 strBase = xxxxxxxx strUserName = xxxxxxxxxx strUserPin = nMaxHits = 50 strNameAttr = cn sn strNumbAttr = telephoneNumber strDisplayName = %cn nProtocolVersion = 3 bLookup4CallIn = 1 bLookup4Dial = 1 bSortResult = 1 nSearchDelay = 0 But still no luck Any other ideas? RE: Ldap search on incoming call is not working - cptjack - 10-11-2014 04:11 AM Can you change this line: Code: strNumberFilter = (&(telephoneNumber=%)(mobilePhone=%)) Code: strNumberFilter = (|(telephoneNumber=%)(mobilePhone=%)) If that doesn't work, try putting just: Code: strNumberFilter = (&(telephoneNumber=%)) Once you have the lookup working on the telephoneNumber field, you can expand to mobilePhone. In my opinion, using the & operator will only work if it matches the telephoneNumber AND mobilePhone field both at the same time... Therefor in my example I have the | operator to match telephoneNumber OR mobilePhone. So that would be my first suggestion. Just as a quick test: also try putting the Called ID in BOTH the telephoneNumber and mobilePhone fields. This will validate the & operator thesis... RE: Ldap search on incoming call is not working - gekran - 10-13-2014 02:57 PM Hello cptjack, The strNumberFilter = (&(telephoneNumber=%)) did the trick. Now the name is showing up at incoming call. Thanks for your help. RE: Ldap search on incoming call is not working - gekran - 10-16-2014 08:32 PM cptjack, One more question. Where is the % sign stand for in (&(telephoneNumber=%))? I know the wildcard * but I can't find information about the % RE: Ldap search on incoming call is not working - cptjack - 10-19-2014 06:28 AM I can't be 100% sure but I interpret the % as a placeholder that gets replaced by the phone. I read it like %callerid% or some sort of variable that corresponds to the phonenumber during the LDAP lookup. So in short I believe the % sign has nothing to do with LDAP, but is rather a short for the actual callerid. RE: Ldap search on incoming call is not working - powermatz - 12-09-2014 05:33 PM (04-13-2014 06:53 AM)craigreilly Wrote: Does the ldap entry have hyphens or special characters in the number? Hi, for me it is not working! I have a T46 with the latest firmware. Looking up a name in LDAP directory is working. Looking up a number eg 069123445 is working too. But if a call comes in my telephone provider send the international code in front of the number eg +49 for germany (+496912345) . So I took this number as input for LDAP record. The name is not found. If I search in the phone a number starting with '+' no record is found. Any suggestions? How can I set up a string for searching with wildcards to skip the first part? If I use may iPhone or Mac the search in my LDAP server is working. (Including the '+' character) Matthias |