Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 3:24 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Call Drop after 32 seconds
PostPosted: Mon Apr 05, 2010 7:35 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
hi,
i think this is rgith place to ask this question on my test system everything is working fine. it anounce balance and ask for number to dial then after dialing number call stay connected aprox 32seconds but then hangup can some one please tell me what i m doing wrong?

here is results from astersik


Code:
[root@billing ~]# asterisk -r
Asterisk 1.4.30, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail                                                                             s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.30 currently running on billing (pid = 3482)
Verbosity is at least 3
    -- Executing [00999999999999@a2billing:1] Answer("SIP/7209687053-00000010",                                                                              "") in new stack
    -- Executing [00999999999999@a2billing:2] Wait("SIP/7209687053-00000010", "1                                                                             ") in new stack
    -- Executing [00999999999999@a2billing:3] DeadAGI("SIP/7209687053-00000010",                                                                              "a2billing.php|1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/7209687053-00000010> Playing 'digits/19' (language 'en')
    -- Playing 'euros' (escape_digits=#) (sample_offset 0)
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/7209687053-00000010> Playing 'digits/70' (language 'en')
    -- <SIP/7209687053-00000010> Playing 'digits/8' (language 'en')
    -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
    -- <SIP/7209687053-00000010> Playing 'prepaid-enter-dest' (language 'en')
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/7209687053-00000010> Playing 'digits/9' (language 'en')
    -- <SIP/7209687053-00000010> Playing 'digits/hundred' (language 'en')
    -- <SIP/7209687053-00000010> Playing 'digits/80' (language 'en')
    -- <SIP/7209687053-00000010> Playing 'digits/5' (language 'en')
    -- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/7209687053-00000010> Playing 'digits/50' (language 'en')
    -- Playing 'prepaid-seconds' (escape_digits=#) (sample_offset 0)
    -- AGI Script Executing Application: (DIAL) Options: (sip/voipb/009999999999                                                                             39|60|HRrL(59150000:61000:30000))
    -- Limit Data for this call:
       > timelimit      = 59150000
       > play_warning   = 61000
       > play_to_caller = yes
       > play_to_callee = no
       > warning_freq   = 30000
       > start_sound    =
       > warning_sound  = timeleft
       > end_sound      =
    -- Called voipb/00999999999999
    -- SIP/voipb-00000011 is making progress passing it to SIP/7209687053-000000                                                                             10
    -- SIP/voipb-00000011 answered SIP/7209687053-00000010
    -- <SIP/7209687053-00000010> Playing 'prepaid-enter-dest' (language 'en')
    -- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
billing*CLI>


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Tue Apr 06, 2010 2:39 am 
Offline

Joined: Tue Apr 06, 2010 12:29 am
Posts: 4
try changing dialcommand_param to be

,60,iRL(%timeout%:61000:30000)

which removes "H" from its original setting.

Hope it helps!


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Tue Apr 06, 2010 2:44 am 
Offline

Joined: Tue Apr 06, 2010 12:29 am
Posts: 4
If calls are made by a SIP friend or IAX friend, change those dialcommand as well and try..

For example, if calls are made from a SIP friend, then you change dialcommand_param_sipiax_friend in addition.


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Tue Apr 06, 2010 1:03 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
Code:
dialcommand_param/dialcommand_param_sipiax_friend        |60|HRrL(%timeout%:61000:30000) 

changed to
Code:
dialcommand_param/dialcommand_param_sipiax_friend         |60|iRrL(%timeout%:61000:30000) 

tried this as well
Code:
dialcommand_param/dialcommand_param_sipiax_friend        |60|iRL(%timeout%:61000:30000) 


changed these settings even left blank but still same problem :(


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Wed Apr 07, 2010 12:00 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi flatpack,

Code:
hi,
i think this is rgith place to ask this question on my test system everything is working fine. it anounce balance and ask for number to dial then after dialing number call stay connected [b]aprox 32seconds[/b] but then hangup can some one please tell me what i m doing wrong?


Would start looking at the network setup, what does asterisk full log say. seems like RTP OK problem. and what phones are you using to test the call.

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Sat Apr 10, 2010 3:00 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
provider :furious: droping call all time, i installed seperate freepbx for testing this just in case i m doing something wrong. but damn provider droping call after 32 seconds. may be its codec issue but he never came back with explanation.
thanks guys,


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Thu Apr 29, 2010 3:12 pm 
Offline

Joined: Thu Apr 29, 2010 2:45 pm
Posts: 9
Hello guys, i've got almost the same problem, except i was testing in at lab.
So i have 2 asterisks, with 2 SIP phones, one of them Linksys SPA962, the second is X-lite.
There is a SIP-trunk between 2 asterisk. The call is going fine, and its all ok till 30-32 secs, then my call drops. Debug didnt show the reason, or i didnt find it. I've tried different settings from dialparam, rates, agi-conf, tried usin AGI, DeadAGI, all the same - 32 seconds then drop.

I've downloaded and installed the lastest version of a2b, but there is no subforum with 1.6 version so i'll post it here.
Here is the log guys. Help me with it:

Code:
tt-23*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [3509258812@a2billing:1] Answer("SIP/8804257720-0000004b", "") in new stack
    -- Executing [3509258812@a2billing:2] Wait("SIP/8804257720-0000004b", "2") in new stack
    -- Executing [3509258812@a2billing:3] AGI("SIP/8804257720-0000004b", "a2billing.php") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php: file:Class.A2Billing.php - line:599 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php: file:Class.A2Billing.php - line:600 - uniqueid: - Array
a2billing.php: (
a2billing.php:     [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)
a2billing.php:     [description] => agi-config
a2billing.php:     [asterisk_version] => 1_6
a2billing.php:     [answer_call] => 1
a2billing.php:     [play_audio] => 1
a2billing.php:     [say_goodbye] => 0
a2billing.php:     [play_menulanguage] => 0
a2billing.php:     [force_language] => ru
a2billing.php:     [intro_prompt] =>
a2billing.php:     [min_credit_2call] => 0
a2billing.php:     [min_duration_2bill] => 0
a2billing.php:     [notenoughcredit_cardnumber] => 0
a2billing.php:     [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php:     [use_dnid] => 0
a2billing.php:     [no_auth_dnid] => Array
a2billing.php:         (
a2billing.php:             [0] => 2400
a2billing.php:             [1] => 2300
a2billing.php:         )
a2billing.php:
a2billing.php:     [number_try] => 3
a2billing.php:     [force_callplan_id] =>
a2billing.php:     [say_balance_after_auth] => 1
a2billing.php:     [say_balance_after_call] => 0
a2billing.php:     [say_rateinitial] => 1
a2billing.php:     [say_timetocall] => 1
a2billing.php:     [auto_setcallerid] => 1
a2billing.php:     [force_callerid] =>
a2billing.php:     [cid_sanitize] => 0
a2billing.php:     [cid_enable] => 0
a2billing.php:     [cid_askpincode_ifnot_callerid] => 1
a2billing.php:     [failover_lc_prefix] => 0
a2billing.php:     [cid_auto_assign_card_to_cid] => 1
a2billing.php:     [callerid_authentication_over_cardnumber] => 0
a2billing.php:     [sip_iax_friends] => 0
a2billing.php:     [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php:     [sip_iax_pstn_direct_call] => 0
a2billing.php:     [ivr_voucher] => 0
a2billing.php:     [ivr_voucher_prefix] => 8
a2billing.php:     [jump_voucher_if_min_credit] => 0
a2billing.php:     [dialcommand_param] => |60|iRL(%timeout%)
a2billing.php:     [dialcommand_param_sipiax_friend] => |60|iRL(7200000)
a2billing.php:     [switchdialcommand] => 0
a2billing.php:     [failover_recursive_limit] => 2
a2billing.php:     [maxtime_tocall_negatif_free_route] => 5400
a2billing.php:     [send_reminder] => 0
a2billing.php:     [record_call] => 0
a2billing.php:     [monitor_formatfile] => gsm
a2billing.php:     [agi_force_currency] =>
a2billing.php:     [currency_association] => Array
a2billing.php:         (
a2billing.php:             [0] => usd:dollars
a2billing.php:             [1] => mxn:pesos
a2billing.php:             [2] => eur:euros
a2billing.php:             [3] => all:credit
a2billing.php:         )
a2billing.php:
a2billing.php:     [local_dialing_addcountryprefix] => 0
a2billing.php:     [max_call_call_2_did] => 3600
a2billing.php:     [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php:     [conf_order_menulang] => en:fr:es
a2billing.php:     [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php:     [international_prefixes] => Array
a2billing.php:         (
a2billing.php:             [0] => 011
a2billing.php:             [1] => 00
a2billing.php:             [2] => 09
a2billing.php:             [3] => 1
a2billing.php:         )
a2billing.php:
a2billing.php:     [extracharge_did] => Array
a2billing.php:         (
a2billing.php:             [0] => 1800
a2billing.php:             [1] => 1900
a2billing.php:         )
a2billing.php:
a2billing.php:     [extracharge_fee] => Array
a2billing.php:         (
a2billing.php:             [0] => 0
a2billing.php:             [1] => 0
a2billing.php:         )
a2billing.php:
a2billing.php:     [extracharge_buyfee] => Array
a2billing.php:         (
a2billing.php:             [0] => 0
a2billing.php:             [1] => 0
a2billing.php:         )
a2billing.php:
a2billing.php:     [maxtime_tounlimited_calls] => 5400
a2billing.php:     [maxtime_tofree_calls] => 5400
a2billing.php:     [callplan_deck_minute_threshold] =>
a2billing.php:     [disable_announcement_seconds] => 0
a2billing.php:     [verbosity_level] => 4
a2billing.php:     [logging_level] => 4
a2billing.php:     [dial_balance_reservation] => 0.25
a2billing.php:     [callerid_update] => 0
a2billing.php:     [cid_auto_create_card] => 0
a2billing.php:     [cid_auto_create_card_len] => 10
a2billing.php:     [cid_auto_create_card_typepaid] => PREPAID
a2billing.php:     [cid_auto_create_card_credit] => 0
a2billing.php:     [cid_auto_create_card_credit_limit] => 0
a2billing.php:     [cid_auto_create_card_tariffgroup] => 1
a2billing.php:     [busy_timeout] => 1
a2billing.php:     [callback_reduce_balance] => 1
a2billing.php:     [ivr_enable_locking_option] => 0
a2billing.php:     [ivr_enable_account_information] => 0
a2billing.php:     [ivr_enable_ivr_speeddial] => 0
a2billing.php:     [logger_enable] => 1
a2billing.php:     [log_file] => /var/log/a2billing/a2billing.log
a2billing.php:     [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php:     [currency_association_internal] => Array
a2billing.php:         (
a2billing.php:             [usd] => dollars
a2billing.php:             [mxn] => pesos
a2billing.php:             [eur] => euros
a2billing.php:             [all] => credit
a2billing.php:         )
a2billing.php:
a2billing.php:     [file_conf_enter_menulang] => prepaid-menulang
a2billing.php:     [ivr_voucher_prefixe] => 8
a2billing.php:     [cheat_on_announcement_time] => 0
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1
a2billing.php: file:a2billing.php - line:103 - uniqueid: - MODE : standard
a2billing.php: file:a2billing.php - line:120 - uniqueid: - AGI Request:
a2billing.php: Array
a2billing.php: (
a2billing.php:     [agi_request] => a2billing.php
a2billing.php:     [agi_channel] => SIP/8804257720-0000004b
a2billing.php:     [agi_language] => en
a2billing.php:     [agi_type] => SIP
a2billing.php:     [agi_uniqueid] => 1272552461.75
a2billing.php:     [agi_version] => 1.6.1.18
a2billing.php:     [agi_callerid] => 8804257720
a2billing.php:     [agi_calleridname] => 8804257720
a2billing.php:     [agi_callingpres] => 0
a2billing.php:     [agi_callingani2] => 0
a2billing.php:     [agi_callington] => 0
a2billing.php:     [agi_callingtns] => 0
a2billing.php:     [agi_dnid] => 3509258812
a2billing.php:     [agi_rdnis] => unknown
a2billing.php:     [agi_context] => a2billing
a2billing.php:     [agi_extension] => 3509258812
a2billing.php:     [agi_priority] => 3
a2billing.php:     [agi_enhanced] => 0.0
a2billing.php:     [agi_accountcode] => 8804257720
a2billing.php:     [agi_threadid] => -1221395568
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:122 - uniqueid: - [INFO : A2Billing - Version 1.6.0 (Hickory) - Released                                                                : 16 February 2010]
a2billing.php: file:Class.A2Billing.php - line:713 - uniqueid:1272552461.75 -  get_agi_request_parameter = 880425                                                               7720 ; SIP/8804257720-0000004b ; 1272552461.75 ; 8804257720 ; 3509258812
a2billing.php: file:a2billing.php - line:158 - uniqueid:1272552461.75 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:682 - uniqueid:1272552461.75 - FORCE LANGUAGE : ru
a2billing.php: file:Class.A2Billing.php - line:692 - uniqueid:1272552461.75 - [SET CHANNEL(language) ru]
a2billing.php: file:Class.A2Billing.php - line:2565 - uniqueid:1272552461.75 -  - Account code ::> 8804257720
a2billing.php: file:Class.A2Billing.php - line:2582 - uniqueid:1272552461.75 -  - Retrieve account info SQL ::> S                                                               ELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix,  redial,                                                                enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate),  UNIX_TIMESTAMP(c                                                               c_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email,  cc_card.uipass, cc_ca                                                               rd.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='8804257720'
a2billing.php: file:Class.A2Billing.php - line:2656 - uniqueid:1272552461.75 - [credit=37.48334 :: tariff=1 :: st                                                               atus=1 :: isused=0 :: simultaccess=1 :: typepaid=1 :: creditlimit= :: language=en]
a2billing.php: file:Class.A2Billing.php - line:745 - uniqueid:1272552461.75 - [CARD STATUS UPDATE]
a2billing.php: file:Class.A2Billing.php - line:754 - uniqueid:1272552461.75 - [QUERY USING CARD UPDATE::> UPDATE                                                                cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='8804257720']
a2billing.php: file:Class.A2Billing.php - line:2944 - uniqueid:1272552461.75 - [A2Billing] SAY BALANCE : 37.48334                                                               
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1791 - uniqueid:1272552461.75 - [CURRENCY : USD]
a2billing.php: file:Class.A2Billing.php - line:1798 - uniqueid:1272552461.75 - [BEFORE: 37.48334 SPRINTF : 37.48]
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/8804257720-0000004b> Playing 'digits/30.gsm' (language 'ru')
    -- <SIP/8804257720-0000004b> Playing 'digits/7.gsm' (language 'ru')
    -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[Apr 29 17:47:49] WARNING[19960]: file.c:467 ast_filehelper: File /var/lib/asterisk/sounds/ru/vm-and.gsm detected                                                                to have zero size.
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/8804257720-0000004b> Playing 'digits/40.gsm' (language 'ru')
    -- <SIP/8804257720-0000004b> Playing 'digits/8.gsm' (language 'ru')
    -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
a2billing.php: file:a2billing.php - line:174 - uniqueid:1272552461.75 - [TRY : callingcard_ivr_authenticate]
a2billing.php: file:Class.A2Billing.php - line:2251 - uniqueid:1272552461.75 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:2257 - uniqueid:1272552461.75 - [REQUESTED SetCallerID : 880425772                                                               0]
a2billing.php: file:Class.A2Billing.php - line:2269 - uniqueid:1272552461.75 - [EXEC SetCallerID : 8804257720]
a2billing.php: file:a2billing.php - line:189 - uniqueid:1272552461.75 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: [CREDIT : 37.48334][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:a2billing.php - line:218 - uniqueid:1272552461.75 - TARIFF ID -> 1
a2billing.php: file:Class.A2Billing.php - line:803 - uniqueid:1272552461.75 - use_dnid:0 && (!in_array:) && len_d                                                               nid:(10 || len_exten:10 ) && (try_num:0)
    -- <SIP/8804257720-0000004b> Playing 'prepaid-enter-dest.gsm' (language 'ru')
a2billing.php: file:Class.A2Billing.php - line:815 - uniqueid:1272552461.75 - RES DTMF : 937631862
a2billing.php: file:Class.A2Billing.php - line:870 - uniqueid:1272552461.75 - [CALL 2 DID]
a2billing.php: file:Class.A2Billing.php - line:879 - uniqueid:1272552461.75 - SELECT cc_did.id, iduser FROM cc_di                                                               d, cc_card  WHERE cc_card.status=1 and cc_card.id=iduser  and cc_did.activated=1 and did='937631862'  AND cc_did.s                                                               tartingdate<= 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: file:Class.A2Billing.php - line:885 - uniqueid:1272552461.75 - DESTINATION ::> 937631862
a2billing.php: file:Class.A2Billing.php - line:892 - uniqueid:1272552461.75 - RULES APPLY ON DESTINATION ::> 9376                                                               31862
a2billing.php: file:Class.A2Billing.php - line:3396 - uniqueid:1272552461.75 - [SAVING DESTINATION FOR REDIAL: SQ                                                               L: UPDATE cc_card SET redial = '937631862' WHERE username='8804257720']:[result: 1]
a2billing.php: file:Class.RateEngine.php - line:98 - uniqueid:1272552461.75 - [CC_asterisk_rate-engine: (1, 93763                                                               1862)]
a2billing.php: file:Class.RateEngine.php - line:120 - uniqueid:1272552461.75 - [CC_asterisk_rate-engine - CALLERI                                                               D : 8804257720]
a2billing.php: file:Class.RateEngine.php - line:182 - uniqueid:1272552461.75 - [rate-engine: Count Total result 1                                                               ]
a2billing.php: file:Class.RateEngine.php - line:267 - uniqueid:1272552461.75 - [CC_asterisk_rate-engine: Count To                                                               tal result 1]
a2billing.php: file:Class.RateEngine.php - line:268 - uniqueid:1272552461.75 - [CC_asterisk_rate-engine: number_t                                                               runk 1]
a2billing.php: file:Class.A2Billing.php - line:1008 - uniqueid:1272552461.75 - OK - RESFINDRATE::> 1
a2billing.php: file:Class.RateEngine.php - line:282 - uniqueid:1272552461.75 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT                                                                (37.48334)]
a2billing.php: file:Class.RateEngine.php - line:288 - uniqueid:1272552461.75 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT:                                                                k=0 - res_calcultimeout:1124]
a2billing.php: file:Class.A2Billing.php - line:1020 - uniqueid:1272552461.75 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php: file:Class.A2Billing.php - line:1721 - uniqueid:1272552461.75 - TIMEOUT::> 1124 : minutes=18 - sec                                                               onds=44
a2billing.php: file:Class.A2Billing.php - line:1899 - uniqueid:1272552461.75 - [CURRENCY : USD]
    -- Playing 'prepaid-cost-call' (escape_digits=#) (sample_offset 0)
    -- <SIP/8804257720-0000004b> Playing 'digits/2.gsm' (language 'ru')
    -- Playing 'dollar2' (escape_digits=#) (sample_offset 0)
    -- Playing 'prepaid-per-minutes' (escape_digits=#) (sample_offset 0)
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/8804257720-0000004b> Playing 'digits/18.gsm' (language 'ru')
    -- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
[Apr 29 17:48:06] WARNING[19960]: file.c:467 ast_filehelper: File /var/lib/asterisk/sounds/ru/vm-and.gsm detected                                                                to have zero size.
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/8804257720-0000004b> Playing 'digits/40.gsm' (language 'ru')
    -- <SIP/8804257720-0000004b> Playing 'digits/4.gsm' (language 'ru')
    -- Playing 'prepaid-second2' (escape_digits=#) (sample_offset 0)
a2billing.php: file:a2billing.php - line:312 - uniqueid:1272552461.75 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php: file:Class.RateEngine.php - line:1234 - uniqueid:1272552461.75 - app_callingcard: Dialing 'SIP/tru                                                               nk/937631862|60|iRL(1124000)' with timeout of '1124'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1253 - uniqueid:1272552461.75 - app_callingcard: CIDGROUPID='-1'                                                                OUTBOUND CID SELECTED IS '0'.
a2billing.php: file:Class.RateEngine.php - line:1148 - uniqueid:1272552461.75 - [TRUNK STATUS UPDATE : UPDATE cc_                                                               trunk SET inuse=inuse+1 WHERE id_trunk='2']
    -- AGI Script Executing Application: (DIAL) Options: (SIP/trunk/937631862,60,iRL(1124000))
    -- Setting call duration limit to 1124.000 seconds.
  == Using SIP RTP CoS mark 5
    -- Called trunk/937631862
    -- SIP/trunk-0000004c is ringing
    -- SIP/trunk-0000004c answered SIP/8804257720-0000004b
a2billing.php: file:Class.RateEngine.php - line:1262 - uniqueid:1272552461.75 - DIAL SIP/trunk/937631862|60|iRL(1                                                               124000)
a2billing.php: file:Class.RateEngine.php - line:1148 - uniqueid:1272552461.75 - [TRUNK STATUS UPDATE : UPDATE cc_                                                               trunk SET inuse=inuse-1 WHERE id_trunk='2']
a2billing.php: file:Class.RateEngine.php - line:1411 - uniqueid:1272552461.75 - -> dialstatus : ANSWER, answered                                                                time is 32
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1415 - uniqueid:1272552461.75 - [USEDRATECARD=0]
a2billing.php: file:Class.RateEngine.php - line:953 - uniqueid:1272552461.75 - :[sessiontime:32 - id_cc_package_o                                                               ffer:-1 - package2apply:]
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:730 - uniqueid:1272552461.75 - [CC_RATE_ENGINE_CALCULCOST: K=0 -                                                                CALLDURATION:32 - freetimetocall_used=0]
a2billing.php: file:Class.RateEngine.php - line:808 - uniqueid:1272552461.75 - [TEMP - CC_RATE_ENGINE_CALCULCOST:                                                                1. COST: -1.0666666666667]:[ (32/60) * 2 ]
a2billing.php: file:Class.RateEngine.php - line:893 - uniqueid:1272552461.75 - [CC_RATE_ENGINE_CALCULCOST: K=0 -                                                                BUYCOST:-0.53333333333333 - SELLING COST:-1.066667]
a2billing.php: file:Class.RateEngine.php - line:1036 - uniqueid:1272552461.75 - [CC_RATE_ENGINE_UPDATESYSTEM: use                                                               dratecard K=0 - (sessiontime=32 :: dialstatus=ANSWER :: buycost=0.53333333333333 :: cost=-1.066667 : signe_cc_call                                                               =+: signe=-)]
a2billing.php: file:Class.RateEngine.php - line:1098 - uniqueid:1272552461.75 - [CC_asterisk_stop : SQL: DONE : r                                                               esult=1]
a2billing.php: file:Class.RateEngine.php - line:1099 - uniqueid:1272552461.75 - [CC_asterisk_stop : SQL: INSERT I                                                               NTO cc_call (uniqueid, sessionid, card_id, nasipaddress, starttime, sessiontime, real_sessiontime, calledstation,                                                                 terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard,  id_trunk, src, sipiax, buyc                                                               ost, id_card_package_offer, dnid, destination) VALUES ('1272552461.75', 'SIP/8804257720-0000004b', '1', '', SUBDAT                                                               E(CURRENT_TIMESTAMP, INTERVAL 32 SECOND) , '32', '32', '937631862', 1, now() , '+1.066667',  '1', '1', '1', '2', '                                                               8804257720', '0',  '0.53333333333333', NULL, '3509258812', '380')]
a2billing.php: file:Class.RateEngine.php - line:1123 - uniqueid:1272552461.75 - [CC_asterisk_stop 1.2: SQL: UPDAT                                                               E cc_card SET credit= credit-1.066667 ,  lastuse=now(), nbused=nbused+1 WHERE username='8804257720']
a2billing.php: file:Class.RateEngine.php - line:1128 - uniqueid:1272552461.75 - UPDATE cc_trunk SET secondusedrea                                                               l = secondusedreal + 32 WHERE id_trunk='2'
a2billing.php: file:Class.RateEngine.php - line:1132 - uniqueid:1272552461.75 - UPDATE cc_tariffplan SET secondus                                                               edreal = secondusedreal + 32 WHERE id='1'
a2billing.php: file:a2billing.php - line:328 - uniqueid:1272552461.75 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:189 - uniqueid:1272552461.75 - [CHANNEL STATUS :  = Channel is down and                                                                available]
a2billing.php: [CREDIT : 36.416673][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:745 - uniqueid:1272552461.75 - [CARD STATUS UPDATE]
a2billing.php: file:Class.A2Billing.php - line:754 - uniqueid:1272552461.75 - [QUERY USING CARD UPDATE::> UPDATE                                                                cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='8804257720']
    -- <SIP/8804257720-0000004b>AGI Script a2billing.php completed, returning -1
tt-23*CLI>


SIP.CONF for 1st asterisk with billing:
Code:
[trunk]
type=friend
context=a2billing
host=10.0.0.103
fromuser=8804257720
disallow=all
allow=alaw
nat=no
canreinvite=no
dtmfmode=auto
insecure=port,invite


Extensions.conf for 1st asterisk:

Code:
[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait(2)
exten => _X.,3,AGI(a2billing.php)
exten => _X.,4,Wait(2)
exten => _X.,5,Hangup


Extensions.conf for 2nd asterisk:

Code:
[trunk]
exten => 937631862,1,Dial(SIP/1000)


Sip.conf for 2nd asterisk:

Code:
[trunk]
type=friend
context=trunk
host=10.0.0.201
disallow=all
allow=alaw
nat=no
canreinvite=no
dtmfmode=auto
insecure=port,invite


[1000]
username=1000
type=friend
context=phones
host=dynamic
secret=1000
disallow=all
allow=alaw
accountcode=1000


Plz, help me to solve the problem.
And sorry for my English, i am from Ukraine, so its not native.


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Tue Jun 08, 2010 2:51 pm 
Offline

Joined: Fri Mar 05, 2010 7:00 am
Posts: 133
Hello zl-Dez,

Did you fix this issue? if not, look into Xlite advance option, just remove the check mark at the middle of the setting. I believe says Network....... it is a know issue with the configuration.

Kind regards,

Al


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Sun Jun 13, 2010 9:39 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
my provider never came back with any solution, you made my day, thanks m8, this worked without any probelm, now can some one tell me why this was? call is not inactive...


acaratt wrote:
Hello zl-Dez,

Did you fix this issue? if not, look into Xlite advance option, just remove the check mark at the middle of the setting. I believe says Network....... it is a know issue with the configuration.

Kind regards,

Al


Top
 Profile  
 
 Post subject: Re: Call Drop after 32 seconds
PostPosted: Sun Jun 13, 2010 11:21 pm 
Offline

Joined: Fri Mar 05, 2010 7:00 am
Posts: 133
Hello,

I am glad you are able to make calls. What do you mean with ..call is not active?

I f you referes why the check mark was enable? In the last version is default setting, that did not happen in previous release.

Kind reagrds,

Al


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
Voice Broadcast System


All times are UTC


Who is online

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