asterisk2billing.org http://forum.asterisk2billing.org/ |
|
a2billing hangout for outbound calls http://forum.asterisk2billing.org/viewtopic.php?f=21&t=12411 |
Page 1 of 1 |
Author: | crystal13 [ Mon May 02, 2016 10:01 am ] |
Post subject: | a2billing hangout for outbound calls |
Hello, I'm new of A2Billing, sorry in advance if I wrong section about my issue. I have asterisk 13 and freepbx 12. I installed A2billing, but it don't work. I know that A2billing is not supported with Asterisk 13 but I know that some people have made run it on my same asterisk and freepbx versions. I followed the instructions reported as this user guide since part 1 to part 8: https://sysadminman.net/blog/2010/part- ... astix-1206 The problem seems to be that A2billing don't use the trunk between Asterisk and my service provider for outbound calls. Because by A2billing log file I see these traces of outgoing calls. I hear "zero" (I think is the balance) and then the call goes down. Can someone help me to understand what can be the problem? Thank you in advance! Code: [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:592 - uniqueid:]:[CallerID:]:[CN:]:[A2Billing AGI internal configuration:]
[02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:593 - uniqueid:]:[CallerID:]:[CN:]:[Array ( [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000) [description] => agi-config [asterisk_version] => 1_13 [answer_call] => 1 [play_audio] => 1 [say_goodbye] => 0 [play_menulanguage] => 0 [force_language] => [intro_prompt] => [min_credit_2call] => 0 [min_duration_2bill] => 0 [notenoughcredit_cardnumber] => 0 [notenoughcredit_assign_newcardnumber_cid] => 0 [use_dnid] => 0 [no_auth_dnid] => Array ( [0] => 2400 [1] => 2300 ) [number_try] => 3 [force_callplan_id] => [say_balance_after_auth] => 1 [say_balance_after_call] => 0 [say_rateinitial] => 0 [say_timetocall] => 1 [auto_setcallerid] => 1 [force_callerid] => [cid_sanitize] => 0 [cid_enable] => 0 [cid_askpincode_ifnot_callerid] => 1 [failover_lc_prefix] => 0 [cid_auto_assign_card_to_cid] => 1 [callerid_authentication_over_cardnumber] => 0 [sip_iax_friends] => 0 [sip_iax_pstn_direct_call_prefix] => 555 [sip_iax_pstn_direct_call] => 0 [ivr_voucher] => 0 [ivr_voucher_prefix] => 8 [jump_voucher_if_min_credit] => 0 [dialcommand_param] => |60|HRrL(%timeout%:61000:30000) [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000) [switchdialcommand] => 0 [failover_recursive_limit] => 2 [maxtime_tocall_negatif_free_route] => 5400 [send_reminder] => 0 [record_call] => 0 [monitor_formatfile] => gsm [agi_force_currency] => [currency_association] => Array ( [0] => usd:dollars [1] => mxn:pesos [2] => eur:euros [3] => all:credit ) [local_dialing_addcountryprefix] => 0 [max_call_call_2_did] => 3600 [file_conf_enter_destination] => prepaid-enter-dest [conf_order_menulang] => en:fr:es [callback_bill_1stleg_ifcall_notconnected] => 1 [international_prefixes] => Array ( [0] => 011 [1] => 00 [2] => 09 [3] => 1 ) [extracharge_did] => Array ( [0] => 1800 [1] => 1900 ) [extracharge_fee] => Array ( [0] => 0 [1] => 0 ) [extracharge_buyfee] => Array ( [0] => 0 [1] => 0 ) [maxtime_tounlimited_calls] => 5400 [maxtime_tofree_calls] => 5400 [callplan_deck_minute_threshold] => [disable_announcement_seconds] => 0 [currency_cents_association] => Array ( [0] => usd:prepaid-cents [1] => eur:prepaid-cents [2] => gbp:prepaid-pence [3] => all:credit ) [default_accountcode] => [verbosity_level] => 4 [logging_level] => 4 [dial_balance_reservation] => 0.25 [callerid_update] => 0 [cid_auto_create_card] => 0 [cid_auto_create_card_len] => 10 [cid_auto_create_card_typepaid] => PREPAID [cid_auto_create_card_credit] => 0 [cid_auto_create_card_credit_limit] => 0 [cid_auto_create_card_tariffgroup] => 1 [busy_timeout] => 1 [callback_reduce_balance] => 1 [ivr_enable_locking_option] => 0 [ivr_enable_account_information] => 0 [ivr_enable_ivr_speeddial] => 0 [play_rate_cents_if_lower_one] => 0 [callback_beep_to_enter_destination] => 0 [cid_prompt_callback_confirm_phonenumber] => 0 [lcr_mode] => 0 [default_accountcode_all] => 0 [logger_enable] => 1 [log_file] => /var/log/a2billing/a2billing.log [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000) [currency_association_internal] => Array ( [usd] => dollars [mxn] => pesos [eur] => euros [all] => credit ) [currency_cents_association_internal] => Array ( [usd] => prepaid-cents [eur] => prepaid-cents [gbp] => prepaid-pence [all] => credit ) [file_conf_enter_menulang] => prepaid-menulang [ivr_voucher_prefixe] => 8 [cheat_on_announcement_time] => 0 ) ] [02/05/2016 10:58:55]:[file:a2billing.php - line:119 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1] [02/05/2016 10:58:55]:[file:a2billing.php - line:120 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard] [02/05/2016 10:58:55]:[file:a2billing.php - line:132 - uniqueid:]:[CallerID:]:[CN:]:[AGI Request: Array ( [agi_request] => a2billing.php [agi_channel] => Local/***MY-SERVICE-PROVIDER-IVR***@a2billing-00000005;2 [agi_language] => en [agi_type] => Local [agi_uniqueid] => 1462179534.122 [agi_version] => 13.7.2 [agi_callerid] => 1042 [agi_calleridname] => x-lite-sip [agi_callingpres] => 0 [agi_callingani2] => 0 [agi_callington] => 0 [agi_callingtns] => 0 [agi_dnid] => unknown [agi_rdnis] => unknown [agi_context] => a2billing [agi_extension] => ***MY-SERVICE-PROVIDER-IVR*** [agi_priority] => 3 [agi_enhanced] => 0.0 [agi_accountcode] => 7702164088 [agi_threadid] => -1226278080 [agi_arg_1] => 1 ) ] [02/05/2016 10:58:55]:[file:a2billing.php - line:133 - uniqueid:]:[CallerID:]:[CN:]:[[INFO : A2Billing - v2.2.0]] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:755 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:]:[ get_agi_request_parameter = 1042 ; ; 1462179534.122 ; 7702164088 ; ***MY-SERVICE-PROVIDER-IVR***] [02/05/2016 10:58:55]:[file:Class.Table.php - line:179 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:]:[Running time=0.0030300617218018 - QUERY= SELECT id, currency, name, value FROM cc_currencies ORDER BY id ] [02/05/2016 10:58:55]:[file:a2billing.php - line:167 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:]:[[ANSWER CALL]] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2880 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:]:[ - Account code ::> 7702164088] [02/05/2016 10:58:55]:[file:Class.Table.php - line:179 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00071096420288086 - QUERY= 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 = '7702164088' ] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2898 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[ - 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 = '7702164088'] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2969 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[SET CHANNEL(language) en]] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2973 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[credit=0.00000 :: tariff=3 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit=50 :: language=en]] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:787 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CARD STATUS UPDATE]] [02/05/2016 10:58:55]:[file:Class.Table.php - line:179 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00033402442932129 - QUERY= UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '7702164088' ] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:796 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '7702164088']] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:3272 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[A2Billing] SAY BALANCE : 0.00000 ] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2051 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CURRENCY : USD]] [02/05/2016 10:58:55]:[file:Class.A2Billing.php - line:2061 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[BEFORE: 0 SPRINTF : 0.00]] [02/05/2016 10:58:56]:[file:a2billing.php - line:183 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[TRY : callingcard_ivr_authenticate]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:2534 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[AUTO SetCallerID]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:2551 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[REQUESTED SetCallerID : 1042]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:2564 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[EXEC SetCallerID : 1042]] [02/05/2016 10:58:56]:[file:a2billing.php - line:196 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CHANNEL STATUS : 6 = Line is up] [CREDIT : 0.00000][CREDIT MIN_CREDIT_2CALL : 0]] [02/05/2016 10:58:56]:[file:a2billing.php - line:384 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[TARIFF ID->3] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:846 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:11 ) && (try_num:0)] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:863 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[RES DTMF : -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:923 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CALL 2 DID]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:932 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[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 = '-1' 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')] [02/05/2016 10:58:56]:[file:Class.Table.php - line:179 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00055503845214844 - QUERY= 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 = '-1' 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') ] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:938 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:945 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[RULES APPLY ON DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:a2billing.php - line:562 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[ANSWER fct callingcard_ivr authorize:> -1] [02/05/2016 10:58:56]:[file:a2billing.php - line:196 - uniqueid:1462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CHANNEL STATUS : 6 = Line is up] [CREDIT : 0.00000][CREDIT MIN_CREDIT_2CALL : 0]] [02/05/2016 10:58:56]:[file:a2billing.php - line:384 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[TARIFF ID->3] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:846 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:11 ) && (try_num:1)] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:863 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[RES DTMF : -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:923 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CALL 2 DID]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:932 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[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 = '-1' 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')] [02/05/2016 10:58:56]:[file:Class.Table.php - line:179 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00027894973754883 - QUERY= 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 = '-1' 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') ] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:938 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:945 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[RULES APPLY ON DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:a2billing.php - line:562 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[ANSWER fct callingcard_ivr authorize:> -1] [02/05/2016 10:58:56]:[file:a2billing.php - line:196 - uniqueid:2462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CHANNEL STATUS : 6 = Line is up] [CREDIT : 0.00000][CREDIT MIN_CREDIT_2CALL : 0]] [02/05/2016 10:58:56]:[file:a2billing.php - line:384 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[TARIFF ID->3] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:846 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:11 ) && (try_num:2)] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:863 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[RES DTMF : -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:923 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CALL 2 DID]] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:932 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[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 = '-1' 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')] [02/05/2016 10:58:56]:[file:Class.Table.php - line:179 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00028705596923828 - QUERY= 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 = '-1' 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') ] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:938 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:945 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[RULES APPLY ON DESTINATION ::> -1] [02/05/2016 10:58:56]:[file:a2billing.php - line:562 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[ANSWER fct callingcard_ivr authorize:> -1] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:252 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[HANGUP DETECTED! ] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:787 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[[CARD STATUS UPDATE]] [02/05/2016 10:58:56]:[file:Class.Table.php - line:179 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[Running time=0.00029301643371582 - QUERY= UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '7702164088' ] [02/05/2016 10:58:56]:[file:Class.A2Billing.php - line:796 - uniqueid:3462179534.122]:[CallerID:1042]:[CN:7702164088]:[[QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '7702164088']] [02/05/2016 10:58:56]:[CallerID:1042]:[CN:7702164088]:[[exit]] |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |