Circuit busy and routes congested

Discussion in 'General' started by armand, Feb 1, 2011.

  1. armand

    Joined:
    Dec 29, 2010
    Messages:
    19
    Likes Received:
    0
    Hi,

    I don't know were is the problem. I have configure my router with one trunk and i use the extra options (customer). At beginning all was walk well but since some times, i have and error message (by looking in asterisk console); this message say all circuit busy and route congested.

    Please, some body can help me to unsderstand what happens.

    Thanks.
     
  2. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Paste the CLI output (asterisk -r) to know what is going on
     
  3. armand

    Joined:
    Dec 29, 2010
    Messages:
    19
    Likes Received:
    0
    I did it and is why i can read the congestion message. When i passing a single call, the exact message are :

    All circuit busy
    Everyone is busy/congested at this time (1:0/0/1) .

    Trunk is online and IP is registered.
     
  4. armand

    Joined:
    Dec 29, 2010
    Messages:
    19
    Likes Received:
    0
    I wrote different message the "CLI asterisk -r" gived :

    Everyone is busy/congested at this time (1:0/0/1)
    a2billing.php,1: file:Class.RateEngine.php - line:1013 - [K=0] : [ANSWEREDTIME=0-DIALSTATUS=CHANUNAVAIL]



    SIP/TRName_MVT_00_2-00000023 is circuit-busy
    Everyone is busy/congested at this time (1:0/0/1)
    a2billing.php,1: file:Class.RateEngine.php - line:1013 - [FAILOVER K=0] : [ANSTIME=-DIALSTATUS=CONGESTION]


    Can some body give me help please.
     
  5. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    lol
    You need to attach the entire output from the CLI, when the moment when you dials, if we cant what is going on from the beginning, no one will be able to help you.

    Do this tests, first for normal outbound routes NOT using a2billing
     
  6. armand

    Joined:
    Dec 29, 2010
    Messages:
    19
    Likes Received:
    0
    I was allready do some test in pbx with extension; there is no problem. Numbre Dialing pass well.

    All the clipboard CLI in a2billing give me that :


    Open the Internet Browser using the following URL:
    http://192.168.15.110

    [root@elastix2 ~]# asterisk -r
    Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 Digium, Inc. and others.
    Created by Mark Spencer <markster@digium.com>
    Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
    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.6.2.13 currently running on elastix2 (pid = 2573)
    Verbosity is at least 3
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Executing [23722025614@a2billing:1] Answer("SIP/9774868330-00000015", "") in new stack
    -- Executing [23722025614@a2billing:2] Wait("SIP/9774868330-00000015", "1") in new stack
    -- Executing [23722025614@a2billing:3] DeadAGI("SIP/9774868330-00000015", "a2billing.php,1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
    a2billing.php,1: A2Billing AGI internal configuration:
    a2billing.php,1: Array
    a2billing.php,1: (
    a2billing.php,1: [debug] => 1
    a2billing.php,1: [asterisk_version] => 1_2
    a2billing.php,1: [answer_call] => 1
    a2billing.php,1: [play_audio] => 1
    a2billing.php,1: [say_goodbye] =>
    a2billing.php,1: [play_menulanguage] =>
    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] => 1
    a2billing.php,1: [notenoughcredit_assign_newcardnumber_cid] => 1
    a2billing.php,1: [use_dnid] => 1
    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: [number_try] => 3
    a2billing.php,1: [force_callplan_id] =>
    a2billing.php,1: [say_balance_after_auth] =>
    a2billing.php,1: [say_balance_after_call] =>
    a2billing.php,1: [say_rateinitial] =>
    a2billing.php,1: [say_timetocall] =>
    a2billing.php,1: [auto_setcallerid] => 1
    a2billing.php,1: [force_callerid] =>
    a2billing.php,1: [cid_sanitize] =>
    a2billing.php,1: [cid_enable] =>
    a2billing.php,1: [cid_askpincode_ifnot_callerid] => 1
    a2billing.php,1: [cid_auto_assign_card_to_cid] => 1
    a2billing.php,1: [cid_auto_create_card] =>
    a2billing.php,1: [cid_auto_create_card_len] => 10
    a2billing.php,1: [cid_auto_create_card_typepaid] => POSTPAY
    a2billing.php,1: [cid_auto_create_card_credit] => 0
    a2billing.php,1: [cid_auto_create_card_credit_limit] => 1000
    a2billing.php,1: [cid_auto_create_card_tariffgroup] => 6
    a2billing.php,1: [callerid_authentication_over_cardnumber] =>
    a2billing.php,1: [sip_iax_friends] =>
    a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => 555
    a2billing.php,1: [sip_iax_pstn_direct_call] =>
    a2billing.php,1: [ivr_voucher] =>
    a2billing.php,1: [ivr_voucher_prefix] => 8
    a2billing.php,1: [jump_voucher_if_min_credit] =>
    a2billing.php,1: [extracharge_did] => Array
    a2billing.php,1: (
    a2billing.php,1: [0] =>
    a2billing.php,1: )
    a2billing.php,1:
    a2billing.php,1: [extracharge_fee] => Array
    a2billing.php,1: (
    a2billing.php,1: [0] =>
    a2billing.php,1: )
    a2billing.php,1:
    a2billing.php,1: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
    a2billing.php,1: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
    a2billing.php,1: [switchdialcommand] =>
    a2billing.php,1: [failover_recursive_limit] => 2
    a2billing.php,1: [maxtime_tocall_negatif_free_route] => 5400
    a2billing.php,1: [send_reminder] =>
    a2billing.php,1: [record_call] =>
    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: [file_conf_enter_destination] => prepaid-enter-dest
    a2billing.php,1: [file_conf_enter_menulang] => prepaid-menulang2
    a2billing.php,1: [callback_bill_1stleg_ifcall_notconnected] => 1
    a2billing.php,1: [logger_enable] => 1
    a2billing.php,1: [log_file] => /tmp/a2billing.log
    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: [ivr_voucher_prefixe] => 8
    a2billing.php,1: )
    a2billing.php,1:
    a2billing.php,1: file:a2billing.php - line:75 - IDCONFIG : 1
    a2billing.php,1: file:a2billing.php - line:76 - MODE : standard
    a2billing.php,1: file:a2billing.php - line:88 - AGI Request:
    a2billing.php,1: file:a2billing.php - line:89 - Array
    a2billing.php,1: (
    a2billing.php,1: [agi_request] => a2billing.php
    a2billing.php,1: [agi_channel] => SIP/9774868330-00000015
    a2billing.php,1: [agi_language] => en
    a2billing.php,1: [agi_type] => SIP
    a2billing.php,1: [agi_uniqueid] => 1296680361.22
    a2billing.php,1: [agi_version] => 1.6.2.13
    a2billing.php,1: [agi_callerid] => 79832550
    a2billing.php,1: [agi_calleridname] => 9774868330
    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] => 23722025614
    a2billing.php,1: [agi_rdnis] => unknown
    a2billing.php,1: [agi_context] => a2billing
    a2billing.php,1: [agi_extension] => 23722025614
    a2billing.php,1: [agi_priority] => 3
    a2billing.php,1: [agi_enhanced] => 0.0
    a2billing.php,1: [agi_accountcode] => 9774868330
    a2billing.php,1: [agi_threadid] => -1218368624
    a2billing.php,1: [agi_arg_1] => 1
    a2billing.php,1: )
    a2billing.php,1:
    a2billing.php,1: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 79832550 ; SIP/9774868330-00000015 ; 1296680361.22 ; 9774868330 ; 23722025614
    a2billing.php,1: file:a2billing.php - line:138 - [ANSWER CALL]
    a2billing.php,1: file:Class.A2Billing.php - line:1668 - 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 FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='9774868330'
    a2billing.php,1: file:Class.A2Billing.php - line:1742 - [SET LANGUAGE() fr]
    a2billing.php,1: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='9774868330']
    a2billing.php,1: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID]
    a2billing.php,1: file:Class.A2Billing.php - line:1433 - [REQUESTED SetCallerID : 79832550]
    a2billing.php,1: file:Class.A2Billing.php - line:1444 - [EXEC SetCallerID : 79832550]
    a2billing.php,1: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up]
    a2billing.php,1: file:a2billing.php - line:170 - [CREDIT : 8200.00000][CREDIT MIN_CREDIT_2CALL : 0]
    a2billing.php,1: file:Class.A2Billing.php - line:656 - 1 && && 11&& 0
    a2billing.php,1: file:Class.A2Billing.php - line:681 - DESTINATION ::> 23722025614
    a2billing.php,1: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> 23722025614
    a2billing.php,1: file:Class.A2Billing.php - line:721 - OK - RESFINDRATE::> 1
    a2billing.php,1: file:Class.A2Billing.php - line:743 - RES_ALL_CALCULTIMEOUT ::> 1
    a2billing.php,1: file:Class.A2Billing.php - line:760 - TIMEOUT::> 4920 : minutes=82 - seconds=0
    a2billing.php,1: file:Class.RateEngine.php - line:960 - app_callingcard: Dialing 'SIP/TRName_MVT_00/23722025614|60|HRrL(4920000:61000:30000)' with timeout of '4920'.
    a2billing.php,1:
    a2billing.php,1: file:Class.RateEngine.php - line:985 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
    -- AGI Script Executing Application: (Dial) Options: (SIP/TRName_MVT_00/23722025614|60|HRrL(4920000:61000:30000))
    -- Limit Data for this call:
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    -- Called TRName_MVT_00/23722025614
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- SIP/TRName_MVT_00-00000016 is circuit-busy
    == Everyone is busy/congested at this time (1:0/1/0)
    a2billing.php,1: file:Class.RateEngine.php - line:1095 - [USEDRATECARD - FAIL =0]
    -- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
    a2billing.php,1: file:Class.RateEngine.php - line:848 - [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 ('1296680361.22', 'SIP/9774868330-00000015', '9774868330', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '23722025614', 'CONGESTION', now(), '100', '-0', '', '', 'cameroon - fixed', '2', '2', '22668', '2', '79832550', '0', '55.3628', '0', '0')]
    a2billing.php,1: file:Class.RateEngine.php - line:851 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
    a2billing.php,1: file:a2billing.php - line:309 - [a2billing account stop]
    a2billing.php,1: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up]
    a2billing.php,1: file:a2billing.php - line:170 - [CREDIT : 8200.00000][CREDIT MIN_CREDIT_2CALL : 0]
    a2billing.php,1: file:Class.A2Billing.php - line:656 - 0 && && 11&& 1
    -- <SIP/9774868330-00000015> Playing 'prepaid-enter-dest.gsm' (language 'en')
    a2billing.php,1: file:Class.A2Billing.php - line:663 - RES DTMF : -1
    a2billing.php,1: file:Class.A2Billing.php - line:681 - DESTINATION ::> -1
    a2billing.php,1: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> -1
    a2billing.php,1: file:a2billing.php - line:169 - [CHANNEL STATUS : = Channel is down and available]
    a2billing.php,1: file:a2billing.php - line:170 - [CREDIT : 8200.00000][CREDIT MIN_CREDIT_2CALL : 0]
    a2billing.php,1: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='9774868330']
    -- <SIP/9774868330-00000015>AGI Script a2billing.php completed, returning -1
    elastix2*CLI>




    Thanks.
     
  7. mm.alpha2k

    Joined:
    Jun 19, 2010
    Messages:
    165
    Likes Received:
    0
    Re: Re:Circuit busy and routes congested

    See if you are registered trunk.
    I see you are giving congestion

    sip show peer TRName_MVT_0
     
  8. yaya volt

    Joined:
    Aug 24, 2011
    Messages:
    7
    Likes Received:
    0
    Re: Re:Circuit busy and routes congested

    Hi,

    I have the same probleme.

    But my trunk name's free-out:

    elastix*CLI> sip show peer free-out


    * Name : free-out
    Secret : <Set>
    MD5Secret : <Not set>
    Remote Secret: <Not set>
    Context : from-trunk-sip-free-out
    Subscr.Cont. : <Not set>
    Language :
    AMA flags : Unknown
    Transfer mode: open
    CallingPres : Presentation Allowed, Not Screened
    Callgroup :
    Pickupgroup :
    Mailbox :
    VM Extension : *97
    LastMsgsSent : 32767/65535
    Call limit : 0
    Dynamic : No
    Callerid : "" <>
    MaxCallBR : 384 kbps
    Expire : -1
    Insecure : port,invite
    Nat : RFC3581
    ACL : No
    T.38 support : No
    T.38 EC mode : Unknown
    T.38 MaxDtgrm: -1
    DirectMedia : Yes
    PromiscRedir : No
    User=Phone : No
    Video Support: No
    Text Support : No
    Ign SDP ver : No
    Trust RPID : No
    Send RPID : No
    Subscriptions: Yes
    Overlap dial : Yes
    Forward Loop : Yes
    DTMFmode : auto
    Timer T1 : 500
    Timer B : 32000
    ToHost : freephonie.net
    Addr->IP : 212.27.52.5 Port 5060
    Defaddr->IP : 0.0.0.0 Port 5060
    Prim.Transp. : UDP
    Allowed.Trsp : UDP
    Def. Username: 01234567689
    SIP Options : (none)
    Codecs : 0xc (ulaw|alaw)
    Codec Order : (ulaw:20,alaw:20)
    Auto-Framing : No
    100 on REG : Yes
    Status : OK (26 ms)
    Useragent :
    Reg. Contact :
    Qualify Freq : 60000 ms
    Sess-Timers : Accept
    Sess-Refresh : uas
    Sess-Expires : 1800 secs
    Min-Sess : 90 secs
    Parkinglot :


    Can you help me please?

    Regards,
    Yaya
     
  9. armand

    Joined:
    Dec 29, 2010
    Messages:
    19
    Likes Received:
    0

Share This Page