blak3r / yaai

SugarCRM Asterisk integration
http://www.sugarforge.org/projects/yaai
GNU General Public License v3.0
84 stars 85 forks source link

FATAL: SOAP login failed, something didn't get set by login... check your site_url #187

Closed ferkochteeg closed 10 years ago

ferkochteeg commented 10 years ago

Hello,

I have: Local machine 1 - Elastix Local machine 2 - Ubuntu 12.04 with SugarCRM 6.5.16

When I run php asteriskLogger.php

I get this error: HP Warning: fopen(): Filename cannot be empty in /var/www/SugarCE-Full-6.5.16/custom/modules/Asterisk/asteriskLogger.php on line 1498 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/SugarCE-Full-6.5.16/custom/modules/Asterisk/asteriskLogger.php on line 1505

\ Asterisk Logger Starting [2014-04-29 12:29:41]**** [Config Settings] Sugar root set to [/var/www/SugarCE-Full-6.5.16/custom/modules/Asterisk/../../../] PHP Notice: Undefined index: asterisk_log_file in /var/www/SugarCE-Full-6.5.16/custom/modules/Asterisk/asteriskLogger.php on line 133 Main Log is logging to: PHP Notice: Undefined index: asterisk_event_log_file in /var/www/SugarCE-Full-6.5.16/custom/modules/Asterisk/asteriskLogger.php on line 134 Found Language file for en_us Callout prefix is [] Callin prefix is [] Match Internal Regex = /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i [Database Connection] Selecting DB Name: database [SOAP Connection] Trying SOAP login endpoint=[http://192.168.1.11/SugarCE-Full-6.5.16/soap.php] user=[admin] password=[xy PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 FATAL: SOAP login failed, something didn't get set by login... check your site_url, and make sure sugarcrm is running. SessionID: user=admin GUID= Sleeping for 5 seconds then retrying...

[SOAP Connection] Trying SOAP login endpoint=[http://192.168.1.11/SugarCE-Full-6.5.16/soap.php] user=[admin] password=[xy] PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/SugarCE-Full-6.5.16/include/nusoap/nusoap.php on line 6166 FATAL: SOAP login failed, something didn't get set by login... check your site_url, and make sure sugarcrm is running. SessionID: user=admin GUID= Sleeping for 5 seconds then retrying...


Here is how I configured module:

Asterisk Manager Host: 192.168.1.25 ---> Elastix machine IP Asterisk Manager Port: 5038 Asterisk Manager Login: test ----> I put this username in /etc/asterisk/manager.conf Asterisk Manager Secret: xy ----> I put this password in /etc/asterisk/manager.conf SugarCRM Soap-User: admin ----> I login with this user to SugarCRM (this is my default account from installation) SugarCRM Soap-Pass: xy ----> I password to login in SugarCRM

Rest options I didn’t change.

Thanks.

ferkochteeg commented 10 years ago

Hello again I hope someone is still alive here.

After re-installation of SugarCRM SOAP works, but now there is another problem. I input same info in manager.conf and SugarCRM module.

After php asteriskLogger.php PHP: syntax error, unexpected '&' in /etc/php5/cli/php.ini on line 110

Warning: fopen(): Filename cannot be empty in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1498

Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1505

\ Asterisk Logger Starting [2014-05-02 00:15:46]**** [Config Settings] Sugar root set to [/var/www/suitecrm7.1.1/custom/modules/Asterisk/../../../] Main Log is logging to: Found Language file for en_us Callout prefix is [] Callin prefix is [] Match Internal Regex = /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i [Database Connection] Selecting DB Name: suit [SOAP Connection] Trying SOAP login endpoint=[http://192.168.1.31/suitecrm7.1.1/soap.php] user=[admin] password=[xy]

Warning: Attempt to modify property of non-object in /var/www/suitecrm7.1.1/include/nusoap/nusoap.php on line 6166

Warning: Attempt to modify property of non-object in /var/www/suitecrm7.1.1/include/nusoap/nusoap.php on line 6166

Warning: Attempt to modify property of non-object in /var/www/suitecrm7.1.1/include/nusoap/nusoap.php on line 6166

Warning: Attempt to modify property of non-object in /var/www/suitecrm7.1.1/include/nusoap/nusoap.php on line 6166 Successfully logged into Sugar via SOAP! SessionId=xy user=admin GUID=1 [Asterisk Manager Interface (AMI) Connection] Successfully opened socket connection to 192.168.1.11:5038 AMI Version Info:

 Asterisk Call Manager/1.1

Supported AMI version: 1.1 Detected AMI Login action raw response:

 Response: Error
 Message: Authentication failed

ERROR: AMI Login FAILED, Depending on your asterisk version helpful info may be above. Check Asterisk Username / Password in config, then verify AMI user has proper permissions in manager.conf

[Asterisk Manager Interface (AMI) Connection] Successfully opened socket connection to 192.168.1.11:5038 AMI Version Info:

 Asterisk Call Manager/1.1
ferkochteeg commented 10 years ago

OK, after reinstalation I solved this but probably error was in my typo in manager.conf Later I had some issues and solutions but still have problem with outbound calls. I will open new thread to later via search someone can easier find.