setting UP a DID number thats rings on my a2billig

Discussion in 'General' started by yusdaniel, Jun 25, 2009.

  1. yusdaniel

    Joined:
    Jun 25, 2009
    Messages:
    1
    Likes Received:
    0
    I have been trying to setup this but for some reason I can't, My did works perfect On my System if I put it to ring a extension so I think that I'm doing something wrong in the a2billing configuration....

    Please somebody can tells me what I'm doing wrong... thanks a lot...

    here is my log:

    -- Executing [4403177711@from-trunk:1] Set("SIP/yusda-088c79a8", "__FROM_DID=4403177711") in new stack
    -- Executing [4403177711@from-trunk:2] Gosub("SIP/yusda-088c79a8", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/yusda-088c79a8", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("SIP/yusda-088c79a8", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/yusda-088c79a8", "") in new stack
    -- Executing [4403177711@from-trunk:3] ExecIf("SIP/yusda-088c79a8", "0 |Set|CALLERID(name)=UNAVAILABLE") in new stack
    -- Executing [4403177711@from-trunk:4] Set("SIP/yusda-088c79a8", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4403177711@from-trunk:5] SetCallerPres("SIP/yusda-088c79a8", "allowed_not_screened") in new stack
    -- Executing [4403177711@from-trunk:6] Goto("SIP/yusda-088c79a8", "custom-a2billing-did|_X.|1") in new stack
    -- Goto (custom-a2billing-did,_X.,1)
    -- Executing [_X.@custom-a2billing-did:1] DeadAGI("SIP/yusda-088c79a8", "a2billing.php|1|did") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
    a2billing.php|1|did: A2Billing AGI internal configuration:
    a2billing.php|1|did: Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [debug] => 1
    a2billing.php|1|did: [asterisk_version] => 1_2
    a2billing.php|1|did: [answer_call] =>
    a2billing.php|1|did: [play_audio] =>
    a2billing.php|1|did: [say_goodbye] =>
    a2billing.php|1|did: [play_menulanguage] =>
    a2billing.php|1|did: [force_language] =>
    a2billing.php|1|did: [intro_prompt] =>
    a2billing.php|1|did: [min_credit_2call] => 0
    a2billing.php|1|did: [min_duration_2bill] => 0
    a2billing.php|1|did: [notenoughcredit_cardnumber] =>
    a2billing.php|1|did: [notenoughcredit_assign_newcardnumber_cid] => 1
    a2billing.php|1|did: [use_dnid] => 1
    a2billing.php|1|did: [no_auth_dnid] => Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [0] => 2400
    a2billing.php|1|did: [1] => 2300
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: [number_try] => 3
    a2billing.php|1|did: [force_callplan_id] =>
    a2billing.php|1|did: [say_balance_after_auth] => 1
    a2billing.php|1|did: [say_balance_after_call] => 1
    a2billing.php|1|did: [say_rateinitial] =>
    a2billing.php|1|did: [say_timetocall] => 1
    a2billing.php|1|did: [auto_setcallerid] => 1
    a2billing.php|1|did: [force_callerid] =>
    a2billing.php|1|did: [cid_sanitize] => 1
    a2billing.php|1|did: [cid_enable] => 1
    a2billing.php|1|did: [cid_askpincode_ifnot_callerid] => 1
    a2billing.php|1|did: [cid_auto_assign_card_to_cid] => 1
    a2billing.php|1|did: [cid_auto_create_card] =>
    a2billing.php|1|did: [cid_auto_create_card_len] => 10
    a2billing.php|1|did: [cid_auto_create_card_typepaid] => POSTPAY
    a2billing.php|1|did: [cid_auto_create_card_credit] => 0
    a2billing.php|1|did: [cid_auto_create_card_credit_limit] => 1000
    a2billing.php|1|did: [cid_auto_create_card_tariffgroup] => 6
    a2billing.php|1|did: [callerid_authentication_over_cardnumber] =>
    a2billing.php|1|did: [sip_iax_friends] => 1
    a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 9
    a2billing.php|1|did: [sip_iax_pstn_direct_call] => 1
    a2billing.php|1|did: [ivr_voucher] =>
    a2billing.php|1|did: [ivr_voucher_prefix] => 8
    a2billing.php|1|did: [jump_voucher_if_min_credit] =>
    a2billing.php|1|did: [extracharge_did] => Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [0] =>
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: [extracharge_fee] => Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [0] =>
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: [international_prefixes] => 011,00,09,52
    a2billing.php|1|did: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
    a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
    a2billing.php|1|did: [switchdialcommand] =>
    a2billing.php|1|did: [failover_recursive_limit] => 2
    a2billing.php|1|did: [maxtime_tocall_negatif_free_route] => 5400
    a2billing.php|1|did: [send_reminder] =>
    a2billing.php|1|did: [record_call] =>
    a2billing.php|1|did: [monitor_formatfile] => gsm
    a2billing.php|1|did: [agi_force_currency] =>
    a2billing.php|1|did: [currency_association] => Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [0] => usd:dollars
    a2billing.php|1|did: [1] => mxn:pesos
    a2billing.php|1|did: [2] => eur:euros
    a2billing.php|1|did: [3] => all:credit
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: [file_conf_enter_destination] => prepaid-enter-dest
    a2billing.php|1|did: [file_conf_enter_menulang] => prepaid-menulang2
    a2billing.php|1|did: [callback_bill_1stleg_ifcall_notconnected] => 1
    a2billing.php|1|did: [logger_enable] => 1
    a2billing.php|1|did: [log_file] => /tmp/a2billing.log
    a2billing.php|1|did: [currency_association_internal] => Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [usd] => dollars
    a2billing.php|1|did: [mxn] => pesos
    a2billing.php|1|did: [eur] => euros
    a2billing.php|1|did: [all] => credit
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: [ivr_voucher_prefixe] => 8
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: file:a2billing.php - line:75 - IDCONFIG : 1
    a2billing.php|1|did: file:a2billing.php - line:76 - MODE : did
    a2billing.php|1|did: file:a2billing.php - line:88 - AGI Request:
    a2billing.php|1|did: file:a2billing.php - line:89 - Array
    a2billing.php|1|did: (
    a2billing.php|1|did: [agi_request] => a2billing.php
    a2billing.php|1|did: [agi_channel] => SIP/yusda-088c79a8
    a2billing.php|1|did: [agi_language] => en
    a2billing.php|1|did: [agi_type] => SIP
    a2billing.php|1|did: [agi_uniqueid] => 1245903781.21
    a2billing.php|1|did: [agi_callerid] => UNAVAILABLE
    a2billing.php|1|did: [agi_calleridname] => UNAVAILABLE
    a2billing.php|1|did: [agi_callingpres] => 0
    a2billing.php|1|did: [agi_callingani2] => 0
    a2billing.php|1|did: [agi_callington] => 0
    a2billing.php|1|did: [agi_callingtns] => 0
    a2billing.php|1|did: [agi_dnid] => 4403177711
    a2billing.php|1|did: [agi_rdnis] => unknown
    a2billing.php|1|did: [agi_context] => custom-a2billing-did
    a2billing.php|1|did: [agi_extension] => _X.
    a2billing.php|1|did: [agi_priority] => 1
    a2billing.php|1|did: [agi_enhanced] => 0.0
    a2billing.php|1|did: [agi_accountcode] =>
    a2billing.php|1|did: )
    a2billing.php|1|did:
    a2billing.php|1|did: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = UNAVAILABLE ; SIP/yusda-088c79a8 ; 1245903781.21 ; ; _X.
    a2billing.php|1|did: file:a2billing.php - line:331 - [NO ANSWER CALL]
    a2billing.php|1|did: file:a2billing.php - line:343 - [DID CALL - [CallerID=UNAVAILABLE]:[DID=_X.]
    a2billing.php|1|did: file:a2billing.php - line:351 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='_X.' 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') ORDER BY priority ASC
    a2billing.php|1|did: file:a2billing.php - line:353 - 0
    -- AGI Script a2billing.php completed, returning 0
     
  2. jessie

    Joined:
    Sep 17, 2008
    Messages:
    124
    Likes Received:
    0
    Re:setting UP a DID number thats rings on my a2bil

    Hi Yusdaniel,

    if your parameters under extensions_a2billing.conf did not work with:

    [custom-a2billing-did]
    exten => _X.,1,Goto(a2billing,${EXTEN},1)
    exten => _X.,2,Hangup

    Try this:
    exten => 4403177711,1,Goto(a2billing,${EXTEN},1)
    exten => 4403177711,2,Hangup

    Upong changing this... make sure you change also you Custom Destination with:

    custom-a2billing-did,4403177711,1



    Post what happen here.
     

Share This Page