Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsteriskLogger wont start #230

Open
edslopes77 opened this issue May 18, 2018 · 1 comment
Open

AsteriskLogger wont start #230

edslopes77 opened this issue May 18, 2018 · 1 comment

Comments

@edslopes77
Copy link

Dears,

I am trying do integrate SuiteCRM to Asterisk, but at this procedure step, one AsteriskLogger.php error happens. It seens to be a database issue connection. Plases, anybody can help me? Regards!

$ sudo php /opt/bitnami/apps/suitecrm/htdocs/custom/modules/Asterisk/asteriskLogger.php

******** Asterisk Logger Starting **************

Sugar root set to [/opt/bitnami/apps/suitecrm/htdocs/custom/modules/Asterisk/../../../]

Logging to: asteriskLog.txt

Callout prefix is []

Callin prefix is [+1]

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

(Config processed)

Selecting DB Name: bitnami_suitecrm
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /opt/bitnami/apps/suitecrm/htdocs/custom/modules/Asterisk/asteriskLogger.php:152
Stack trace:
#0 {main}
thrown in /opt/bitnami/apps/suitecrm/htdocs/custom/modules/Asterisk/asteriskLogger.php on line 152

@crespo5
Copy link

crespo5 commented Oct 10, 2018

Hi @edslopes77 , this plugin it's unmaintenance and you should update a lot of code. This error occurs because the deprecated mysql methods are used. You must use MySQLi API, not legacy MySQL API, but when you refactor this call functions (in many points of the code), will you have update the plugin for your Asterisk AMI version.

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants