CID Superfecta + FreePBX 2.9

bpps

New Member
Joined
Jun 30, 2009
Messages
9
Reaction score
0
freepbx 2.9
superfecta 2.2.4

debuging a number returns

Fatal error: Call to undefined function parse_amportal_conf() in /var/www/html/admin/modules/superfecta/bin/callerid.php on line 46


 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
CallerID Superfecta is NOT presently compatible with FreePBX 2.9.
 
Joined
Oct 16, 2008
Messages
94
Reaction score
0
Easy fix

--- callerid.php 2010-12-22 07:37:22.000000000 +0100
+++ bin/callerid.php 2011-02-16 08:21:20.000000000 +0100
@@ -8,6 +8,9 @@
8-18-2009 Version 2.2.0 CID Schemes and online update for data sources (projects.colsolgrp.net)(jjacobs)
10-26-2009 Version 2.2.2 http://projects.colsolgrp.net/versions/show/55 (projects.colsolgrp.net) (patrick_elx)
***/
+if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {
+ include_once('/etc/asterisk/freepbx.conf');
+}

$debug_val = (isset($_REQUEST['debug'])) ? $_REQUEST['debug'] : '';
$debug = ($debug_val == 'yes') ? true : false;
@@ -17,7 +20,7 @@
ini_set('display_errors', '1');
}

-require_once("../../../functions.inc.php");
+// require_once("../../../functions.inc.php");

$caller_id = '';
$charsetIA5 = true;
@@ -40,10 +43,11 @@
}

// new code - causes config values to be pulled from db 3/12/2009
-require_once 'DB.php';
-define("AMP_CONF", "/etc/amportal.conf");
+// require_once 'DB.php';
+//define("AMP_CONF", "/etc/amportal.conf");
+
+//$amp_conf = parse_amportal_conf(AMP_CONF);

-$amp_conf = parse_amportal_conf(AMP_CONF);
if(count($amp_conf) == 0)
{
fatal("FAILED");
@@ -64,7 +68,7 @@
}

//connect to the asterisk manager
-require_once('../../../common/php-asmanager.php');
+// require_once('../../../common/php-asmanager.php');
$astman = new AGI_AsteriskManager();

// attempt to connect to asterisk manager proxy
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
I had to create a login to their site to get the new callerid_29.php program. They have corrected the program to work with FreePBX 2.9 but have not done a general release just yet.
 
Joined
Dec 13, 2007
Messages
59
Reaction score
1
Just a suggestion … if you wanted to house this over on the FreePBX SVN repository you might get more eyes on it, and fixes like mickecarlsson provided by other FreePBX developers would simply get checked in and updated right away.

Anyhow - the options is always there. The Endpoint manager got moved there and that resulted in huge amounts of exposure and suggestions/collaboration not only with FreePBX but as a result with other projects as well...
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
I got rid of callerid_29.php. I incorporated all of the changes needed into callerid.php

I had to create a login to their site to get the new callerid_29.php program. They have corrected the program to work with FreePBX 2.9 but have not done a general release just yet.
 

ajmorris

New Member
Joined
Jan 8, 2008
Messages
19
Reaction score
0
Okay, i do have the latest version and downloaded the callerid.php file and set all the permissions but now when i go to debug a number i get is "Detected FreePBX version is at least 2.9" and that's all? any thoughts?

Andy
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Okay, i do have the latest version and downloaded the callerid.php file and set all the permissions but now when i go to debug a number i get is "Detected FreePBX version is at least 2.9" and that's all? any thoughts?

Andy

ok.........

run

Code:
tail -f /var/log/httpd/error_log

Then run the debug again and post the error here.
 

ajmorris

New Member
Joined
Jan 8, 2008
Messages
19
Reaction score
0
Still doing the same thing. Had an error in the Httpd log about the pbdirectory and the sounds file not having permissions but i have fixed and updated that module so that's good, just the superfecta isn't working....any other thoughts?

here is the log...

