Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 2:37 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: debug level 3 = level 1
PostPosted: Wed Dec 12, 2007 8:30 pm 
Offline

Joined: Thu Nov 22, 2007 6:14 pm
Posts: 33
Hello forum, thanks in advance, here I have another wired issue


While using A2B and setting up different config profiles with different levels of debugging, there is no difference between the outputs...

Debug level 1

Code:
pbx001*CLI>
    -- Accepting AUTHENTICATED call from 216.137.100.250:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|gsm),
       > priority = mine
    -- Executing DeadAGI("IAX2/test-1", "a2billing.php|4") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
  a2billing.php|4: A2Billing AGI internal configuration:
  a2billing.php|4: Array
  a2billing.php|4: (
  a2billing.php|4:     [debug] => 1
  a2billing.php|4:     [asterisk_version] => 1_2
  a2billing.php|4:     [answer_call] => 1
  a2billing.php|4:     [play_audio] => 1
  a2billing.php|4:     [say_goodbye] =>
  a2billing.php|4:     [play_menulanguage] =>
  a2billing.php|4:     [force_language] =>
  a2billing.php|4:     [intro_prompt] =>
  a2billing.php|4:     [min_credit_2call] => 0.1
  a2billing.php|4:     [min_duration_2bill] => 0
  a2billing.php|4:     [notenoughcredit_cardnumber] => 1
  a2billing.php|4:     [notenoughcredit_assign_newcardnumber_cid] => 1
  a2billing.php|4:     [use_dnid] =>
  a2billing.php|4:     [no_auth_dnid] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => 2400
  a2billing.php|4:             [1] => 2300
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [number_try] => 3
  a2billing.php|4:     [force_callplan_id] =>
  a2billing.php|4:     [say_balance_after_auth] => 1
  a2billing.php|4:     [say_balance_after_call] =>
  a2billing.php|4:     [say_rateinitial] =>
  a2billing.php|4:     [say_timetocall] => 1
  a2billing.php|4:     [auto_setcallerid] => 1
  a2billing.php|4:     [force_callerid] =>
  a2billing.php|4:     [cid_sanitize] =>
  a2billing.php|4:     [cid_enable] =>
  a2billing.php|4:     [cid_askpincode_ifnot_callerid] => 1
  a2billing.php|4:     [cid_auto_assign_card_to_cid] => 1
  a2billing.php|4:     [cid_auto_create_card] =>
  a2billing.php|4:     [cid_auto_create_card_len] => 10
  a2billing.php|4:     [cid_auto_create_card_typepaid] => POSTPAY
  a2billing.php|4:     [cid_auto_create_card_credit] => 0
  a2billing.php|4:     [cid_auto_create_card_credit_limit] => 1000
  a2billing.php|4:     [cid_auto_create_card_tariffgroup] => 6
  a2billing.php|4:     [callerid_authentication_over_cardnumber] =>
  a2billing.php|4:     [sip_iax_friends] =>
  a2billing.php|4:     [sip_iax_pstn_direct_call_prefix] => 555
  a2billing.php|4:     [sip_iax_pstn_direct_call] =>
  a2billing.php|4:     [ivr_voucher] => 1
  a2billing.php|4:     [ivr_voucher_prefix] => 8
  a2billing.php|4:     [jump_voucher_if_min_credit] => 1
  a2billing.php|4:     [extracharge_did] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] =>
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [extracharge_fee] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] =>
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
  a2billing.php|4:     [dialcommand_param_sipiax_friend] => |60|HRgrL(3600000:61000:30000)
  a2billing.php|4:     [switchdialcommand] =>
  a2billing.php|4:     [failover_recursive_limit] => 2
  a2billing.php|4:     [maxtime_tocall_negatif_free_route] => 5400
  a2billing.php|4:     [send_reminder] => 1
  a2billing.php|4:     [record_call] =>
  a2billing.php|4:     [monitor_formatfile] => gsm
  a2billing.php|4:     [agi_force_currency] =>
  a2billing.php|4:     [currency_association] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => usd:dollars
  a2billing.php|4:             [1] => mxn:pesos
  a2billing.php|4:             [2] => eur:euros
  a2billing.php|4:             [3] => all:credit
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [file_conf_enter_destination] => prepaid-enter-dest
  a2billing.php|4:     [file_conf_enter_menulang] => prepaid-menulang2
  a2billing.php|4:     [callback_bill_1stleg_ifcall_notconnected] => 1
  a2billing.php|4:     [logger_enable] => 1
  a2billing.php|4:     [log_file] => /tmp/a2billing.log
  a2billing.php|4:     [international_prefixes] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => 011
  a2billing.php|4:             [1] => 09
  a2billing.php|4:             [2] => 00
  a2billing.php|4:             [3] => 1
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [currency_association_internal] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [usd] => dollars
  a2billing.php|4:             [mxn] => pesos
  a2billing.php|4:             [eur] => euros
  a2billing.php|4:             [all] => credit
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [ivr_voucher_prefixe] => 8
  a2billing.php|4: )
  a2billing.php|4:
  a2billing.php|4: file:a2billing.php - line:76 - IDCONFIG : 4
  a2billing.php|4: file:a2billing.php - line:77 - MODE : standard
  a2billing.php|4: file:a2billing.php - line:89 - AGI Request:
  a2billing.php|4: file:a2billing.php - line:90 - Array
  a2billing.php|4: (
  a2billing.php|4:     [agi_request] => a2billing.php
  a2billing.php|4:     [agi_channel] => IAX2/test-1
  a2billing.php|4:     [agi_language] => en
  a2billing.php|4:     [agi_type] => IAX2
  a2billing.php|4:     [agi_uniqueid] => 1197339162.29
  a2billing.php|4:     [agi_callerid] => xxx
  a2billing.php|4:     [agi_calleridname] => Test User
  a2billing.php|4:     [agi_callingpres] => 1
  a2billing.php|4:     [agi_callingani2] => 0
  a2billing.php|4:     [agi_callington] => 0
  a2billing.php|4:     [agi_callingtns] => 0
  a2billing.php|4:     [agi_dnid] => 100
  a2billing.php|4:     [agi_rdnis] => unknown
  a2billing.php|4:     [agi_context] => access_numbers
  a2billing.php|4:     [agi_extension] => 100
  a2billing.php|4:     [agi_priority] => 1
  a2billing.php|4:     [agi_enhanced] => 0.0
  a2billing.php|4:     [agi_accountcode] => TESTACCOUNT
  a2billing.php|4: )
  a2billing.php|4:
  a2billing.php|4: file:Class.A2Billing.php - line:616 -  get_agi_request_parameter = xxx ; IAX2/test-1 ; 1197339162.29 ; TESTACCOUNT ; 100
  a2billing.php|4: file:a2billing.php - line:139 - [ANSWER CALL]
  a2billing.php|4: file:Class.A2Billing.php - line:1640 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enable
