Cursos Asterisk en México

Ayuda con a2billing

Colapsar

Anuncio

Colapsar
No hay anuncio todavía.
X
 
  • Filtrar
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes

  • Ayuda con a2billing

    Estimados,

    Estoy queriendo empezar a tarifar los llamados que son cursadas por nuestros IPPBX, las mismas utilizan elastix y como he visto que ya lo trae instalado me puse a tratar de que las llamaas que salen localmente en las PBX (por troncales SIP), sean tarifadas. Ya he creado dentro del A2billing un troncal, rates, plan de llamados, pero cuando quiero usar el Dialplan para que llame el AGI de A2biiling no puedo lograr que funcione. Use varios ejemplos de dialplan, he creado tambien Custon TRUNK pero no puedo. Podran darme alguna ayuda para solamente que las llamadas que salen desde una PBX pasen por el a2biling y se tarifen?

    EJ DIAL PLAN QUE PROBE

    [a2billing-sip]
    exten => _X.,1,DeadAGI(a2billing.php|1)
    exten => _X.,n,Hangup


    ;[a2billing_did]
    ;exten => _1563.,1,AGI(a2billing.php,1,did)
    ;exten => _1563.,2,Hangup

    ;[a2billing]
    ; CallingCard application
    ;exten => _154039.,1,Answer
    ;exten => _154039.,2,Wait(2)
    ;exten => _154039.,1,AGI(a2billing.php)
    ;exten => _154039.,n,Wait(2)
    ;exten => _154039.,n,Hangup

    [a2billing-did]

    exten => _X.,1,DeadAGI(a2billing.php|1|did)
    exten => _X.,2,Hangup

    [tarifador]

    include => from-internal

    ;exten => _X.,1,Answer
    ;exten => _X.,n,Wait,2
    ;exten => _X.,n,AGI(a2billing.php)
    ;exten => _X.,n,DeadAGI,a2billing.php
    ;exten => _X.,n,Wait,2
    ;exten => _X.,n,Hangup

    ;exten => _154039.,1,AGI(a2billing.php)
    ;exten => _154039.,n,DeadAGI,a2billing.php
    ;exten => _154039.,n,dial(SIP/Trunk138-188/${EXTEN})
    ;exten => _154039.,n,Hangup()

    ;exten => _X.,1,AGI(a2billing.php,1)
    ;exten => _X.,n,Hangup()

    exten => _X.,1,DeadAgi(a2billing.php|1)
    exten => _X.,n,Hangup

    [a2billing-sip]
    exten => _X.,1,DeadAGI(a2billing.php|1)
    exten => _X.,n,Hangup


    [a2billing]


    ;exten => _15.,1,Goto(a2billing,${EXTEN},1)
    ;exten => _15.,n,HangUp()


    ;exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8} )
    ;exten => _X.,n,Hangup()


    ;exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}})
    ;exten => _X.,n,Hangup()


    ;exten => _X.,1,Answer
    ;exten => _X.,n,Wait(1)
    ;exten => _X.,n,DeadAGI(a2billing.php|1)
    ;exten => _X.,n,Hangup

    ;exten => _154039.,1,DeadAGI,a2billing.php
    ;exten => _154039.,n,dial(SIP/Trunk138-188/${EXTEN})
    ;exten => _154039.,n,Hangup()

    exten => _X.,1,AGI(a2billing.php)
    exten => _X.,n,Hangup()

    ;exten => _X.,1,DeadAgi(a2billing.php)
    ;exten => _X.,n,Hangup

    ;exten => _X.,1,deadAGI(a2billing.php|1)
    ;exten => _X.,n,Hangup

    Desde ya gracias

  • #2
    date una vuelta por aca
    Código:
    http://forum.elastix.org/viewtopic.php?f=59&t=102310#102310

    Comentario


    • #3
      Muchas gracias voy a intentar con ese post, ya que yo solo quiero tarifar las llamadas propias de asterisk y no funcionar como proveedor.

      Comentario


      • #4
        Todavia no puedo sacar llamados, debo usar el Argunmento DID, SIP, nada...porque si pongo otro me pide ping de tarjeta y yo solo quiero que envie la llamada sin pedir ping el unico que pareciera funcionar seria did, pero no encuentra ruta de destino. El troncal SIP esta tanto en asterisk como en a2billing con el mismo nombre.

        Si pueden darme una mano seria de mucha ayuda.

        gracias


        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] => 0
        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] => 0
        a2billing.php,1,did: [say_balance_after_call] => 1
        a2billing.php,1,did: [say_rateinitial] => 0
        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] => NO
        a2billing.php,1,did: [cid_enable] => 1
        a2billing.php,1,did: [cid_askpincode_ifnot_callerid] => 1
        a2billing.php,1,did: [failover_lc_prefix] => 0
        a2billing.php,1,did: [cid_auto_assign_card_to_cid] => 1
        a2billing.php,1,did: [callerid_authentication_over_cardnumber] => 0
        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] => 0
        a2billing.php,1,did: [ivr_voucher_prefix] => 8
        a2billing.php,1,did: [jump_voucher_if_min_credit] => 0
        a2billing.php,1,did: [dialcommand_param] => "|60|HRgrL(%timeout%:61000:30000)"
        a2billing.php,1,did: [dialcommand_param_sipiax_friend] => ,60,HiL(3600000:61000:30000)
        a2billing.php,1,did: [switchdialcommand] => 0
        a2billing.php,1,did: [failover_recursive_limit] => 2
        a2billing.php,1,did: [maxtime_tocall_negatif_free_route] => 5400
        a2billing.php,1,did: [send_reminder] => 0
        a2billing.php,1,did: [record_call] => 0
        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] => mxnesos
        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: [local_dialing_addcountryprefix] => 0
        a2billing.php,1,did: [max_call_call_2_did] => 3600
        a2billing.php,1,did: [file_conf_enter_destination] => prepaid-menulang2
        a2billing.php,1,did: [conf_order_menulang] => en:fr:es
        a2billing.php,1,did: [callback_bill_1stleg_ifcall_notconnected] => 1
        a2billing.php,1,did: [international_prefixes] => Array
        a2billing.php,1,did: (
        a2billing.php,1,did: [0] => 011
        a2billing.php,1,did: [1] => 00
        a2billing.php,1,did: [2] => 09
        a2billing.php,1,did: [3] => 1
        a2billing.php,1,did: )
        a2billing.php,1,did:
        a2billing.php,1,did: [extracharge_did] => Array
        a2billing.php,1,did: (
        a2billing.php,1,did: [0] => 1800
        a2billing.php,1,did: [1] => 1900
        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: [extracharge_buyfee] => Array
        a2billing.php,1,did: (
        a2billing.php,1,did: [0] => 0
        a2billing.php,1,did: [1] => 0
        a2billing.php,1,did: )
        a2billing.php,1,did:
        a2billing.php,1,did: [maxtime_tounlimited_calls] => 5400
        a2billing.php,1,did: [maxtime_tofree_calls] => 5400
        a2billing.php,1,did: [callplan_deck_minute_threshold] =>
        a2billing.php,1,did: [disable_announcement_seconds] => 0
        a2billing.php,1,did: [verbosity_level] => 4
        a2billing.php,1,did: [logging_level] => 4
        a2billing.php,1,did: [dial_balance_reservation] => 0.25
        a2billing.php,1,did: [cid_auto_create_card] => 0
        a2billing.php,1,did: [cid_auto_create_card_len] => 10
        a2billing.php,1,did: [cid_auto_create_card_typepaid] => POSTPAID
        a2billing.php,1,did: [cid_auto_create_card_credit] => 0
        a2billing.php,1,did: [cid_auto_create_card_credit_limit] => 0
        a2billing.php,1,did: [cid_auto_create_card_tariffgroup] => 1
        a2billing.php,1,did: [busy_timeout] => 1
        a2billing.php,1,did: [callback_reduce_balance] => 1
        a2billing.php,1,did: [ivr_enable_locking_option] => 0
        a2billing.php,1,did: [ivr_enable_account_information] => 0
        a2billing.php,1,did: [ivr_enable_ivr_speeddial] => 0
        a2billing.php,1,did: [play_rate_cents_if_lower_one] => 0
        a2billing.php,1,did: [callback_beep_to_enter_destination] => 0
        a2billing.php,1,did: [cid_prompt_callback_confirm_phonenumber] => 0
        a2billing.php,1,did: [logger_enable] => 1
        a2billing.php,1,did: [log_file] => /var/log/a2billing/a2billing.log
        a2billing.php,1,did: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
        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: [file_conf_enter_menulang] => prepaid-menulang
        a2billing.php,1,did: [ivr_voucher_prefixe] => 8
        a2billing.php,1,did: [cheat_on_announcement_time] => 0
        a2billing.php,1,did: )
        a2billing.php,1,did:
        a2billing.php,1,did: file:a2billing.php - line:106 - uniqueid: - IDCONFIG : 1
        a2billing.php,1,did: file:a2billing.php - line:107 - uniqueid: - MODE : did
        a2billing.php,1,did: file:a2billing.php - line:124 - uniqueid: - AGI Request:
        a2billing.php,1,did: Array
        a2billing.php,1,did: (
        a2billing.php,1,did: [agi_request] => a2billing.php
        a2billing.php,1,did: [agi_channel] => SIP/200-00000009
        a2billing.php,1,did: [agi_language] => en
        a2billing.php,1,did: [agi_type] => SIP
        a2billing.php,1,did: [agi_uniqueid] => 1386770886.9
        a2billing.php,1,did: [agi_version] => 1.8.20.0
        a2billing.php,1,did: [agi_callerid] => 200
        a2billing.php,1,did: [agi_calleridname] => device
        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] => 4441540396137
        a2billing.php,1,did: [agi_rdnis] => unknown
        a2billing.php,1,did: [agi_context] => a2billing_did
        a2billing.php,1,did: [agi_extension] => 4441540396137
        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: [agi_threadid] => 47577231419712
        a2billing.php,1,did: [agi_arg_1] => 1
        a2billing.php,1,did: [agi_arg_2] => did
        a2billing.php,1,did: )
        a2billing.php,1,did:
        a2billing.php,1,did: file:a2billing.php - line:126 - uniqueid: - [INFO : A2Billing - Version 1.9.4 (Cuprum)]
        a2billing.php,1,did: file:Class.A2Billing.php - line:718 - uniqueid:1386770886.9 - get_agi_request_parameter = 200 ; SIP/200-00000009 ; 1386770886.9 ; ; 4441540396137
        a2billing.php,1,did: file:a2billing.php - line:635 - uniqueid:1386770886.9 - [NO ANSWER CALL]
        a2billing.php,1,did: file:a2billing.php - line:647 - uniqueid:1386770886.9 - [DID CALL - [CallerID=200]:[DID=4441540396137]
        a2billing.php,1,did: file:a2billing.php - line:662 - uniqueid:1386770886.9 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username, useralias, connection_charge, selling_rate, did, aleg_carrier_connect_charge, aleg_carrier_cost_min, aleg_retail_connect_charge, aleg_retail_cost_min, aleg_carrier_initblock, aleg_carrier_increment, aleg_retail_initblock, aleg_retail_increment FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.status=1 and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='4441540396137' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL AND cc_did_destination.validated=1 OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
        a2billing.php,1,did: file:a2billing.php - line:664 - uniqueid:1386770886.9 -
        -- <SIP/200-00000009>AGI Script a2billing.php completed, returning 4
        == Spawn extension (a2billing_did, 4441540396137, 1) exited non-zero on 'SIP/200-00000009'

        Comentario


        • #5
          Estimados, Ya lo pude ser andar, pero ahora cuando quiero enviar la llamada de un asterisk por un troncal SIP hacia un Asterisk con A2billing , me dice que no puede autenticar, lo que he echo es un troncal SIP tradicional, con una ruta de salida que llega al otro equipo y ahi lo procesa el Callplan de a2billing. Si quiero crear un troncal SIP como customer, no aparece en el archivo adicional SIP de a2billing.

          a2billing.php,1: file:Class.A2Billing.php - line:687 - uniqueid:1386855437.120 - FORCE LANGUAGE : ES
          a2billing.php,1: file:Class.A2Billing.php - line:697 - uniqueid:1386855437.120 - [SET CHANNEL(language) es]
          a2billing.php,1: file:Class.A2Billing.php - line:2714 - uniqueid:1386855437.120 - - Account code ::>
          a2billing.php,1: file:Class.A2Billing.php - line:2896 - uniqueid:1386855437.120 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
          a2billing.php,1: file:Class.A2Billing.php - line:2898 - uniqueid:1386855437.120 - RES DTMF : -1
          a2billing.php,1: file:Class.A2Billing.php - line:2902 - uniqueid:1386855437.120 - CARDNUMBER ::> -1
          a2billing.php,1: file:Class.A2Billing.php - line:2912 - uniqueid:1386855437.120 - PREPAID-INVALID-DIGITS
          a2billing.php,1: file:Class.A2Billing.php - line:2888 - uniqueid:1386855437.120 - Streamfile : PREPAID-INVALID-DIGITS
          a2billing.php,1: file:Class.A2Billing.php - line:2896 - uniqueid:1386855437.120 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
          a2billing.php,1: file:Class.A2Billing.php - line:2898 - uniqueid:1386855437.120 - RES DTMF : -1
          a2billing.php,1: file:Class.A2Billing.php - line:2902 - uniqueid:1386855437.120 - CARDNUMBER ::> -1
          a2billing.php,1: file:Class.A2Billing.php - line:2912 - uniqueid:1386855437.120 - PREPAID-INVALID-DIGITS
          a2billing.php,1: file:Class.A2Billing.php - line:2888 - uniqueid:1386855437.120 - Streamfile : PREPAID-INVALID-DIGITS
          a2billing.php,1: file:Class.A2Billing.php - line:2896 - uniqueid:1386855437.120 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
          a2billing.php,1: file:Class.A2Billing.php - line:2898 - uniqueid:1386855437.120 - RES DTMF : -1
          a2billing.php,1: file:Class.A2Billing.php - line:2902 - uniqueid:1386855437.120 - CARDNUMBER ::> -1
          a2billing.php,1: file:Class.A2Billing.php - line:2912 - uniqueid:1386855437.120 - PREPAID-INVALID-DIGITS
          a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1386855437.120 - [TRY : callingcard_ivr_authenticate]
          a2billing.php,1: file:a2billing.php - line:613 - uniqueid:1386855437.120 - [NO AUTH (CN:, cia_res:-1, CREDIT]
          -- <SIP/billing1-0000006c>AGI Script a2billing.php completed, returning 4
          == Spawn extension (a2billing, 1540396137, 1) exited non-zero on 'SIP/billing1-0000006c'


          Saludos.

          Comentario


          • #6
            Estas usando Elastix ?

            Comentario


            • #7
              Si uso elastix..gracias..ya lo pude hacer andar y entendi como funciona el A2bililng, solo me falta solucionar el Dashboar, ya que se queda en blanco y no trae todos esos graficos que veo en Internet.. Alguna pista?
              Desde ya gracias.

              Comentario


              • #8
                Dashboard

                Si has entendido bien el funcionamiento de A2Billing, te recomiendo que, uses Freepbx 2.11 y a2billing 2.0.6 y Asterisk 11, que es la ultima version, el procedimiento es el mismo que con Elastix para hecharlo a andar, la razon es que, aunque la version 1.9.4 (la que trae Elastix) es funcional, no te trae todas las opciones del Dashboard, y con la Ultima version, puedes hacer Uso de Realtime de Asterisk(Tambien funciona con A2Billing pero nunca lo pude hacer), yo me migre a estas versiones y la vdd esta mejor el Sistema, con Elastix tu Dashboard deberia lucir como esto que adjunto, Saludos !!
                Archivos Adjuntos

                Comentario


                • #9
                  Si efectivamente, de esa forma veo el Dashboard en Elastix, lo que pasa es que en mi empresa utilizan Elastix y no quieren migrar a otra disto. por tal motivo queria ver si podia hacer andar el Dashboard en Elastix 2.4.

                  Comentario


                  • #10
                    Bueno, pero comentales que es para mejoras, la vdd con la ultima version de Freepbx es mas intuitiva y sencilla, eso si antes de migrar, haz prueba en otra maquina, o en una virtualizalo, Saludos !!

                    Comentario

                    Nube de Etiquetas

                    Colapsar

                    Principales Usuarios Activos

                    Colapsar

                    No hay usuarios activos superiores.
                    Trabajando...
                    X