Bill - I'm always in favor of a better understanding -especially when failures are concerned.
I really think it has something to do with web services, or perhaps Apache security on your pbx. Perhaps - permissions on one or more of the folders involved.
I'm not sure what I mean by that yet, but consider:
The very same callerid.php exists both inside the module, and in the standalone deployment, baring very few changes.
When you use the url directly in the browser, it fails; With the debug mode returning authoritative failure messages. This means the script isn't crashing, or failing to run; Its reports suggest that its failing to connect to the sources its listing.
Presumable, this is whats happening when the module is called upon as configured in FreePBX Caller ID lookup sources.
When the same code, un-modularized, is called upon as configured in FreePBX Caller ID lookup sources, it runs and produces results.
So - since its the same code, being called by the same configuration - the only difference I can think of is
where the callerid.php is being run from. In the case of the module, the callerid.php script is run from
http://pbxaddress/admin/modules/superfecta/callerid.php.
When the standard callerid.php is run, I beleive its located in the root of the html folder. (Im doing this by memory - so double check that last path) That's the
only difference I can think of.
So - here's a good test then.
- Have the Superfecta Module Installed, and properly configured via the web interface - just as if you were going to use it for real.
- Copy the callerip.php script from /admin/modules/superfecta/ to the location from which you normally run the un-modularized version of callerid.php. (Temporarily rename to un-modularized script to something else during this experiment)
- In FreePBX, for your test inbound route, in Caller ID lookup Sources - select the un modularized version of the Superfecta.
Our goal is to trick the system into running the version of callerid.php that comes with the module - from the same location its successfully running the un modularized version.
So - test it out - call into the system and see if the results are good. My bet is this will work.
Not only that, but you'll still be able to manage the settings with the Modules User Interface - since you are now running the version of the script that knows how to look into the database for these settings.
If this does work - then something has disrupted the "normal" permissions to the module folder system - or something similar.
Before I go to far out on a limb - lets see if any of this holds water when you test it out.
- Tony