Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 1:05 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: sometimes lost billing and cdr for some call
PostPosted: Wed Sep 26, 2007 3:25 pm 
Offline

Joined: Wed Sep 12, 2007 3:42 am
Posts: 5
I use asterisk-1.4.11 and asterisk2billing-1.3.0 running on fedora 7.
it is work well.but sometime to find that making some call not be update to billing no cdr. display like this. no run insert cdr and update system.



lost billing display
Code:
  -- SIP/sip1-08a56e40 is making progress passing it to SIP/26154-b7900808
    -- SIP/sip1-08a56e40 answered SIP/26154-b7900808
  == Spawn extension (a2billing, 013554879752, 3) exited non-zero on 'SIP/26154-b7900808'


normal billing display
Code:
-- SIP/sip1-08a5cb20 answered SIP/26154-b7900808
  a2billing.php: file:Class.RateEngine.php - line:1086 - -> dialstatus : ANSWER, answered time is 6
  a2billing.php:
  a2billing.php: file:Class.RateEngine.php - line:1090 - [USEDRATECARD=0]
  a2billing.php: file:Class.RateEngine.php - line:777 - ft2c_package_offer : 0 ;  ; 0
  a2billing.php: file:Class.RateEngine.php - line:848 - [CC_asterisk_stop  QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation,  terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1190820698.34', 'SIP/26154-b7900808',  '26154', '', CURRENT_TIMESTAMP - INTERVAL 6 SECOND , '6', '013554879752', 'ANSWER', now(), '0.08', '+0.08',  '', '', '86', '2', '2', '4665', '3', '26154', '0', '0.06', '0.006', '0')]
  a2billing.php: file:Class.RateEngine.php - line:851 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
  a2billing.php: file:Class.RateEngine.php - line:869 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.08  , redial='013554879752' ,  lastuse=now(), nbused=nbused+1 WHERE username='26154']
  a2billing.php: file:Class.RateEngine.php - line:874 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 6 WHERE id_trunk='3'
  a2billing.php: file:Class.RateEngine.php - line:878 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 6 WHERE id='2'
  a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]
  a2billing.php: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='26154']
    -- AGI Script a2billing.php completed, returning 0





any one find this too, and how to resolve it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 6:01 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
First of all can you test to see if this is caused by who clears down the call first? I'm thinking that if the caller clears down you'll get billing records, and if the called party hangs up first then you get no billing.

This is either caused by php-pcntl not being installed correctly (search the forums; this topic has been covered repeatedly), or perhaps the changes to AGI/DeadAGI behaviour in Asterisk v1.4 are interacting badly with A2B. I don't run Asterisk v1.4 myself yet so I couldn't say for sure.


Top
 Profile  
 
 Post subject: CDR on 1.4
PostPosted: Fri Nov 09, 2007 12:20 pm 
Offline

Joined: Mon Oct 15, 2007 10:57 pm
Posts: 8
Yes I found the same problem too. any fix?


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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