Cisco – Google Contacts on IP phones via asterisk PBX

asteriskciscoexchange

I've skimmed google on this but haven't found anything too useful.

Is there a way to use Google Contacts with a HardPhone supported by Asterisk PBX?

Google contacts is exposed thru a MSExchange server

Thanks

Best Answer

I saw that you tagged Cisco in our question, so I am guessing you are using Cisco phones, I have only used Cisco phones with Asterisk, so that is all I will be able to cover in my answer.

The first thing you will need to do is add a directory entry to your SIPDefault.cnf file (inside the TFTP directory your phone points to. Here is the line you need to add:

directory_url: "http://yourWebsiteOrIp/directory.xml";

The url must be a web server that is accessible to the phone, not the server. That line can go anywhere in the SIPDefault.cnf file

The file on the server should follow this format:

<CiscoIPPhoneDirectory>       

   <Title>Directory name (will appear in menu)</Title>
   <Prompt>Select a person to call</Prompt>                    

   <DirectoryEntry>                                              
     <Name>My Phone</Name>         
     <Telephone>101</Telephone>
   </DirectoryEntry>                                      

</CiscoIPPhoneDirectory> 

Unfortunately I am not all that experienced with exchange or gmail. What I gan tell you is that you will need to create a cron job that will run a program every x amount of time that will generate this XML file and put it on the server. Every time the phone accesses the directory it will download the XML file.

EDIT: Here is a link that provides a lot of useful information, including a section on creating the XML file with PHP: http://www.voip-info.org/wiki/view/Asterisk+Cisco+79XX+XML+Services

Hope that helps some!