linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Ldap search


From: John
Subject: Re: [Linphone-developers] Ldap search
Date: Tue, 25 Jan 2022 10:41:03 +0200

Hello

It didnt work this way, i tried:
(|(AccountNumber=*%1$s*)(MobileNumber=*%1$s*)(HomeNumber=*%1$s*)(Fax=*%1$s*))
and
(|(AccountNumber=*%1$s*)(MobileNumber=*%1$s*)(HomeNumber=*%1$s*)(Fax=*%1$s))

But i made it work at the end with multiple entries of the same ldap server.
The differences between the entries are:
Filter and SipAttributes
When i put as a filter: (AccountNumber=%s) then SipAttributes is like: AccountNumber,MobileNumber,HomeNumber,Fax
When i put as a filter: (MobileNumber  =%s) then SipAttributes is like: MobileNumber,AccountNumber,HomeNumber,Fax
So i made 4 entries and that's it.

Of course maybe there is a better way, but till then...
Thanks
John





Στις Δευ 24 Ιαν 2022 στις 10:12 μ.μ., ο/η German Cancio <german.cancio.melia@cern.ch> έγραψε:
John,

I also hit that problem - you should be able to use something like

Filter: (|(displayName=*%1$s*)(mobile=*%1$s*)(telephoneNumber=*%1$s*)) 

See this link to get more information and on the notation used here (positional parameters)

Cheers, Germán


On 24 Jan 2022, at 15:36, John <ajohnmail@gmail.com> wrote:

Hello

I own a grandstream pbx (ucm6202) and i download LinPhone and connect it as a softphone on it.
It works fine but i have a problem with ldap.
On Linphone ldap configuration on 'filter' when i put (AccountNumber=%s) is working fine.
But when i put (|(AccountNumber=%s)(HomeNumber=%s)) linphone is crashing after the first digit in search field.
Linphone dont work with more than one filter?
In my ldap phonebook (Grandstream) i have 4 filters that i need to search for each contact.
The filters are: (|(AccountNumber=%s)(MobileNumber=%s)(HomeNumber=%s)(Fax=%s))
Thanks

_______________________________________________
Linphone-developers mailing list
Linphone-developers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-developers

_______________________________________________
Linphone-developers mailing list
Linphone-developers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-developers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]