blak3r / yaai

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

_FATAL: SOAP login failed, something didn't get set by login #190

Open wincentblack opened 10 years ago

wincentblack commented 10 years ago

Hello All! Please help me!

I integrate my Asterisk with SugarCRM, and i have a problem with launch of asterisklogger.php

My sustem: OS Centos 5.10 x86 Asterisk 11.3.0 + FreePBX Sugarcrm Pro 6.5.13 PHP 5.5.3 (cli) (built: Aug 21 2013 18:49:39) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies callinize community 3.6.9 installed

download here http://www.sugarforge.org/frs/?group_id=773

My problem:

When i launch script asterisklogger.php i have this error:

Trying SOAP login endpoint=[https://127.0.0.1/sugarcrmbeta/soap.php] user=[admin] password=[21232f297a57a5a743894a0e4a801fc3] 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...

I tried change ip addres my server on 127.0.0.1 but the error is still.

Thank you!

blak3r commented 10 years ago

What do you get at https://127.0.0.1/sugarcrmbeta/soap.php

Is https working?

Sent via mobile

On May 10, 2014, at 3:56 AM, wincentblack notifications@github.com wrote:

Hello All! Please help me!

I integrate my Asterisk with SugarCRM, and i have a problem with launch of asterisklogger.php

My sustem: OS Centos 5.10 x86 Asterisk 11.3.0 + FreePBX Sugarcrm Pro 6.5.13 PHP 5.5.3 (cli) (built: Aug 21 2013 18:49:39) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies

callinize community 3.6.9 installed

My problem:

When i launch script asterisklogger.php i have this error:

Trying SOAP login endpoint=[https://127.0.0.1/sugarcrmbeta/soap.php] user=[admin] password=[21232f297a57a5a743894a0e4a801fc3] 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...

I tried change ip addres my server on 127.0.0.1 but the error is still.

Thank you!

— Reply to this email directly or view it on GitHub.

wincentblack commented 10 years ago

All my services are working through https, I tried to run through http but the error is still. I downgrade SugarCRM 6.5.13 to 6.5.1 and callinize-community-3.6.9 to yaii-2.4.1 via http but error is still.

php ./asteriskLogger.php

\ Asterisk Logger Starting ****

Sugar root set to [/var/www/html/sugarcrmbeta/custom/modules/Asterisk/../../../]

PHP Notice: Undefined index: asterisk_log_file in /var/www/html/sugarcrmbeta/custom/modules/Asterisk/asteriskLogger.php on line 118

Notice: Undefined index: asterisk_log_file in /var/www/html/sugarcrmbeta/custom/modules/Asterisk/asteriskLogger.php on line 118 Logging to:

Callout prefix is [1]

Callin prefix is [+1]

asteriskMatchInternal = /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i

(Config processed)

Selecting DB Name: sugarcrmbeta ! Trying SOAP login endpoint=[http://127.0.0.1:5454/soap.php] user=[admin] password=[928685e214fa387530cc8e14d09a1858] PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 ! FATAL: SOAP login failed, something didnt get set by login... check your site_url: user=admin GUID=

P.S. I used a non standard port http (5454 tcp).

Thank you.

blak3r commented 10 years ago

Do some searching here for things like site_url and "! Trying SOAP login endpoint"... People have had weird issues... random things have fixed them like correcting the site_url in config.php...

Can't recall.

On Sat, May 10, 2014 at 4:06 PM, wincentblack notifications@github.comwrote:

All my services are working through https, I tried to run through http but the error is still. I downgrade SugarCRM 6.5.13 to 6.5.1 and callinize-community-3.6.9 to yaii-2.4.1 via http but error is still. php ./asteriskLogger.php

\ Asterisk Logger Starting **** Sugar root set to [/var/www/html/sugarcrmbeta/custom/modules/Asterisk/../../../]

PHP Notice: Undefined index: asterisk_log_file in /var/www/html/sugarcrmbeta/custom/modules/Asterisk/asteriskLogger.php on line 118

Notice: Undefined index: asterisk_log_file in /var/www/html/sugarcrmbeta/custom/modules/Asterisk/asteriskLogger.php on line 118 Logging to: Callout prefix is [1] Callin prefix is [+1]

asteriskMatchInternal = /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i (Config processed)

Selecting DB Name: sugarcrmbeta ! Trying SOAP login endpoint=[http://127.0.0.1:5454/soap.php] user=[admin] password=[928685e214fa387530cc8e14d09a1858] PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 PHP Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160

Warning: Attempt to modify property of non-object in /var/www/html/sugarcrmbeta/include/nusoap/nusoap.php on line 6160 ! FATAL: SOAP login failed, something didnt get set by login... check your site_url: user=admin GUID=

P.S. I used a non standard port http (5454 tcp).

Thank you.

— Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/190#issuecomment-42752827 .

Blake Robertson blake@callinize.com Callinize

wincentblack commented 10 years ago

Thank you for answer!

I tried change site_url on localhost,127.0.0.1 but error is still.

This error can occur because of the later php? I have PHP 5.5.3

blak3r commented 10 years ago

Not that I'm aware of. Keep digging here and I think you'll find a clue. Can't remember honestly.

On Mon, May 12, 2014 at 3:00 AM, wincentblack notifications@github.comwrote:

Thank you for answer!

I tried change site_url on localhost,127.0.0.1 but error is still.

This error can occur because of the later php? I have php PHP 5.5.3

— Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/190#issuecomment-42801227 .

Blake Robertson blake@callinize.com Callinize

wincentblack commented 10 years ago

I installed centos 6.5 with php 5.3 and script work is done. Script connected to Asterisk on localhost as well. But I have Asterisk and CRM on a different servers. I changed config (Asterisk Manager Host) on CRM to my Asterisk server and launched asterisLogger.php with error:

Successfully logged into Sugar via SOAP! SessionId=qetrqoomo76d5lm6461e4 user=admin GUID=1 [Asterisk Manager Interface (AMI) Connection] Successfully opened socket connection to xxx.xxx.xxx.xxx:5038 AMI Version Info:

 Asterisk Call Manager/1.3

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]

I connected to my Asterisk server via telnet is successful!!!!

[Asterisk]# telnet xxx.xxx.xxx.xxx 5038 Trying xxx.xxx.xxx.xxx... Connected to xxx.xxx.xxx.xxx. Asterisk Call Manager/1.3 Action: Login ActionID: 1 Username: yaai Secret: mypassword

Response: Success ActionID: 1 Message: Authentication accepted

Event: FullyBooted Privilege: system,all Status: Fully Booted

How fix this problem?

blak3r commented 10 years ago

Did you telnet from the same machine? The ami config has permitted up address list.

Blake Robertson Callinize blake@callinize.com

On May 12, 2014, at 4:44 AM, wincentblack notifications@github.com wrote:

I installed centos 6.5 with php 5.3 and script work is done. Script connected to Asterisk on localhost as well. But I have Asterisk and CRM on a different servers. I changed config (Asterisk Manager Host) on CRM to my Asterisk server and launched asterisLogger.php with error:

Successfully logged into Sugar via SOAP! SessionId=qetrqoomo76d5lm6461e4 user=admin GUID=1 [Asterisk Manager Interface (AMI) Connection] Successfully opened socket connection to xxx.xxx.xxx.xxx:5038 AMI Version Info:

Asterisk Call Manager/1.3 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]

I connected to my Asterisk server via telnet is successful!!!! [Asterisk]# telnet xxx.xxx.xxx.xxx 5038 Trying xxx.xxx.xxx.xxx... Connected to xxx.xxx.xxx.xxx. Asterisk Call Manager/1.3 Action: Login ActionID: 1 Username: yaai Secret: mypassword

Response: Success ActionID: 1 Message: Authentication accepted

Event: FullyBooted Privilege: system,all Status: Fully Booted

How is fix this problem?

— Reply to this email directly or view it on GitHub.

wincentblack commented 10 years ago

Yes. I connected telnet from same server where launch asterisklogger.php. Yes. IP address is permited in ami config. Schema: server1 (10.10.10.1) - it is SugarCRM + YAAI (asterisklogger.php)+ Telnet server2 (10.10.10.2) - it is Asterink

Telnet is conected to server2 asterisklogger.php - autentification failure

Thank you!

DavidBogar commented 10 years ago

I have the same issue I'm trying to troubleshoot!

DavidBogar commented 10 years ago

Do you have LDAP authentication enabled? I do - do you have an encryption key entered?

DavidBogar commented 10 years ago

sorry for multiple posts - i managed to fix it although i'm not sure what i fixed exactly....

I first uninstalled module, than reinstalled. quick repair and rebuild rebuild config file repair JS files

and it just started working...

DavidBogar commented 9 years ago

This happened again (4 months later) and had to regoogle it. so glad i put the solution in here... Rebuild config file through sugar!

tedd77 commented 9 years ago

Hello,

my php version is 5.3.29 , my asterisk version is 11.13.0 and my centos is 2.6.18-398.el5 My Callinize version is : 3.6.9 My sugarcrm version is 6.5.18

I am having the following error: [root@localhost Asterisk]# php asteriskLogger.php PHP Warning: fopen(): Filename cannot be empty in /var/www/html/SugarCRM/custom/modules/Asterisk/asteriskLogger.php on line 1498 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/html/SugarCRM/custom/modules/Asterisk/asteriskLogger.php on line 1505

\ Asterisk Logger Starting [2014-11-30 15:38:35]**** [Config Settings] Sugar root set to [/var/www/html/SugarCRM/custom/modules/Asterisk/../../../] PHP Notice: Undefined index: asterisk_log_file in /var/www/html/SugarCRM/custom/modules/Asterisk/asteriskLogger.php on line 133 Main Log is logging to: PHP Notice: Undefined index: asterisk_event_log_file in /var/www/html/SugarCRM/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: sugarcrm1 PHP Deprecated: Function eregi() is deprecated in /var/www/html/SugarCRM/custom/modules/Asterisk/asteriskLogger.php on line 2265 [SOAP Connection] Trying SOAP login endpoint=[http://127.0.0.1:443/SugarCRM/soap.php] user=[admin] password=[918f8f2a8f07aa026f4cd9241f836810] 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...

Could someone help in solving this issue ? Thank you in advance