Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Users

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2007, 05:27 AM
Junior Member
 
Posts: 5
Default SOAP API get contacts matching given phone number

Hello Folks,

I want to query the zimbra contacts database.
I want to get the contacts from all zimbra users which have the phone number matching the number i provide in the query say something similiar to query like this
Select name,email,phoneno,mobileno from users where phoneno like '77686%' or mobileno like '768768%'
I am new to zimbra, although i went through the posts and found that zimbra is not storing the user contacts in LDAP however has a SOAP api to access the same.
Could some one help me how i can acheive what i want using the API.

Thanks
Bhavi
Reply With Quote
  #2 (permalink)  
Old 04-17-2007, 07:09 AM
Zimbra Employee
 
Posts: 4,792
Default

You'll want SearchRequest with the type set to contact.

http://zimbra.svn.sourceforge.net/vi...88&view=markup


See the query language in the above post that may help like the contact: operator.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 11-11-2007, 01:40 PM
Intermediate Member
 
Posts: 16
Default

Hi,

i want to make an integration with asterisk phone server and query the zimbra addressbok for the FullName to the CallerID.

i did some tests with the scripts found at SourceForge.net Repository - [zimbra] Index of /trunk/ZimbraServer/src/perl/soap

but i still have some questions:

1) search for a contact detail isn't possible? workPhone,email?
2) the * is ignored at a beginning of a query? "*99*" search for "99*"
3) build a soap query with the phone number and parse the response for FullName is the best way to get name to number? any other/better way?

has someone already implemented a script for asterisk agi to lookup the name in the zimbra adressbook? maybe he could share that with us

Thanks
Martin
Reply With Quote
  #4 (permalink)  
Old 04-28-2010, 10:46 AM
Moderator
 
Posts: 7,911
Default

I appreciate resurrecting such a old thread is bad form; yet as this is not release dependent I am doing so. Like yourself I am trying to do exactly the same of querying the Zimbra contacts based on the CLI from Asterisk. If a match is found then the CNAM can be set accordingly. I am in a quandary now as whether to use Perl or PHP for the SOAP interface. Did you get any where with your project as it would be great to double team.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.