hi there,
I am using FreePBX with A2Billing. The idea is only bill international calls and use the power of FreePBX for the rest (voicemail, transfer, etc)
I've configured a custom trunk in FreePBX to send international calls to A2B:
local/$OUTNUM$@a2billing
the calls are routed to a2billing without any problemas and are authenticated using the FreePBX extension CID (for example, 100). Once in a2billing, I have defined a trunk to send back the call to freepbx
Provider tech: local
Provider IP: %dialingnumber%@from-internal/n
In this way I can control the outbound calls more efficiently.
So everything is ok, the call is processing ok, but when the call is answered, A2B the shows
-- Called voicetrading/00034699889560 -- SIP/voicetrading-09666768 is making progress passing it to Local/34699889560@from-internal-5581,2 -- Local/34699889560@from-internal-5581,1 is making progress passing it to Local/0034699889560@a2billing-3e8b,2 -- Local/0034699889560@a2billing-3e8b,1 is making progress passing it to SIP/100-0968a070 -- SIP/voicetrading-09666768 answered Local/34699889560@from-internal-5581,2 -- Local/34699889560@from-internal-5581,1 answered Local/0034699889560@a2billing-3e8b,2 -- Local/0034699889560@a2billing-3e8b,1 answered SIP/100-0968a070 a2billing.php|1: file:Class.RateEngine.php - line:1152 - -> dialstatus : ANSWER, answered time is 0 a2billing.php|1: a2billing.php|1: file:Class.RateEngine.php - line:1156 - [USEDRATECARD=0] a2billing.php|1: file:Class.RateEngine.php - line:913 - [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 ('1202248947.64', 'Local/0034699889560@a2billing-3e8b,2', '74751', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '0034699889560', 'ANSWER', now(), '0.2', '-0', '', '', 'todo', '1', '1', '1', '2', '100', '0', '0.1', '0', '0')] a2billing.php|1: file:Class.RateEngine.php - line:916 - [CC_asterisk_stop 1.1: SQL: DONE : result=1] a2billing.php|1: file:a2billing.php - line:310 - [a2billing account stop] a2billing.php|1: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='74751'] -- AGI Script a2billing.php completed, returning 0
So the call is answered, but a2billing is always considering a duration of 0 seconds!!!
I am using 1.3.1 and 1.3.2...
any idea??
|