FOP2 address book and Caller ID Superfecta
I am trying to pull the FOP2 address book into Caller ID Superfecta, but the FOP2 Address book module appears to be broken in 2 places.
It never retrieves the contact in the database. I found that the $run_param is not set.
Setting this to 2 at line 37 fixes the problem and it returns a result.
The other thing is that unless FOP2 is the last in the results, it does something to code or database or something. The next module to run errors out with
Looking for Trunk Provided Caller ID ...
Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/superfecta/sources/source-Trunk_Provided.module on line 24
Or If I use OpenCnam
Searching OpenCNAM ...
Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/superfecta/sources/source-OpenCNAM.module on line 28
The above DB_Error does not appear if I set FOP2 below the other modules or disable it.
FOP2Admin is 1.2.14
FreePBX is 2.11.0.8
Running PIAF
I have two systems with the same setup that have this issue.
It never retrieves the contact in the database. I found that the $run_param is not set.
Setting this to 2 at line 37 fixes the problem and it returns a result.
The other thing is that unless FOP2 is the last in the results, it does something to code or database or something. The next module to run errors out with
Looking for Trunk Provided Caller ID ...
Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/superfecta/sources/source-Trunk_Provided.module on line 24
Or If I use OpenCnam
Searching OpenCNAM ...
Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/superfecta/sources/source-OpenCNAM.module on line 28
The above DB_Error does not appear if I set FOP2 below the other modules or disable it.
FOP2Admin is 1.2.14
FreePBX is 2.11.0.8
Running PIAF
I have two systems with the same setup that have this issue.
Comments
We did not write the caller id superfecta module/integration, so not sure what the problem is. It seems that there is a mysql query that is not correct and the warning/error affects other modules/plugins down below? However, I have no idea at all.
where did you get callerid superfecta?
I did some debugging, and the sql query is done correct and returns results, so my database information is correct. But because $run_param is not set, the results are not formatted and it does not output anything. But that is an easy fix.
As for the DB_Error, enable the FOP2 option and set it at the very top. Then enable Trunk Provider and set it below FOP2. Save, then run a debug test. It will fail with that DB_Error. I don't see anything wrong with the code, but it's like something related to the database is not reset right.
I need caller ID information pulled from the FOP2 address book, and if that fails, from the trunk information. Since Superfecta failing me, can you suggest another option?
Thanks for the help.
https://github.com/POSSA/Caller-ID-Superfecta/wiki
What did you configure as the database name in the fop2 lookup source page? And what cnam type did you choose there?
It's the 2.11 branch that comes with FreePBX directly that fails.
I have posted in the PIAF form here.
http://pbxinaflash.com/community/index. ... ecta.12531
http://pbxinaflash.com/community/index. ... cta.12531/