Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Nov 22, 2017 5:43 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Thu Sep 16, 2010 8:25 am 
Offline

Joined: Wed Sep 15, 2010 9:09 am
Posts: 96
Hi all,
I have got the same problem.
I have used AGI but it didn't solve the problem and I have changed parameters : dialcommand_param = ,60,HRrL(%timeout%:61000:30000)
Have any solutions for solve problem compatible between Asterisk 1.6 and A2Billing 1.7.1 ?

Additionally, I have a small problem wit A2Billing. When I call to 1 user by A2Billing 1.7.1, the call duration is 30 seconds and the call is terminated. I don't understand this problem.
There is my CLI in Asterisk :

Code:
== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Executing [[email protected]:1] Answer("SIP/2002-00000011", "") in new stack
    -- Executing [[email protected]:2] Wait("SIP/2002-00000011", "2") in new stack
    -- Executing [[email protected]:3] AGI("SIP/2002-00000011", "a2billing.php,1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1: file:Class.A2Billing.php - line:600 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php,1: file:Class.A2Billing.php - line:601 - uniqueid: - Array
a2billing.php,1: (
a2billing.php,1:     [debug] => 4
a2billing.php,1:     [asterisk_version] => 1_4
a2billing.php,1:     [play_audio] => 1
a2billing.php,1:     [use_dnid] => 0
a2billing.php,1:     [number_try] => 3
a2billing.php,1:     [dialcommand_param_call_2did] => ,60,HiL(%timeout%:61000:30000)
a2billing.php,1:     [description] => agi-config
a2billing.php,1:     [answer_call] => 1
a2billing.php,1:     [say_goodbye] => 0
a2billing.php,1:     [play_menulanguage] => 0
a2billing.php,1:     [force_language] =>
a2billing.php,1:     [intro_prompt] =>
a2billing.php,1:     [min_credit_2call] => 0
a2billing.php,1:     [min_duration_2bill] => 0
a2billing.php,1:     [notenoughcredit_cardnumber] => 0
a2billing.php,1:     [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php,1:     [no_auth_dnid] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 2400
a2billing.php,1:             [1] => 2300
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [force_callplan_id] =>
a2billing.php,1:     [say_balance_after_auth] => 1
a2billing.php,1:     [say_balance_after_call] => 0
a2billing.php,1:     [say_rateinitial] => 0
a2billing.php,1:     [say_timetocall] => 1
a2billing.php,1:     [auto_setcallerid] => 1
a2billing.php,1:     [force_callerid] =>
a2billing.php,1:     [cid_sanitize] => 0
a2billing.php,1:     [cid_enable] => 0
a2billing.php,1:     [cid_askpincode_ifnot_callerid] => 1
a2billing.php,1:     [failover_lc_prefix] => 0
a2billing.php,1:     [cid_auto_assign_card_to_cid] => 1
a2billing.php,1:     [callerid_authentication_over_cardnumber] => 0
a2billing.php,1:     [sip_iax_friends] => 0
a2billing.php,1:     [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1:     [sip_iax_pstn_direct_call] => 0
a2billing.php,1:     [ivr_voucher] => 0
a2billing.php,1:     [ivr_voucher_prefix] => 8
a2billing.php,1:     [jump_voucher_if_min_credit] => 0
a2billing.php,1:     [dialcommand_param] => ,60,HRrL(%timeout%:61000:30000)
a2billing.php,1:     [dialcommand_param_sipiax_friend] => ,60,HiL(3600000:61000:30000)
a2billing.php,1:     [switchdialcommand] => 0
a2billing.php,1:     [failover_recursive_limit] => 2
a2billing.php,1:     [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1:     [send_reminder] => 0
a2billing.php,1:     [record_call] => 0
a2billing.php,1:     [monitor_formatfile] => gsm
a2billing.php,1:     [agi_force_currency] =>
a2billing.php,1:     [currency_association] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => usd:dollars
a2billing.php,1:             [1] => mxn:pesos
a2billing.php,1:             [2] => eur:euros
a2billing.php,1:             [3] => all:credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [local_dialing_addcountryprefix] => 0
a2billing.php,1:     [max_call_call_2_did] => 3600
a2billing.php,1:     [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php,1:     [conf_order_menulang] => en:fr:es
a2billing.php,1:     [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1:     [international_prefixes] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 011
a2billing.php,1:             [1] => 00
a2billing.php,1:             [2] => 09
a2billing.php,1:             [3] => 1
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_did] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 1800
a2billing.php,1:             [1] => 1900
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_fee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_buyfee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [maxtime_tounlimited_calls] => 5400
a2billing.php,1:     [maxtime_tofree_calls] => 5400
a2billing.php,1:     [callplan_deck_minute_threshold] =>
a2billing.php,1:     [disable_announcement_seconds] => 0
a2billing.php,1:     [verbosity_level] => 4
a2billing.php,1:     [logging_level] => 4
a2billing.php,1:     [dial_balance_reservation] => 0.25
a2billing.php,1:     [callerid_update] => 0
a2billing.php,1:     [cid_auto_create_card] => 0
a2billing.php,1:     [cid_auto_create_card_len] => 10
a2billing.php,1:     [cid_auto_create_card_typepaid] => PREPAID
a2billing.php,1:     [cid_auto_create_card_credit] => 0
a2billing.php,1:     [cid_auto_create_card_credit_limit] => 0
a2billing.php,1:     [cid_auto_create_card_tariffgroup] => 1
a2billing.php,1:     [busy_timeout] => 1
a2billing.php,1:     [callback_reduce_balance] => 1
a2billing.php,1:     [ivr_enable_locking_option] => 0
a2billing.php,1:     [ivr_enable_account_information] => 0
a2billing.php,1:     [ivr_enable_ivr_speeddial] => 0
a2billing.php,1:     [play_rate_cents_if_lower_one] => 0
a2billing.php,1:     [logger_enable] => 1
a2billing.php,1:     [log_file] => /var/log/a2billing/a2billing.log
a2billing.php,1:     [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php,1:     [currency_association_internal] => Array
a2billing.php,1:         (
a2billing.php,1:             [usd] => dollars
a2billing.php,1:             [mxn] => pesos
a2billing.php,1:             [eur] => euros
a2billing.php,1:             [all] => credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [file_conf_enter_menulang] => prepaid-menulang
a2billing.php,1:     [ivr_voucher_prefixe] => 8
a2billing.php,1:     [cheat_on_announcement_time] => 0
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:103 - uniqueid: - MODE : standard
a2billing.php,1: file:a2billing.php - line:120 - uniqueid: - AGI Request:
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1:     [agi_request] => a2billing.php
a2billing.php,1:     [agi_channel] => SIP/2002-00000011
a2billing.php,1:     [agi_language] => en
a2billing.php,1:     [agi_type] => SIP
a2billing.php,1:     [agi_uniqueid] => 1284617510.17
a2billing.php,1:     [agi_version] => 1.6.0.26-FONCORE-r78
a2billing.php,1:     [agi_callerid] => 2002
a2billing.php,1:     [agi_calleridname] => device
a2billing.php,1:     [agi_callingpres] => 0
a2billing.php,1:     [agi_callingani2] => 0
a2billing.php,1:     [agi_callington] => 0
a2billing.php,1:     [agi_callingtns] => 0
a2billing.php,1:     [agi_dnid] => 225
a2billing.php,1:     [agi_rdnis] => unknown
a2billing.php,1:     [agi_context] => from-internal
a2billing.php,1:     [agi_extension] => 225
a2billing.php,1:     [agi_priority] => 3
a2billing.php,1:     [agi_enhanced] => 0.0
a2billing.php,1:     [agi_accountcode] => 9733082931
a2billing.php,1:     [agi_threadid] => -1218495600
a2billing.php,1:     [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:122 - uniqueid: - [INFO : A2Billing - Version 1.7.1 (Larch)]
a2billing.php,1: file:Class.A2Billing.php - line:714 - uniqueid:1284617510.17 -  get_agi_request_parameter = 2002 ; SIP/2002-00000011 ; 1284617510.17 ; 9733082931 ; 225
a2billing.php,1: file:a2billing.php - line:158 - uniqueid:1284617510.17 - [ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2582 - uniqueid:1284617510.17 -  - Account code ::> 9733082931
a2billing.php,1: file:Class.A2Billing.php - line:2599 - uniqueid:1284617510.17 -  - Retrieve account info SQL ::> SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix,  redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate),  UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email,  cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias, status, voicemail_permitted, voicemail_activated,  cc_card.restriction, cc_country.countryprefix  FROM cc_card  LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id  LEFT JOIN cc_country ON cc_card.country=cc_country.countrycode  WHERE username='9733082931'
a2billing.php,1: file:Class.A2Billing.php - line:2669 - uniqueid:1284617510.17 - [SET CHANNEL(language) en]
a2billing.php,1: file:Class.A2Billing.php - line:2673 - uniqueid:1284617510.17 - [credit=87.85000 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en]
a2billing.php,1: file:Class.A2Billing.php - line:746 - uniqueid:1284617510.17 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:755 - uniqueid:1284617510.17 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='9733082931']
a2billing.php,1: file:Class.A2Billing.php - line:2961 - uniqueid:1284617510.17 - [A2Billing] SAY BALANCE : 87.85000
a2billing.php,1:
a2billing.php,1: file:Class.A2Billing.php - line:1790 - uniqueid:1284617510.17 - [CURRENCY : USD]
a2billing.php,1: file:Class.A2Billing.php - line:1797 - uniqueid:1284617510.17 - [BEFORE: 87.85 SPRINTF : 87.85]
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/2002-00000011> Playing 'digits/80.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/7.gsm' (language 'en')
    -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/2002-00000011> Playing 'digits/80.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/5.gsm' (language 'en')
    -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:a2billing.php - line:174 - uniqueid:1284617510.17 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:Class.A2Billing.php - line:2256 - uniqueid:1284617510.17 - [AUTO SetCallerID]
a2billing.php,1: file:Class.A2Billing.php - line:2262 - uniqueid:1284617510.17 - [REQUESTED SetCallerID : 2002]
a2billing.php,1: file:Class.A2Billing.php - line:2274 - uniqueid:1284617510.17 - [EXEC SetCallerID : 2002]
a2billing.php,1: file:a2billing.php - line:189 - uniqueid:1284617510.17 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 87.85000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:392 - uniqueid:1284617510.17 - TARIFF ID -> 1
a2billing.php,1: file:Class.A2Billing.php - line:804 - uniqueid:1284617510.17 - use_dnid:0 && (!in_array:) && len_dnid:(3 || len_exten:3 ) && (try_num:0)
    -- <SIP/2002-00000011> Playing 'prepaid-enter-dest.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:816 - uniqueid:1284617510.17 - RES DTMF : 3001
a2billing.php,1: file:Class.A2Billing.php - line:871 - uniqueid:1284617510.17 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:880 - uniqueid:1284617510.17 - SELECT cc_did.id, iduser FROM cc_did, cc_card  WHERE cc_card.status=1 and cc_card.id=iduser  and cc_did.activated=1 and did='3001'  AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00')
a2billing.php,1: file:Class.A2Billing.php - line:886 - uniqueid:1284617510.17 - DESTINATION ::> 3001
a2billing.php,1: file:Class.A2Billing.php - line:893 - uniqueid:1284617510.17 - RULES APPLY ON DESTINATION ::> 3001
a2billing.php,1: file:Class.A2Billing.php - line:3413 - uniqueid:1284617510.17 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '3001' WHERE username='9733082931']:[result: 1]
a2billing.php,1: file:Class.RateEngine.php - line:98 - uniqueid:1284617510.17 - [CC_asterisk_rate-engine: (1, 3001)]
a2billing.php,1: file:Class.RateEngine.php - line:120 - uniqueid:1284617510.17 - [CC_asterisk_rate-engine - CALLERID : 2002]
a2billing.php,1: file:Class.RateEngine.php - line:182 - uniqueid:1284617510.17 - [rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:267 - uniqueid:1284617510.17 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:268 - uniqueid:1284617510.17 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1009 - uniqueid:1284617510.17 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:282 - uniqueid:1284617510.17 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (87.85000)]
a2billing.php,1: file:Class.RateEngine.php - line:288 - uniqueid:1284617510.17 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:102960]
a2billing.php,1: file:Class.A2Billing.php - line:1021 - uniqueid:1284617510.17 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1720 - uniqueid:1284617510.17 - TIMEOUT::> 102960 : minutes=1716 - seconds=0
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/2002-00000011> Playing 'digits/1.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/thousand.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/7.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/hundred.gsm' (language 'en')
    -- <SIP/2002-00000011> Playing 'digits/16.gsm' (language 'en')
    -- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:a2billing.php - line:568 - uniqueid:1284617510.17 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1234 - uniqueid:1284617510.17 - app_callingcard: Dialing 'SIP/106-peer/3001,60,HRrL(102960000:61000:30000)' with timeout of '102960'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1253 - uniqueid:1284617510.17 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,1: file:Class.RateEngine.php - line:1148 - uniqueid:1284617510.17 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='2']
    -- AGI Script Executing Application: (DIAL) Options: (SIP/106-peer/3001,60,HRrL(102960000:61000:30000))
    -- Limit Data for this call:
       > timelimit      = 102960000
       > play_warning   = 61000
       > play_to_caller = yes
       > play_to_callee = no
       > warning_freq   = 30000
       > start_sound    =
       > warning_sound  = timeleft
       > end_sound      =
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Called 106-peer/3001
    -- SIP/106-peer-00000012 is ringing
    -- SIP/106-peer-00000012 is ringing
    -- SIP/106-peer-00000012 answered SIP/2002-00000011
    -- Executing [[email protected]:1] Macro("SIP/2002-00000011", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/2002-00000011", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [[email protected]:4] GotoIf("SIP/2002-00000011", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [[email protected]:7] GotoIf("SIP/2002-00000011", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [[email protected]:9] Hangup("SIP/2002-00000011", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2002-00000011' in macro 'hangupcall'
  == Spawn extension (from-internal, 225, 3) exited non-zero on 'SIP/2002-00000011'


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Thu Sep 16, 2010 8:58 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
in future, can you attach logs not paste them, they are difficult to read on the webpage.

Quote:
I have used AGI but it didn't solve the problem and I have changed parameters : dialcommand_param = ,60,HRrL(%timeout%:61000:30000)


You should use deadAGI, and ensure in the global settings of A2Billing that you have set the Asterisk version parameter to the correct version, e.g. 1_6

Joe


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Sat Oct 02, 2010 1:45 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
You could start correcting some incongruences:
you are using asterisk 1.6 with asterisk 1.4 dialcommand.
Please correct that in the System Settings -> Global List -> Asterisk Version (make sure you are using 1_6)

Some reasons for your call durating being only 30secs could be rtp ports blocked or nat problems.

My advise, try to focus on one problem then the next one. ;-)

I hope this can help you a bit.

Good luck

ryan_mu wrote:
Hi all,
I have got the same problem.
I have used AGI but it didn't solve the problem and I have changed parameters : dialcommand_param = ,60,HRrL(%timeout%:61000:30000)
Have any solutions for solve problem compatible between Asterisk 1.6 and A2Billing 1.7.1 ?

Additionally, I have a small problem wit A2Billing. When I call to 1 user by A2Billing 1.7.1, the call duration is 30 seconds and the call is terminated. I don't understand this problem.
There is my CLI in Asterisk :

Code:
== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6 ....
   


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Mon Nov 15, 2010 9:27 pm 
Offline

Joined: Wed Nov 10, 2010 4:14 am
Posts: 4
I am not sure if it helps but before I had problem with a2billing not charging calls for longer calls. Reason was, MYSQL had timeout and any call longer than the time out was not even recorded.


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Tue Dec 21, 2010 6:18 pm 
Offline

Joined: Tue Dec 21, 2010 5:44 pm
Posts: 6
same problem here. I am making calls through a2billing using trixbox 2.8, and asterisk 1.6.
But with the same problem when i hang up there are no charges for the call. However, if the called party hangup it is there??? I have used CLI command agi set debug on and see all the debug lines including this at the end:
SIP/FromAvaya-0000005d is making progress passing it to SIP/FromAvaya-0000005c
-- SIP/FromAvaya-0000005d is ringing
-- SIP/FromAvaya-0000005d is making progress passing it to SIP/FromAvaya-0000005c
-- SIP/FromAvaya-0000005d answered SIP/FromAvaya-0000005c
<SIP/FromAvaya-0000005c>AGI Tx >> 200 result=-1 (jsut after I hangup)
As you can see the call was connected and answered and voice path was ok, but no charge. In the cc_call table the call is there but with terminatecauseid 0 ??? I am expecting 1 as it was answered.
What is going on? :roll: any help will be appriciated


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Tue Dec 21, 2010 6:20 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Sounds like your PHP is missing pcntl support.


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Tue Dec 21, 2010 7:17 pm 
Offline

Joined: Tue Dec 21, 2010 5:44 pm
Posts: 6
Thank you, stavros for your prompt reply. I am not a linux guru but i checked php -m and it is there, not sure if it is enabled though! is there a way to find out how? or once it is installed will take care of that.

thank you


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Tue Dec 21, 2010 9:17 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
If it is listed by 'php -m' then it should be working. There is no configuration for pcntl that I'm aware of.
Perhaps you're using AGI() rather than DeadAGI() in your dial-plan.


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Wed Dec 22, 2010 3:16 pm 
Offline

Joined: Tue Dec 21, 2010 5:44 pm
Posts: 6
Thank you for guiding me. Please have a look to the attched files for 2 cases when call is charged and that is happening when the called party (outside) hangs up before I do from the asterisk side and i named it Good.txt. The other file named Bad.txt is where the problem is and it happens when i hang up before the called party and is realy driving me crazzy.
one strange thing though, i cann't find any data in the agi log file it is blank!!! :!: I see the owner is root, and i changed it to asterisk with no avail.
More info I am using trixbox 2.8 asterisk 1.6 and a2billing 1.6 and with all php modules installed.

Please let me know where to go from here and how to confirm the agi is working properly. and communicating with asterisk coz in the last part of the failing scenario (when i hang up first) there is only one line with AGI Tx >> 200 result=-1 with this neg 1.

Thank you for your support


Attachments:
extensions_custom_conf.txt [202 Bytes]
Downloaded 328 times
Good.txt [10.86 KiB]
Downloaded 319 times
Bad.txt [10.11 KiB]
Downloaded 292 times
Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Thu Dec 30, 2010 7:36 am 
Offline

Joined: Tue Dec 21, 2010 5:44 pm
Posts: 6
Help is still needed with this issue. Anyone have suggestions, please? I am not sure what is going on here! I have a feeling that this agi is not working the way it should. Moreover, while searching, googling, wiki, and reading the AGI section of the asterisk future of telephoney 2nd edition book, all talk about DeadAGI is deprecated in asterisk 1.6?????
However, i tried both DeadAGI, and AGI but to no avail. Still the outbound calls are not charged if I hangup first, and the calls are only charged if the called party hangs up first and i wait on the line till i hear the re-enter distination recording, and if hang up before that there will be no charges too. More to that, all my outgoing trunks are SIP trunks as i do not have any TDM hardware installed.

All comments and ideas are appriciated

Cheers


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Sun Jan 09, 2011 8:22 pm 
Offline

Joined: Sat Jan 08, 2011 4:34 pm
Posts: 2
hi oversees, any luck with this? i too have been struck with this strange problem on a fresh install of trixbox 2.8 running a2b 1.8. symptoms are exactly as you and others have described.

please let me know if you have found a solution, or if any others can comment. :(


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Mon Jan 10, 2011 9:49 am 
Offline

Joined: Tue Dec 21, 2010 5:44 pm
Posts: 6
Absolutly nothing, I was almost come to the conclusion it is my system only that is having this kind of trouble until i see your post isoseeker :!:

I just went back to trixbox 2.6 (asterisk 1.4) and all things are much better now. I believe it is related to asterisk 1.6. I have done all the parts that is required to make a2biling work with 1.6, and it is obviouse as i can make a complete call through a2b of course, but with no charge at all.
from my observation i think the a2b agi doesn't work properly (i have tried both AGI and DeadAGI) and stay with call until hangup, and do the math afterwards!!! I even tried to use the "h" macro as an additional step in the context, but did not work.

Finally, just go back and use any system with asterisk 1.4 and no more late night hassle.

However, the only downside is that 1.4 doesn't support tcp sip trunks out of the box and you have to do more work to add it on, while * 1.6 does have all that and even tls though.

waiting for the experts to solve this or to tell us what we could have done wrong.

have a good one,


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Mon Jan 10, 2011 1:39 pm 
Offline

Joined: Sat Jan 08, 2011 4:34 pm
Posts: 2
thank you for your reply.

no, i am sure you are not the only one. that's too bad to hear about this problem with 1.6 & 1.8.1. i currently have a2b 1.7 running well with 1.4 but of course newer is always better...right?

i will stick with trying to figure this out, but if all else fails, will revert back to 1.4 much like yourself.

any experts out there who can shed some light or provide some guidance, there's not a lot of info on this topic.


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Tue Apr 05, 2011 9:28 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
i have the same problem i think we can resolvethe problem by upgrading asterisk to 1.6.2 .. any one knows how to do this ?


Top
 Profile  
 
 Post subject: Re: a2billing not charging calls with asterisk 1.6
PostPosted: Wed Nov 09, 2011 6:36 am 
Offline

Joined: Wed Nov 09, 2011 6:33 am
Posts: 2
Hello,

I have searched high and low for a solution to this issue and tried everything possible. Does anyone know of a fix to this issue?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next
Hosted Voice Broadcast


All times are UTC


Who is online

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