Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 2:09 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: centos 6.0 php segfault
PostPosted: Thu Aug 25, 2011 6:06 pm 
Offline

Joined: Mon Apr 21, 2008 1:58 pm
Posts: 16
hi
i am usign stock centos 6.0 packages.

php -v
PHP 5.3.2 (cli) (built: Jun 25 2011 08:26:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

always get segfault of a2billing.php(100%chance)

Aug 25 20:06:25 direct kernel: a2billing.php[1778]: segfault at 2235758 ip 00000000005888ef sp 00007fffc6ad9d10 error 4 in php[400000+2bd000]
Aug 25 20:06:55 direct kernel: a2billing.php[1785]: segfault at 2ea1758 ip 00000000005888ef sp 00007fff9d6a0100 error 4 in php[400000+2bd000]

debug log looks like

a2billing.php,2: file:Class.A2Billing.php - line:718 - uniqueid:1314295811.9 - get_agi_request_parameter = test ; SIP/test-00000009 ; 1314295811.9 ; 3053374131 ; 001234567878
-- <SIP/test-00000009>AGI Script a2billing.php completed, returning 0

looks like it failing on $A2B -> DbConnect();
at same time simialar other script working ok..

web workign fine


any ideas?

p.s where is create ticked in tickets?


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Thu Aug 25, 2011 6:47 pm 
Offline

Joined: Mon Apr 21, 2008 1:58 pm
Posts: 16
ok. fixed it by

yum install php-adodb

cd /var/www/html/common/lib/;mv adodb adodb_ ;ln -s /var/www/adodb/ ./

so your adodb in source tree not working with php 5.3 of centos 6.


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Sat Sep 17, 2011 7:08 pm 
Offline

Joined: Thu Aug 20, 2009 4:17 pm
Posts: 5
Hi,

I ran into the same problem.
I did as you suggested:
Code:
yum install php-adodb
service httpd restart


Moved the folder:
Code:
mv /var/lib/asterisk/agi-bin/lib/adodb /var/lib/asterisk/agi-bin/lib/adodb_

Linked it to the newly installed adodb folder:
Code:
ln -sf /usr/share/php/adodb /var/lib/asterisk/agi-bin/lib/


But still running into the same problem:
Code:
  a2billing.php: file:a2billing.php - line:126 - uniqueid: - [INFO : A2Billing - Version 1.9.4 (Cuprum)]
  a2billing.php: file:Class.A2Billing.php - line:718 - uniqueid:1316286199.19 -  get_agi_request_parameter = 3056221251 ; SIP/test-00000013 ; 1316286199.19 ;  ; 13050025310
    -- AGI Script a2billing.php completed, returning 0
  == Auto fallthrough, channel 'SIP/test-00000013' status is 'UNKNOWN'



OS: CentOS 6
A2billing: A2Billing_1.9.4.tar.gz
Asterisk: Asterisk 1.4.42

Any help would really be appreciated.

Thank you.


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Tue Oct 25, 2011 10:51 am 
Offline

Joined: Thu Feb 11, 2010 8:39 am
Posts: 2
I am also getting the same problem. A2billing.php is fails at DbConnect and log is showing "segfault" error message. I have tried the above solution but a2billing.php still fails

I have centos 6, asterisk 1.8.7, a2billing 1.9.4, php 5.3

Could some1 point in the right direction?


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Thu Oct 27, 2011 1:12 am 
Offline

Joined: Thu Feb 11, 2010 8:39 am
Posts: 2
It got fixed by upgrading php from 5.3.2 to 5.3.8

cheers


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Thu Oct 27, 2011 5:03 pm 
Offline

Joined: Thu Aug 20, 2009 4:17 pm
Posts: 5
How did you update the php, just yum update php ?


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Tue Nov 22, 2011 11:24 pm 
Offline

Joined: Mon Apr 21, 2008 1:58 pm
Posts: 16
this also can be used:

rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
#
# ## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterpris ... ease-6.rpm

yum --enablerepo=remi install php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml

that will upgrade to 5.3.8


Top
 Profile  
 
 Post subject: Re: centos 6.0 php segfault
PostPosted: Wed Nov 23, 2011 4:23 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Just saying, why not just use fedora?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group