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 [225@from-internal:1] Answer("SIP/2002-00000011", "") in new stack
-- Executing [225@from-internal:2] Wait("SIP/2002-00000011", "2") in new stack
-- Executing [225@from-internal: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 [h@from-internal:1] Macro("SIP/2002-00000011", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2002-00000011", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/2002-00000011", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/2002-00000011", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall: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'