PlugPBX Forums
May 19, 2012, 02:16:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: HELP. Regarding Caller ID Superfecta and Curl_init error  (Read 1429 times)
iboston
Newbie
*
Posts: 10


« on: October 20, 2010, 10:27:35 AM »

I was running Asterisk real world.  I decided to port over to plugpbx for power savings, quietness and the ability to just swap out a sdcard if things go down the tube.  Thus far I have successfully gotten everything working properly with exception
to a couple items. The most serious being below :

I have Caller ID SuperFecta installed and have upgraded to the latest version of FreePBX.
When ever i attempt to do a number lookup i get the error below.

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

From the research i have done, it says all i need to do is install php5-curl.  Well, it doesnt appear to be that easy for me.  Here is what i have done.

I've issued the following console commands into Debian
apt-get update
apt-get install php5-curl

Everything appears to work, and it appears that its installed to php 5.3 but when i view phpinfo
from within FreePBX it says im running version : PHP Version 5.2.11-2

So, unless i have missed out on something after about 15 hours of troubleshooting it appears that the main PHP engine that's updated through the apt-get process is different than the php version thats running through apache2.  - If people agree with this assessment, how do i go about getting the apache php engine updated so that it will support the php5-curl library.

If its something else, then i am completely lost.

Hoping for someone to come through for me on this one!  My eyes are tired of googling this problem!
Logged
iboston
Newbie
*
Posts: 10


« Reply #1 on: October 23, 2010, 06:28:22 AM »

Well, i figured out the problem myself.  I had to install a few extra packages.
Also, i may sound like the stupid guy here, but when i have been running the install packages, sometimes it kept
bringing up README files, and I hit cntrl-c to get out of them which was aborting the install script.  I finally figured out you need to hit 'q' key.  Would be nice if it said that on the read me.

Okay, here is what i did to get curl working.


#1

apt-get install curl
apt-get install libcurl3
apt-get install libcurl3-dev
apt-get install php5-curl
apt-get install php5-mcrypt

# 2

After it finish open php.ini file (mine is at /etc/php5/apache2/php.ini ) and add this command: extension=curl.so

#3

Reboot
Logged
iboston
Newbie
*
Posts: 10


« Reply #2 on: October 23, 2010, 06:32:58 AM »

I thought i'd post this as another message.  However, the PlugPBX guy who made this image did not build asterisk with the addons package which meant curl cannot be called directly through asterisk scripts.

I assume this was intentional on his part to save on overhead?Huh?

I had to use AGI call instead to bypass that shortfall.




Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #3 on: October 23, 2010, 07:43:49 PM »

I can't build a system to meet everyone's needs - the outer fringes of the Bell Curve are not feasible to chase, it has to suit the masses first, nor can I envision ever possible use.

Be glad its debian, so you can add components at will Wink

Worse case compile up a new version of Asterisk with what you need and feel my pain Wink

I can look at what you are asking for with the next release, but donations sure go a long way for motivation *cough* Wink

Logged

-Greg
iboston
Newbie
*
Posts: 10


« Reply #4 on: October 24, 2010, 05:50:34 AM »

I've felt enough pain already trying to get my asterisk transferred from my laptop to plugpbx.  I think now that i have everything working with exception to Cepstral (Which i can live with) , I am going to sit on this for awhile and see how reliable it is.

Mind you, I was not complaining at all.. Heck you did this for your own needs/curiosities, and are allowing others to learn & benefit from that.  Kudos to you. 

Enjoy your weekend.

iBoston
Logged
BinaryTB
Newbie
*
Posts: 19


« Reply #5 on: December 23, 2010, 04:18:35 PM »

I'm having the same problem. I entered the Callwithus CNAM lookup into FreePBX as a callerid lookup source and after much Googling realized it was because of this in my logs:

[Dec 23 18:09:58] ERROR[13548] pbx.c: Function CURL not registered

Do you think CURL is possible in PlugPBX 2.0?
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #6 on: December 23, 2010, 05:24:43 PM »

I'll see about adding it Wink  Your donation will help motivate me too Wink  ..Thank you BinaryTB for the donation...

UPDATE: I've added these steps into the main auto-installer script. Testing now...
« Last Edit: December 23, 2010, 08:14:56 PM by PlugPBX Admin » Logged

-Greg
BinaryTB
Newbie
*
Posts: 19


« Reply #7 on: December 23, 2010, 09:32:05 PM »

Awesome! Thanks, seriously, for all the working you're doing.
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #8 on: December 23, 2010, 10:00:58 PM »

Thanks, and yer welcome.

I saw a few curl modules generated while Asterisk 1.8.1.x built, and i added it to my apt-install lists in the main build script, so...yo should be good to go now Wink

Logged

-Greg
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!