Hey Guys,
i have installed the vtiger asterisk connector as described in the official tutorial (sorry i am not allowed to add links)I am almost not, but it is still not working. If i click on a number in vTiger it says “Call failed”
Asterisk log shows:
WARNING[2054]: chan_sip.c:6225 create_addr: Purely numeric hostname (100), and not a peer--rejecting!
Asterisk vtiger connector webapp shows:
016-12-13 22:39:06 [qtp1784662007-15] INFO org.asteriskjava.manager.internal.ManagerConnectionImpl - Successfully logged in
2016-12-13 22:39:08 [qtp1784662007-15] INFO org.asteriskjava.manager.internal.ManagerConnectionImpl - Determined Asterisk version: Asterisk 1.6
2016-12-13 22:39:08 [qtp1784662007-15] INFO a - Sending call originate request to asterisk
2016-12-13 22:39:08 [qtp1784662007-15] INFO a - Context:vtiger_outbound
2016-12-13 22:39:08 [qtp1784662007-15] INFO a - From: 100 -> To: +49xxxxxxxx
2016-12-13 22:39:08 [qtp1784662007-15] INFO a - Outgoing Call Response: Error
2016-12-13 22:39:08 [qtp1784662007-15] INFO a - Asterisk Response: Originate failed
My config is as following:
Vtiger Config
CRM Settings
Asterisk Server Details
Vtiger Asterisk App URL http//////192.168.99.83:8383 // edited because not allowed links
Outbound Context vtiger_outbound
Outbound Trunk from-internal
Vtiger Secret Key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
in User CfG
CRM Phone Extension 100
Default Record View Summary Left Panel Hide No
ASTERISK VTiger Connector Config (VtigerAsteriskConnector.properties)
/*
* Copyright (C) . All rights reserved.
* @license Proprietary
*/
// Location where the application server will be running.
ServerIP = 192.168.99.83
ServerPort = 8383
// Call Recordings storage path
StorageDir = /root/VtigerAsteriskConnector/calls
// Enable(true) or Disable(false) call recordings
Recording = false
// Location where the applications database files will be stored.
AsteriskAppDBPath = /root/VtigerAsteriskConnector/db
// Asterisk Server Details
AsteriskServerPublicIP = 192.168.99.83
AsteriskServerIP = 192.168.99.83
AsteriskServerPort = 5038
AsteriskUsername = vtiger
AsteriskPassword = test123
// Vtiger CRM URL
VtigerURL = http//externalip:999 //edited no links allowed, missing :
VtigerSecretKey = 554138266576c0ec05ce87
//Enable(true) or Disable(false) Asterisk Events and Database Logs in Connector
AsteriskLog = true
DatabaseLog = true
Asterisk / Freepbx Conf (config files read via Freepbx Admin-Config Edit)
extensions_custom.conf
; --- START ----[vtiger_inbound]
exten => +4933627982996,1,Agi(agi:///192.168.99.83/incoming.agi)
exten => _X.,1,Agi(agi://192.168.99.83/incoming.agi)
; --- END ---
; --- START ----;
[vtiger_outbound]
exten => _X.,1,Agi(agi://192.168.99.83/incoming.agi)
; --- END ---
;[vtiger]
;exten => _X.,1,Agi(agi://192.168.99.83/incoming.agi)
manager_additional.conf
;--------------------------------------------------------------------------------;; Do NOT edit this file as it is auto-generated by FreePBX. ;
;--------------------------------------------------------------------------------;
; For information on adding additional paramaters to this file, please visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
; is totally deliberate. ;
;--------------------------------------------------------------------------------;
[cxpanel]
secret = cxmanager*con
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
writetimeout = 100
[vtiger]
secret = test123
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=192.168.99.0/255.255.255.0
permit=192.168.99.83/255.255.255.0
permit=192.168.99.80/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
writetimeout = 100
i really appreciate any help!
Thanks so much
Mathias