Friday, May 6, 2011

vtiger PBX Integration

Call pop-up is sweet
to watch on CRM
Steps to integrate successfully.

1) Change the path: ini_get('include_path')

2) Watch the logs which looks something like this and it will help in troubleshooting the issue.

Date: 12-02-2011
Connecting to asterisk server.....
Connected successfully







Trying to login to asterisk
Logged in successfully to asterisk server

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered
Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: PeerStatus
Privilege: system,all
Peer: SIP/201
PeerStatus: Registered

Event: Registry
Privilege: system,all
ChannelDriver: SIP
Domain: sip.aretta.net
Status: Registered

Event: Newchannel
Privilege: call,all
Channel: SIP/208-b6d036a0
State: Down
CallerIDNum: 208
CallerIDName: device
Uniqueid: 1265982105.5193

Event: Newstate
Privilege: call,all
Channel: SIP/208-b6d036a0
State: Ring
CallerID: 208
CallerIDName: device
Uniqueid: 1265982105.5193
...................
..................
..................

3) Change this important function handleIncomingCalls() in the AsteriskClient.php

vtiger_asteriskincomingcalls must be having the details saved!

4) Check that the required IP mask are allowed from the Asterisk server.
5) All the integration depends on the asterisk server configuration.

6) Logs will always help with all the server config details.

PBX integration is not uniform everywhere. This can be done through Core PHP files as well, just need to make all the mechanism using AJAX usage. This mechanism may be treated similar to the chat system.

This may be a nightmare for many but is easy for them who have invested routine troubleshooting on their available infrastructure and finally gained confidence to understand the entire CRM system and modules to finally succeed in the integration.
Related Links:


No comments:

Post a Comment