Results 1 to 4 of 4

Thread: SOAP API get contacts matching given phone number

Hybrid View

  1. #1
    bhavionline Guest

    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.


  2. #2
    Join Date
    Aug 2005
    San Mateo, CA
    Rep Power


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

    See the query language in the above post that may help like the contact: operator.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Nov 2007
    Rep Power



    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 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


  4. #4
    Join Date
    Nov 2006
    Rep Power


    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.

Similar Threads

  1. SOAP API docs
    By olliemaitland in forum Migration
    Replies: 2
    Last Post: 05-18-2010, 05:02 PM
  2. Replies: 2
    Last Post: 07-15-2007, 05:54 PM
  3. SOAP API / errors more specific than 500?
    By rachale in forum Developers
    Replies: 3
    Last Post: 06-29-2007, 02:53 PM
  4. How to consume zimbra SOAP API in my java application
    By Hemant Shrivastava in forum Developers
    Replies: 34
    Last Post: 12-24-2006, 12:24 AM
  5. Replies: 2
    Last Post: 07-20-2006, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts