Thank you Stavros for your reply.
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: A2Billing AGI internal configuration:
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: Array
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [debug] => 3
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [asterisk_version] => 1_2
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [answer_call] => 1
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [play_audio] => 1
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [say_goodbye] =>
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [play_menulanguage] =>
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [force_language] =>
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [intro_prompt] =>
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [min_credit_2call] => 0
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [min_duration_2bill] => 10
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [notenoughcredit_cardnumber] =>
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] => 1
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [use_dnid] => 1
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: [no_auth_dnid] => Array
Sep 15 01:53:11 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [number_try] => 3
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [force_callplan_id] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [say_balance_after_auth] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [say_balance_after_call] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [say_rateinitial] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [say_timetocall] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [auto_setcallerid] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [force_callerid] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_sanitize] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_enable] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_assign_card_to_cid] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card_len] => 10
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAY
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card_credit] => 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [cid_auto_create_card_tariffgroup] => 6
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [callerid_authentication_over_cardnumber] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [sip_iax_friends] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [ivr_voucher] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [ivr_voucher_prefix] => 8
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [jump_voucher_if_min_credit] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [extracharge_did] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [extracharge_fee] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [international_prefixes] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] => 011
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [1] => 00
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [2] => 09
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [dialcommand_param] => |50|HgL(%timeout%:61000:30000)
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [dialcommand_param_sipiax_friend] => |50|HgiL(%timeout%:61000:30000)
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [switchdialcommand] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [failover_recursive_limit] => 2
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [send_reminder] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [min_credit_sendreminder] => 5
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [record_call] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [monitor_formatfile] => gsm
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_force_currency] =>
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [currency_association] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] => usd:dollars
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [1] => mxn:pesos
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [2] => eur:euros
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [3] => all:credit
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [file_conf_enter_destination] => prepaid-enter-dest
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [file_conf_enter_menulang] => prepaid-menulang2
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [logger_enable] => 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [log_file] => /tmp/a2billing.log
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [extracharge_buyfee] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [0] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [currency_association_internal] => Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [usd] => dollars
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [mxn] => pesos
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [eur] => euros
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [all] => credit
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [ivr_voucher_prefixe] => 8
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:78 - IDCONFIG : 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:79 - MODE : standard
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:91 - AGI Request:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:92 - Array
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: (
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_request] => a2billing.php
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_channel] => SIP/73772975-b7901e50
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_language] => en
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_type] => SIP
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_uniqueid] => 1221436390.7783
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_callerid] => 73772975
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_calleridname] => unknown
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_callingpres] => 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_callingani2] => 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_callington] => 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_callingtns] => 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_dnid] => 55519718212
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_rdnis] => unknown
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_context] => a2billing
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_extension] => 55519718212
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_priority] => 3
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_enhanced] => 0.0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: [agi_accountcode] => 73772975
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: )
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:621 - get_agi_request_parameter = 73772975 ; SIP/73772975-b7901e50 ; 1221436390.7783 ; 73772975 ; 55519718212
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:141 - [ANSWER CALL]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1640 - 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='73772975'
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() it]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='73772975']
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1406 - [REQUESTED SetCallerID : 73772975]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1417 - [EXEC SetCallerID : 73772975]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:a2billing.php - line:173 - [CREDIT : 24.00000][CREDIT MIN_CREDIT_2CALL : 0]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:676 - 1 && && 11&& 0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:701 - DESTINATION ::> 55519718212
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> 55519718212
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:741 - OK - RESFINDRATE::> 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:763 - RES_ALL_CALCULTIMEOUT ::> 1
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:780 - TIMEOUT::> 720 : minutes=12 - seconds=0
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1012 - app_callingcard: Dialing 'SIP/55519718212@Local|50|HgL(720000:61000:30000)' with timeout of '720'.
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1037 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
Sep 15 01:53:12 WARNING[1420] chan_sip.c: No such host: Local
Sep 15 01:53:12 NOTICE[1420] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
Sep 15 01:53:12 DEBUG[1420] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1065 - [K=0]:[ANSWEREDTIME=0-DIALSTATUS=CHANUNAVAIL]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1105 - FAILOVER app_callingcard: Dialing 'SIP/55519718212@Local|50|HgL(720000:61000:30000)' with timeout of '720'.
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1:
Sep 15 01:53:12 WARNING[1420] chan_sip.c: No such host: Local
Sep 15 01:53:12 NOTICE[1420] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
Sep 15 01:53:12 DEBUG[1420] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1115 - [FAILOVER K=0]:[ANSTIME=-DIALSTATUS=CHANUNAVAIL]
Sep 15 01:53:12 VERBOSE[1420] logger.c: a2billing.php|1: file:Class.RateEngine.php - line:1148 - [USEDRATECARD - FAIL =0]
Sep 15 01:53:12 DEBUG[1420] channel.c: Scheduling timer at 160 sample intervals
Sep 15 01:53:12 DEBUG[28666] chan_sip.c: Stopping retransmission on '
[email protected]' of Request 102: Match Found
Sep 15 01:53:13 DEBUG[28666] chan_sip.c: Stopping retransmission on '
[email protected]' of Request 102: Match Found
Sep 15 01:53:14 DEBUG[28666] chan_sip.c: Stopping retransmission on '
[email protected]' of Request 102: Match Found
Sep 15 01:53:14 DEBUG[28666] chan_sip.c: Stopping retransmission on '
[email protected]' of Request 102: Match Found
Sep 15 01:53:15 DEBUG[1420] channel.c: Scheduling timer at 0 sample intervals
Sep 15 01:53:15 DEBUG[1420] chan_sip.c: update_call_counter(73772975) - decrement call limit counter
Sep 15 01:53:15 DEBUG[1420] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Sep 15 01:53:15 DEBUG[1420] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2008-09-15 01:53:10','73772975','73772975','55519718212','a2billing', 'SIP/73772975-b7901e50','','Dial','SIP/55519718212@Local|50|HgL(720000:61000:30000)',5,5,'ANSWERED',2,'73772975','1221436390.7783')