expire, 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='TESTACCOUNT'
  a2billing.php|4: file:Class.A2Billing.php - line:1647 - PREPAID-AUTH-FAIL
  a2billing.php|4: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-2)]
    -- AGI Script a2billing.php completed, returning 0
    -- Hungup 'IAX2/test-1'


Debug level 3

Code:
pbx001*CLI>
    -- Accepting AUTHENTICATED call from 216.137.100.250:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|gsm),
       > priority = mine
    -- Executing DeadAGI("IAX2/test-1", "a2billing.php|4") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
  a2billing.php|4: A2Billing AGI internal configuration:
  a2billing.php|4: Array
  a2billing.php|4: (
  a2billing.php|4:     [debug] => 3
  a2billing.php|4:     [asterisk_version] => 1_2
  a2billing.php|4:     [answer_call] => 1
  a2billing.php|4:     [play_audio] => 1
  a2billing.php|4:     [say_goodbye] =>
  a2billing.php|4:     [play_menulanguage] =>
  a2billing.php|4:     [force_language] =>
  a2billing.php|4:     [intro_prompt] =>
  a2billing.php|4:     [min_credit_2call] => 0.1
  a2billing.php|4:     [min_duration_2bill] => 0
  a2billing.php|4:     [notenoughcredit_cardnumber] => 1
  a2billing.php|4:     [notenoughcredit_assign_newcardnumber_cid] => 1
  a2billing.php|4:     [use_dnid] =>
  a2billing.php|4:     [no_auth_dnid] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => 2400
  a2billing.php|4:             [1] => 2300
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [number_try] => 3
  a2billing.php|4:     [force_callplan_id] =>
  a2billing.php|4:     [say_balance_after_auth] => 1
  a2billing.php|4:     [say_balance_after_call] =>
  a2billing.php|4:     [say_rateinitial] =>
  a2billing.php|4:     [say_timetocall] => 1
  a2billing.php|4:     [auto_setcallerid] => 1
  a2billing.php|4:     [force_callerid] =>
  a2billing.php|4:     [cid_sanitize] =>
  a2billing.php|4:     [cid_enable] =>
  a2billing.php|4:     [cid_askpincode_ifnot_callerid] => 1
  a2billing.php|4:     [cid_auto_assign_card_to_cid] => 1
  a2billing.php|4:     [cid_auto_create_card] =>
  a2billing.php|4:     [cid_auto_create_card_len] => 10
  a2billing.php|4:     [cid_auto_create_card_typepaid] => POSTPAY
  a2billing.php|4:     [cid_auto_create_card_credit] => 0
  a2billing.php|4:     [cid_auto_create_card_credit_limit] => 1000
  a2billing.php|4:     [cid_auto_create_card_tariffgroup] => 6
  a2billing.php|4:     [callerid_authentication_over_cardnumber] =>
  a2billing.php|4:     [sip_iax_friends] =>
  a2billing.php|4:     [sip_iax_pstn_direct_call_prefix] => 555
  a2billing.php|4:     [sip_iax_pstn_direct_call] =>
  a2billing.php|4:     [ivr_voucher] => 1
  a2billing.php|4:     [ivr_voucher_prefix] => 8
  a2billing.php|4:     [jump_voucher_if_min_credit] => 1
  a2billing.php|4:     [extracharge_did] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] =>
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [extracharge_fee] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] =>
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
  a2billing.php|4:     [dialcommand_param_sipiax_friend] => |60|HRgrL(3600000:61000:30000)
  a2billing.php|4:     [switchdialcommand] =>
  a2billing.php|4:     [failover_recursive_limit] => 2
  a2billing.php|4:     [maxtime_tocall_negatif_free_route] => 5400
  a2billing.php|4:     [send_reminder] => 1
  a2billing.php|4:     [record_call] =>
  a2billing.php|4:     [monitor_formatfile] => gsm
  a2billing.php|4:     [agi_force_currency] =>
  a2billing.php|4:     [currency_association] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => usd:dollars
  a2billing.php|4:             [1] => mxn:pesos
  a2billing.php|4:             [2] => eur:euros
  a2billing.php|4:             [3] => all:credit
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [file_conf_enter_destination] => prepaid-enter-dest
  a2billing.php|4:     [file_conf_enter_menulang] => prepaid-menulang2
  a2billing.php|4:     [callback_bill_1stleg_ifcall_notconnected] => 1
  a2billing.php|4:     [logger_enable] => 1
  a2billing.php|4:     [log_file] => /tmp/a2billing.log
  a2billing.php|4:     [international_prefixes] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [0] => 011
  a2billing.php|4:             [1] => 09
  a2billing.php|4:             [2] => 00
  a2billing.php|4:             [3] => 1
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [currency_association_internal] => Array
  a2billing.php|4:         (
  a2billing.php|4:             [usd] => dollars
  a2billing.php|4:             [mxn] => pesos
  a2billing.php|4:             [eur] => euros
  a2billing.php|4:             [all] => credit
  a2billing.php|4:         )
  a2billing.php|4:
  a2billing.php|4:     [ivr_voucher_prefixe] => 8
  a2billing.php|4: )
  a2billing.php|4:
  a2billing.php|4: file:a2billing.php - line:76 - IDCONFIG : 4
  a2billing.php|4: file:a2billing.php - line:77 - MODE : standard
  a2billing.php|4: file:a2billing.php - line:89 - AGI Request:
  a2billing.php|4: file:a2billing.php - line:90 - Array
  a2billing.php|4: (
  a2billing.php|4:     [agi_request] => a2billing.php
  a2billing.php|4:     [agi_channel] => IAX2/test-1
  a2billing.php|4:     [agi_language] => en
  a2billing.php|4:     [agi_type] => IAX2
  a2billing.php|4:     [agi_uniqueid] => 1197339230.30
  a2billing.php|4:     [agi_callerid] => xxx
  a2billing.php|4:     [agi_calleridname] => Test User
  a2billing.php|4:     [agi_callingpres] => 1
  a2billing.php|4:     [agi_callingani2] => 0
  a2billing.php|4:     [agi_callington] => 0
  a2billing.php|4:     [agi_callingtns] => 0
  a2billing.php|4:     [agi_dnid] => 100
  a2billing.php|4:     [agi_rdnis] => unknown
  a2billing.php|4:     [agi_context] => access_numbers
  a2billing.php|4:     [agi_extension] => 100
  a2billing.php|4:     [agi_priority] => 1
  a2billing.php|4:     [agi_enhanced] => 0.0
  a2billing.php|4:     [agi_accountcode] => TESTACCOUNT
  a2billing.php|4: )
  a2billing.php|4:
  a2billing.php|4: file:Class.A2Billing.php - line:616 -  get_agi_request_parameter = xxx ; IAX2/test-1 ; 1197339230.30 ; TESTACCOUNT ; 100
  a2billing.php|4: file:a2billing.php - line:139 - [ANSWER CALL]
  a2billing.php|4: file:Class.A2Billing.php - line:1640 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enable
expire, 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='TESTACCOUNT'
  a2billing.php|4: file:Class.A2Billing.php - line:1647 - PREPAID-AUTH-FAIL
  a2billing.php|4: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-2)]
    -- AGI Script a2billing.php completed, returning 0
    -- Hungup 'IAX2/test-1'


And I'm still unable to determine why A2B is not asking for a PIN number ones the authenticatin fails!

Any help will be really appreciated!
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 03, 2008 5:57 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I think that your are right about similarities between debug level 1, 2, and 3.

I have just checked the code and the debug parameters of a2billing.conf is being used like ... (in Class.A2Billing.php)

Code:
if ($this->agiconfig['debug']>=1) ...


Basically, this condition will be evaluated as true whenever the debug option if greater or equal to 1. So we either have a debug (if debug=1, debug=2 or debug=3, ... ) or not (if debug is set to 0)

I guess that in the future, something will need to be done as a2billing will grow. Among those things, we can decide what type of message belongs to what debug level. That will help control the verbosity of the debug output with increased accuracy.

Thoughts anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 03, 2008 12:55 pm 
Offline

Joined: Thu Nov 22, 2007 6:14 pm
Posts: 33
Thaks, for you reply, that make sence


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


All times are UTC


Who is online

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