Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 7:20 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Call duration 0 with EyeBeam Client
PostPosted: Tue Mar 18, 2008 2:53 pm 
Offline

Joined: Tue Mar 18, 2008 2:47 pm
Posts: 1
Hello to all,
i have installed a2billing 1.3.0 with asterisk 1.2.7.1, i use eyebeam as voip software to call, there are 1 situation that a2billing don't log call duration, there are all logs:

If analog phone close connection, those are asterisk log (all ok):

-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eaa38 is making progress passing it to SIP/0734479661-081e6ac8
-- SIP/voipcheap_trunk-081eaa38 answered SIP/0734479661-081e6ac8
a2billing.php: file:Class.RateEngine.php - line:1086 - -> dialstatus : ANSWER, answered time is 13
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 ('1204905455.0', 'SIP/0734479661-081e6ac8', '0734479661', '', CURRENT_TIMESTAMP - INTERVAL 13 SECOND , '13', '390812398318', 'ANSWER', now(), '2', '+2.4333', '', '', 'Destinazione Italia', '1', '1', '1', '3', '451843761767240', '0', '1', '0.5', '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-2.4333 , redial='390812398318' , lastuse=now(), nbused=nbused+1 WHERE username='0734479661']
a2billing.php: file:Class.RateEngine.php - line:874 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 13 WHERE id_trunk='3'
a2billing.php: file:Class.RateEngine.php - line:878 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 13 WHERE id='1'
a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]

If eyebeam close connection with asterisk key, those are asterisk log (all ok):

-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eae48 is making progress passing it to SIP/0734479661-081e6ac8
-- SIP/voipcheap_trunk-081eae48 answered SIP/0734479661-081e6ac8
a2billing.php: file:Class.RateEngine.php - line:1086 - -> dialstatus : ANSWER, answered time is 15
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 ('1204905581.2', 'SIP/0734479661-081e6ac8', '0734479661', '', CURRENT_TIMESTAMP - INTERVAL 15 SECOND , '15', '390812398318', 'ANSWER', now(), '2', '+2.5', '', '', 'Destinazione Italia', '1', '1', '1', '3', '451843761767240', '0', '1', '0.5', '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-2.5 , redial='390812398318' , lastuse=now(), nbused=nbused+1 WHERE username='0734479661']
a2billing.php: file:Class.RateEngine.php - line:874 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 15 WHERE id_trunk='3'
a2billing.php: file:Class.RateEngine.php - line:878 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 15 WHERE id='1'
a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]

If eyebeam close connection with connection close key, those are asterisk log (bad, connection error, duration = 0 ):

-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eac08 is making progress passing it to SIP/0734479661-081e6c98
-- SIP/voipcheap_trunk-081eac08 answered SIP/0734479661-081e6c98
== Spawn extension (a2billing, 0, 3) exited non-zero on 'SIP/0734479661-081e6c98'

there are any solution to this problem ?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 3:02 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Ensure you have the PHP module pcntl available. This has been covered many, many times on this forum.


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


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group