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