Hi
I have been trying emphatically to setup the scenario where a CARD is created for any new caller ID recognised by the system. I have edited the Agi config and tried various configurations.
I have set autocreate card to yes as well as setup the type of card i.e postpay and the relevant credit. I cant seem to get it to work and it still asks for a pin number
here is the log file
Code:
Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1: file:Class.A2Billing.php - line:578 - uniqueid: - A2Billing AGI internal configuration: ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:579 - uniqueid: - Array
a2billing.php|1: (
a2billing.php|1: [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)
a2billing.php|1: [description] => agi-config
a2billing.php|1: [asterisk_version] => 1_4
a2billing.php|1: [answer_call] => 1
a2billing.php|1: [play_audio] => 1
a2billing.php|1: [say_goodbye] => 0
a2billing.php|1: [play_menulanguage] => 0
a2billing.php|1: [force_language] =>
a2billing.php|1: [intro_prompt] => Welcome2
a2billing.php|1: [min_credit_2call] => 0
a2billing.php|1: [min_duration_2bill] => 0
a2billing.php|1: [notenoughcredit_cardnumber] => 0
a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php|1: [use_dnid] => 0
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] => 0
a2billing.php|1: [say_balance_after_call] => 0
a2billing.php|1: [say_rateinitial] => 0
a2billing.php|1: [say_timetocall] => 0
a2billing.php|1: [auto_setcallerid] => 1
a2billing.php|1: [force_callerid] =>
a2billing.php|1: [cid_sanitize] => NO
a2billing.php|1: [cid_enable] => 1
a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1: [failover_lc_prefix] => 0
a2billing.php|1: [cid_auto_assign_card_to_cid] => 0
a2billing.php|1: [callerid_authentication_over_cardnumber] => 0
a2billing.php|1: [sip_iax_friends] => 0
a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1: [sip_iax_pstn_direct_call] => 0
a2billing.php|1: [ivr_voucher] => 0
a2billing.php|1: [ivr_voucher_prefix] => 8
a2billing.php|1: [jump_voucher_if_min_credit] => 0
a2billing.php|1: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php|1: [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000)
a2billing.php|1: [switchdialcommand] => 0
a2billing.php|1: [failover_recursive_limit] => 2
a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1: [send_reminder] => 0
a2billing.php|1: [record_call] => 0
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: [local_dialing_addcountryprefix] => 0
a2billing.php|1: [max_call_call_2_did] => 3600
a2billing.php|1: [file_conf_enter_destination] => TheNumberToCall
a2billing.php|1: [conf_order_menulang] => en:fr:es
a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1: [international_prefixes] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 011
a2billing.php|1: [1] => 00
a2billing.php|1: [2] => 09
a2billing.php|1: [3] => 1
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_did] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 1800
a2billing.php|1: [1] => 1900
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_fee] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 0
a2billing.php|1: [1] => 0
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_buyfee] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 0
a2billing.php|1: [1] => 0
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [maxtime_tounlimited_calls] => 5400
a2billing.php|1: [maxtime_tofree_calls] => 5400
a2billing.php|1: [callplan_deck_minute_threshold] =>
a2billing.php|1: [disable_announcement_seconds] => 0
a2billing.php|1: [verbosity_level] => 4
a2billing.php|1: [logging_level] => 3
a2billing.php|1: [dial_balance_reservation] => 0.25
a2billing.php|1: [callerid_update] => 0
a2billing.php|1: [cid_auto_create_card] => 1
a2billing.php|1: [cid_auto_create_card_len] => 10
a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAID
a2billing.php|1: [cid_auto_create_card_credit] => 10000000
a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000000000
a2billing.php|1: [cid_auto_create_card_tariffgroup] => 1
a2billing.php|1: [logger_enable] => 1
a2billing.php|1: [log_file] => /var/log/a2billing/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: [file_conf_enter_menulang] => prepaid-menulang
a2billing.php|1: [ivr_voucher_prefixe] => 8
a2billing.php|1: [cheat_on_announcement_time] => 0
a2billing.php|1: )
a2billing.php|1: ::> 4
a2billing.php|1: file:a2billing.php - line:99 - uniqueid: - IDCONFIG : 1 ::> 3
a2billing.php|1: file:a2billing.php - line:100 - uniqueid: - MODE : standard ::> 3
a2billing.php|1: file:a2billing.php - line:117 - uniqueid: - AGI Request:
a2billing.php|1: Array
a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => SIP/877513044-f5e20978
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => SIP
a2billing.php|1: [agi_uniqueid] => 1256856884.81
a2billing.php|1: [agi_callerid] => 0116468777
a2billing.php|1: [agi_calleridname] => 0116468777
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] => unknown
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => custom-a2billing
a2billing.php|1: [agi_extension] => _X.
a2billing.php|1: [agi_priority] => 3
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] =>
a2billing.php|1: )
a2billing.php|1: ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:692 - uniqueid:1256856884.81 - get_agi_request_parameter = 0116468777 ; SIP/877513044-f5e20978 ; 1256856884.81 ; ; _X. ::> 3
a2billing.php|1: file:a2billing.php - line:156 - uniqueid:1256856884.81 - [ANSWER CALL] ::> 3
-- Playing 'Welcome2' (escape_digits=#) (sample_offset 0)
a2billing.php|1: file:Class.A2Billing.php - line:2307 - uniqueid:1256856884.81 - [CID_ENABLE - CID_CONTROL - CID:0116468777] ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2322 - uniqueid:1256856884.81 - ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2326 - uniqueid:1256856884.81 - [CID_CONTROL - STOP - NO CALLERID] ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2439 - uniqueid:1256856884.81 - - Account code - ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2601 - uniqueid:1256856884.81 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15 ::> 4
-- <SIP/877513044-f5e20978> Playing 'prepaid-enter-pin-number' (language 'en')
a2billing.php|1: file:Class.A2Billing.php - line:2603 - uniqueid:1256856884.81 - RES DTMF : ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2607 - uniqueid:1256856884.81 - CARDNUMBER ::> ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2611 - uniqueid:1256856884.81 - PREPAID-NO-CARD-ENTERED ::> 4
-- Playing 'prepaid-no-card-entered' (escape_digits=#) (sample_offset 0)
a2billing.php|1: file:Class.A2Billing.php - line:2593 - uniqueid:1256856884.81 - PREPAID-NO-CARD-ENTERED ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2601 - uniqueid:1256856884.81 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15 ::> 4
-- <SIP/877513044-f5e20978> Playing 'prepaid-enter-pin-number' (language 'en')
-- Remote UNIX connection
-- Remote UNIX connection disconnected
a2billing.php|1: file:Class.A2Billing.php - line:2603 - uniqueid:1256856884.81 - RES DTMF : -1 ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2607 - uniqueid:1256856884.81 - CARDNUMBER ::> -1 ::> 4
a2billing.php|1: file:Class.A2Billing.php - line:2617 - uniqueid:1256856884.81 - PREPAID-INVALID-DIGITS ::> 4
-- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
I have taken your advise and have tries messing around with the Agi without success. Any help would be appreciated.
Thanks