I'm sorry.
A2Billing V.1.3.1 YellowJacket
Asterisk 1.4.24
Unanswered calls are not billed.
This is an example
-----------------------------------------------------------------------
[Apr 2 07:33:58] VERBOSE[4634] logger.c: -- Executing [7424988@a2billingTelmex:1] Answer("SIP/10.8.2.145-081a7690", "") in new stack
[Apr 2 07:33:58] VERBOSE[4634] logger.c: -- Executing [7424988@a2billingTelmex:2] DeadAGI("SIP/10.8.2.145-081a7690", "a2billing.php|1|standard") in new stack
[Apr 2 07:33:58] VERBOSE[4634] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
.
.
.
[Apr 2 07:34:32] DEBUG[4634] chan_dahdi.c: Dialing '3002206941'
[Apr 2 07:34:32] DEBUG[4634] chan_dahdi.c: Deferring dialing...
[Apr 2 07:34:32] VERBOSE[4634] logger.c: -- Called g11/3002206941
[Apr 2 07:34:32] DEBUG[4634] chan_dahdi.c: Sent deferred digit string: T3002206941w
[Apr 2 07:34:55] DEBUG[4634] chan_dahdi.c: Answering on polarity switch!
[Apr 2 07:34:55] DEBUG[4634] chan_dahdi.c: Polarity Reversal event occured - DEBUG 1: channel 8, state 6, pol= 1, aonp= 1, honp= 1, pdelay= 600, tv= 0
[Apr 2 07:34:55] DEBUG[4634] chan_dahdi.c: Polarity Reversal detected but NOT hanging up (too close to answer event) on channel 8, state 6
[Apr 2 07:34:55] DEBUG[4634] chan_dahdi.c: Polarity Reversal event occured - DEBUG 2: channel 8, state 6, pol= 1, aonp= 1, honp= 1, pdelay= 600, tv= 0
[Apr 2 07:34:55] VERBOSE[4634] logger.c: -- Zap/8-1 answered SIP/10.8.2.145-081a7690
[Apr 2 07:35:00] VERBOSE[4634] logger.c: -- Hungup 'Zap/8-1'
Real Call duration was 5 seconds. It billed 62!!
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard: file:Class.RateEngine.php - line:1062 - [K=0]:[ANSWEREDTIME=62-DIALSTATUS=ANSWER]
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard: file:Class.RateEngine.php - line:1147 - -> dialstatus : ANSWER, answered time is 62
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard:
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard: file:Class.RateEngine.php - line:1151 - [USEDRATECARD=0]
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard: file:Class.RateEngine.php - line:821 - ft2c_package_offer : 0 ; ; 0
[Apr 2 07:35:00] VERBOSE[4634] logger.c: a2billing.php|1|standard: file:Class.RateEngine.php - line:900 - [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 ('1238675638.58',
'SIP/10.8.2.145-081a7690', '7056450798', '', CURRENT_TIMESTAMP - interval '62 seconds' , '62', '3002206941', 'ANSWER', now(), '190', '+380', '', '',
'tigo', '4', '1', '1', '19', '16015259', '0', '49', '98', '0')]
Best Regards
J. Dario Alvarez
|