Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 7:04 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: too many errors in /var/log/messages log file and crash
PostPosted: Tue Oct 16, 2007 5:48 pm 
Offline

Joined: Tue May 23, 2006 8:30 pm
Posts: 67
My asterisk crash every 2 or 3 hours only when I use a2billing AGI to send calls to a Gateway (using OOH323 or simple SIP calls), doing some debug I found too many errors in /var/log/messages log file:

Oct 15 17:29:31 trixbox1 php: /var/lib/asterisk/agi-bin/libs_a2billing/Class.A2Billing.php[230]: date(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead

and also this message:
Oct 16 12:24:49 trixbox1 php: /var/lib/asterisk/agi-bin/libs_a2billing/Class.RateEngine.php[721]: Undefined variable: agi

The first error dissaper adding this line to Class.A2Billing.php and Class.RateEngine.php (thanks svetur):

date_default_timezone_set("America/Denver");

Well I think we have better performance but now I dont know what to do whit the second log message "Undefined variable: agi"

My system:
2 Processors Intel(R) Pentium(R) D CPU 3.00GHz
CPU Speed 2.99 GHz, Cache Size 2048 KB, 1G Ram
Centos 5 , Kernel Version 2.6.18-8.1.14.el5 (SMP) (from trixbox 2.3)
PHP 5.1.6
DB: Mysql 5.0.22 (in a separated box)
Asterisk 1.2.24 (works well with DeadAGI)

please I really need some advice.
thanks
rafael


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 2:50 am 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
Who said here is ASTERISK SUPPORT FORUM?? :x
i guess its THERE!
good luck


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 3:04 pm 
Offline

Joined: Tue May 23, 2006 8:30 pm
Posts: 67
Thanks anest

My problem is not asterisk, actually my asterisk (1.2.24 and 1.4.x) its very stable and works perfect if I do not use a2billing AGI, so my cuestion is related to a2billing performance, see the "segmentation fault" in my last log:

Oct 17 09:39:54 DEBUG[4712] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode) VALUES ('2007-10-17 09:39:37','41826988','41826988','51193506072','from_clarent_to_a2b', 'SIP/660750123-08921cc0','OOH323/51193506072-6c38','Dial','OOH323/192.168.12.248/51193506072|90|LRr(4477680000:61000:00000)',17,5,'ANSWERED',2,'660750123')
Oct 17 09:39:54 DEBUG[27239] chan_sip.c: Stopping retransmission on '[email protected]' of Request 102: Match Found
-- Executing Goto("SIP/660750123-0891e880", "from_clarent_to_a2b|51429985515|1") in new stack
-- Goto (from_clarent_to_a2b,51429985515,1)
-- Executing DeadAGI("SIP/660750123-0891e880", "a2billing.php|3") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
Oct 17 09:40:04 DEBUG[27239] acl.c: ##### Testing 192.168.12.211 with 192.168.0.0
Oct 17 09:40:04 DEBUG[27239] chan_sip.c: Setting NAT on RTP to 524288
Oct 17 09:40:04 DEBUG[27239] chan_sip.c: Checking SIP call limits for device 660750123
Oct 17 09:40:04 DEBUG[27239] chan_sip.c: build_route: Contact hop: <sip:[email protected]:5060>
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- Executing Goto("SIP/660750123-0891e880", "from_clarent_to_a2b|51429985515|1") in new stack
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- Goto (from_clarent_to_a2b,51429985515,1)
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- Executing DeadAGI("SIP/660750123-0891e880", "a2billing.php|3") in new stack
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- AGI Script Executing Application: (Dial) Options: (OOH323/192.168.12.248/51429985515|90|LRr(3109440000:61000:00000))
-- Called 192.168.12.248/51429985515
-- OOH323/51429985515-cbcc is ringing
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- AGI Script Executing Application: (Dial) Options: (OOH323/192.168.12.248/51429985515|90|LRr(3109440000:61000:00000))
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- Called 192.168.12.248/51429985515
Oct 17 09:40:04 VERBOSE[4721] logger.c: -- OOH323/51429985515-cbcc is ringing
/usr/sbin/safe_asterisk: line 58: 27224 Segmentation fault (core dumped) ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS}
Asterisk exited on signal 11.
Automatically restarting Asterisk.
...
...

My configuration in extension.conf :

;; This config crash and reset asterisk randomly
exten => _51.,1,DeadAGI(a2billing.php|3)
exten => _51.,2,Hangup

;; This works OK
;exten => _51.,1,Dial(OOH323/${EXTEN}@192.168.12.248:1720)
;exten => _51.,2,Hangup


debug in /var/log/messages find this error:
Oct 17 09:52:50 trixbox1 php: /var/lib/asterisk/agi-bin/libs_a2billing/Class.RateEngine.php[301]: Undefined variable: agi

any idea?
thanks
rafael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 19, 2007 8:10 pm 
Offline

Joined: Tue May 23, 2006 8:30 pm
Posts: 67
Hi

I changed "switchdialcommand" parameter to "YES" in a2billing.conf to define the order to make the outbound call and my problem has gone, my asterisk is running for two days without any problem, well I am not sure but... hope it helps,
rafael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group