tail -f /var/log/httpd/error_log
[Thu Mar 10 16:46:16 2011] [notice] Digest: done
[Thu Mar 10 16:46:16 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Thu Mar 10 17:48:23 2011] [error] [client 127.0.0.1] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
[Thu Mar 10 17:48:44 2011] [error] [client 127.0.0.1] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
rm: cannot chdir from `/var/www/html/admin/modules/pbdirectory/sounds' to `pbdirectory': Permission denied
[Fri Mar 11 07:10:42 2011] [notice] caught SIGTERM, shutting down
[Fri Mar 11 07:12:44 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Mar 11 07:12:44 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 11 07:12:44 2011] [notice] Digest: done
[Fri Mar 11 07:12:45 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
There are no errors in your log so unfortunately I can't tell you whats wrong...

Still doing the same thing. Had an error in the Httpd log about the pbdirectory and the sounds file not having permissions but i have fixed and updated that module so that's good, just the superfecta isn't working....any other thoughts?

here is the log...

tail -f /var/log/httpd/error_log
[Thu Mar 10 16:46:16 2011] [notice] Digest: done
[Thu Mar 10 16:46:16 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Thu Mar 10 17:48:23 2011] [error] [client 127.0.0.1] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
[Thu Mar 10 17:48:44 2011] [error] [client 127.0.0.1] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
rm: cannot chdir from `/var/www/html/admin/modules/pbdirectory/sounds' to `pbdirectory': Permission denied
[Fri Mar 11 07:10:42 2011] [notice] caught SIGTERM, shutting down
[Fri Mar 11 07:12:44 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Mar 11 07:12:44 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 11 07:12:44 2011] [notice] Digest: done
[Fri Mar 11 07:12:45 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
 

ajmorris

New Member
Joined
Jan 8, 2008
Messages
19
Reaction score
0
Yeah. I am not sure what's going on either. Everything else looks good. I even reinstalled the superfecta module and re-downloaded the new callerid.php file. Still no go. Is there anything else that i need to try?

Andy

Do you all have a working superfecta?
 

ustelephone

Member
Joined
Sep 21, 2010
Messages
122
Reaction score
0
Nope

@kenn10

I'm still without. I made it to the link r573 that states it will fix it, but I can not log in. I create new profiles, request a new password, and nothing.

Anyone able to send me the file or provide an url?
 

ustelephone

Member
Joined
Sep 21, 2010
Messages
122
Reaction score
0
I bow in the thanks!

I am up and working. I simply replaced the file and it works. No modifications to security or reinstalling anything.

Many, many thanks.
 

ustelephone

Member
Joined
Sep 21, 2010
Messages
122
Reaction score
0
Real quick update .. I tested the Superfecta last night middle of the night, and it is working. This morning I noticed that I couldn't hear anyone on incoming calls. I did a restart of the box, nothing. Then I disabled Superfecta from the trunks and everything's working.

I will go through the logs tonight and either try to fix or post what I find. I just didn't want anyone seeing my last post any making a move; I still have issues.

Will post tonight after testing.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
I linked you to the callerid.php for the 2.2.4 version.

Sounds like you are using the 2.3.x version

Please confirm


Real quick update .. I tested the Superfecta last night middle of the night, and it is working. This morning I noticed that I couldn't hear anyone on incoming calls. I did a restart of the box, nothing. Then I disabled Superfecta from the trunks and everything's working.

I will go through the logs tonight and either try to fix or post what I find. I just didn't want anyone seeing my last post any making a move; I still have issues.

Will post tonight after testing.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Doesn't make sense why it wouldn't work. All it's doing in 2.2.3 is querying a webserver for a number. If the site sends back bad data the call will still get passed. Just the number won't.

If you were using 2.3.x then I would help figure it out.

http://<webserver>/admin/modules/superfecta/bin/callerid.php?thenumber=9512594723

This is how you'd check it outside of superfecta. As you can see it just returns a Name. The FreePBX caller id program takes that response and sets it to the variable callerid. There's no way it can disable two-way communication

Version 2.2.3
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top