У меня уже стоит работающий астериск 1.6.2.9. Теперь я поставил SugarCRM 6.1.2 и Sugar-Asterisk-6.1.2--1.1.1.1-BETA. Это все крутится на ubuntu 11.04.
Код: Выделить всё
**** asteriskLogger ****
# Version $Id: asteriskLogger.php 180 2009-06-12 10:16:16Z andreas $
# Sugar root set to [/var/www/sugarcrm/custom/modules/Asterisk/../../../]
# Callout prefix is []
# (Config processed)
# Successfully opened socket connection to 127.0.0.1:5038
! Trying SOAP login endpoint=[http://crm.skynet-kazan.com/sugarcrm/soap.php] user=[user] password=[xxxxxxxxxxxxxxxx]
PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6129
PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6129
PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6129
PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6129
! Successful SOAP login id=3btegtdu6rqms2l9v8ltqdhtf5 user=user GUID=1
! Login action returned with rc=Asterisk Call Manager/1.1
! --- Event -----------------------------------------------------------
! Event -->
! ---------------------------------------------------------------------
# Event loop terminated
Непонятно, то ли все нормально, то ли нет. В базу ничего не пишется в asterisk_log
manager.conf:
Код: Выделить всё
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[sugaruser]
secret=secret
deny=0.0.0.0/0.0.0.0
permit=192.168.0.1/255.255.255.0
permit=127.0.0.1/255.255.255.0
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
; No access is allowed by default.
; To set a password, create a file in /etc/asterisk/manager.d
; use creative permission games to allow other serivces to create their own
; files
#include "manager.d/*.conf"
Настройка SugarCRM:
Код: Выделить всё
ASTERISK Configuration
Asterisk Manager Host:127.0.0.1
Asterisk Manager Port:5038
Asterisk Manager Login:sugaruser
Asterisk Manager Secret:secret
Dial Context:gts-sip
Dialout Prefix:
Dialpattern for inbound/outbound matching:^sip/[1-9][0-9][0-9]?-
Asterisk Soap-User:admin