Thursday, November 20, 2014

Exchange 2013 Outlook and OWA Search Does Not Work

Exchange 2013 Outlook and OWA Search Does Not Work

As with all previous versions of OWA, Exchange 2013 has a search function that is above the mail column as seen below.
Exchange 2013 owa search
I came across an issue recently where if you did a search in OWA 2013, no results would be show, no matter what information I used as the search keywords. No matter what no search results where found. In Exchange 2013 , the search index is stored with the Mailbox store where the users are located. To resolve this issue and build the OWA 2013  and the Exchange search index again we needed to do the following. This error may also occur withOutlook clients that are not in cached mode.
1) Stop Service
 navigate to services stop the Microsoft Exchange Search Microsoft Exchange Search Host Controller service.
2) Locate User Mailbox Database.
Once done locate the folder on your server where the Mailbox database is where the user is trying  to search from. For example mine is here.
C:\Program Files >Microsoft > Exchange Server > V15 > Mailbox > Mailbox Database 1403936621

Exchange 2013 Search database
If you are unsure where the the mailbox database is use the command below from power-shell.

Get-MailboxDatabase "yourmailboxdatabase" |fl name,*path*
Once the path is located you will find a folder name with a long “GUID” and the word Single on the end.
exchange 2013 search guid
3) Rename this folder .old.
We then need to start the Microsoft Exchange Search service again, The server will now begin to rebuild its search index.
Give it plenty of time to rebuild then issue the command below and make sure the status of Content Index Status is seen as healthy.
Get-MailboxDatabaseCopyStatus
As seen below, if it says healthy try your search and you should see that your search results now appear in Outlook and OWA 2013.
Exchange 2013 rebuild search index

Wednesday, November 12, 2014

Setting up Vtiger CRM PBX Manager with Asterisk

Setting up PBX Manager with Asterisk

For official configuration Guide please login to here.

After going through Official configuration guide then I realise that there should be one step by step guide with snapshots for newcomers or who are not familiar with Asterisk PBX and Linux.

I tried to make this step by step very simple and more understandable for all, so please give me any suggestion from your side to make this documentation better.

I have separated configuration parts in different steps.

1) Scenario with Network Diagram.
2) Required Software’s.
3) Vtiger Side Configuration.
4) Asterisk Side Configuration.
5) Troubleshooting.


Network Diagram




Vtiger Server:
                                Windows 7 32 bit , Dual Core CPU , 4 GB RAM , 40 GB HDD.
                                Vtiger 6.1
                                Zoiper SIP Soft Client with 2009 Extension Configured.

Asterisk Server:

Dual Core CPU , 4 GB RAM , 40 GB HDD
AsteriskNOW 5.211.65 (User Any Asterisk Based PBX like FreePBX , Elastix etc..)
Java Jetty Installed.

Note : this scenario has been developed in Virtual Environment ( Vmware Workstation 10 ) in my case.


Configure your Asterisk credentials in Vtiger


After installing Vtiger Asterisk Connector, please follow few simple steps to configure your Asterisk Server information in Vtiger CRM :

1. Login to your CRM instance and click on Setting.png icon on the top right corner of the CRM.

2. Click CRM Settings.

3. Click PBX Manager under Integration in Settings sidebar.

4. Edit Asterisk Server Details.

Vtiger Asterisk App URL - configure server name where Vtiger Asterisk Connector is installed as shown:

Syntax : Protocol://Asterisk_Server_IP:Port

Protocol
http/https
Asterisk_Server_IP
Your Asterisk Server IP
Port
Server Port configured in Vtiger Asterisk Connector config file.

Outbound Context - Vtiger specific context configured in your Asterisk Server

Outbound Trunk - Trunk configured in your Asterisk server for Outgoing Calls.

Vtiger Secret Key - Unique key generated for authentication, which has to be configured in Vtiger Asterisk Connector.

5. Click Save button.

Note : in my case I am not using any trunk for Outgoing Calls, I just want to test internal Calls only in my LAB. So please Add your Outbound trunk Name which is configured in Asterisk GUI -> Connectivity -> Trunks. ( Name is Case Sensitive so be careful ).



 Configure the extension number for each user


For each user who is allowed to handle incoming and outgoing calls from the CRM, the extension number should be configured in the User preferences page.

1. Open My Preferences.

2. Configure user number in CRM Phone Extension field under “More Information” block.

Number format:

Extension: [Extension_number]

e.g., 2001

Once configuration is completed on both sides i.e., Vtiger and Asterisk, you are now ready to make and receive calls in the CRM.


Vtiger Asterisk Connector Installation on Asterisk Server

Introduction
Vtiger Asterisk application acts a gateway to connect to Vtiger CRM from the Asterisk Server. It makes it easy for Vtiger and Asterisk interaction over HTTP when incoming or outgoing calls need to be handled.

Features
Vtiger Asterisk Connector provides following features:

1. Connect to Vtiger and notify the incoming call.

2. Accept commands from Vtiger and forward it to Asterisk (Click-to-Call).

3. Call recording file management.

Installation.








1.       Download Asterisk Connector ( PBXMagager )Add-on from Official Website.

2.       Download WinSCP and connect to Asterisk server .


3.       Transfer VtigerAsteriskConnector-1.2.zip to root folder ( / ).

4.       Login to Asterisk Server by using putty.exe or ssh terminal and unzip VtigerAsteriskConnector with “unzip VtigerAsteriskConnector-x.y.zip” Command.


5.       Open /VtigerAsteriskConnector/conf/ VtigerAsteriskConnector.properties and update information as below.



6.       Copy and Paste the Vtiger Secret Key that is generated in your Vtiger Instance.
You can find this under Vtiger CRM > Settings > Integration > PBXManager > Asterisk Server Details.

7.       Copy Vtiger URL exact the same because it is case sensitive so better to copy and paste from web browser.

8.       Cd /VtigerAsteriskConnector/Bin


9.       ./Start.sh

10.    Test Vtiger Connector website is working or not http://192.168.1.87:8383 the result should be as below.


11.   If you find above result then you are ready with VtigerAsteriskConnector Configuration.

Asterisk Configuration File Changes

1)      Change In extensions.conf ( /etc/Asterisk/extensions_custom.conf )




Create Vtiger SIP Extension

1)      Open Asterisk GUI -> Applications -> Extensions.

2)      Create SIP Extensions.




Configure Asterisk Manager User

1)      Open Asterisk GUI -> Settings -> Asterisk Manager Users

2)      Create “vtiger” User with ALL Permission.

3)      Make 0.0.0.0 / 0.0.0.0 in Deny Entry.

4)      Permit 127.0.0.1/255.255.255.0&192.168.1.0/255.255.255.0&192.168.1.94/255.255.255.255

5)      Click on Submit.

6)      Save Changes.



Check /etc/Asterisk/manager_additional.conf


Add VtigerAsteriskConnector Script in to startup.

1)      Open Asterisk server terminal and give below command.

2)      Echo sh /VtigerAsteriskConnector/bin/start.sh >> /etc/rc.local



Troubleshooting

1)      Monitor Logs in /VtigerAsteriskConnector/Logs

a.       nohup.webapp.<date>.out
b.      nohup.agi.<date>.out

2)      Start or restart VtigerAsteriskConnector Scripts /VtigerAsteriskConnector/bin/
a.       Start.sh
b.      Stop.sh
c.       Agi.sh
d.      Webapp.sh

3)      Check webapp is running or not by visiting http://192.168.1.87:8383 it should show above Scripts in browser.