Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 4:05 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Incoming billing working! ATAs wont work, but xlite and * do
PostPosted: Tue Sep 30, 2008 10:24 pm 
Offline
User avatar

Joined: Tue May 13, 2008 4:37 am
Posts: 22
Location: Coeur d Alene, Id
When I register the PAP to the account/card I get this when trying to call:

-- Executing [2084150660@convertec-did:1] DeadAGI("SIP/lead-0d413f70", "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] => 3
a2billing.php|1|did: [asterisk_version] => 1_4
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] => EN
a2billing.php|1|did: [intro_prompt] =>
a2billing.php|1|did: [min_credit_2call] => 1
a2billing.php|1|did: [min_duration_2bill] => 1
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] => 1
a2billing.php|1|did: [force_callplan_id] =>
a2billing.php|1|did: [say_balance_after_auth] =>
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
a2billing.php|1|did: [say_timetocall] =>
a2billing.php|1|did: [auto_setcallerid] => 1
a2billing.php|1|did: [force_callerid] =>
a2billing.php|1|did: [cid_sanitize] => BOTH
a2billing.php|1|did: [cid_enable] => 1
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] =>
a2billing.php|1|did: [cid_auto_assign_card_to_cid] =>
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] => PREPAY
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] =>
a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1|did: [sip_iax_pstn_direct_call] =>
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] => XX.
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [extracharge_fee] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => 0.02
a2billing.php|1|did: )
a2billing.php|1|did:
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: )
a2billing.php|1|did:
a2billing.php|1|did: [dialcommand_param] => |60|Rrgi
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HRgirL(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:76 - IDCONFIG : 1
a2billing.php|1|did: file:a2billing.php - line:77 - MODE : did
a2billing.php|1|did: file:a2billing.php - line:89 - AGI Request:
a2billing.php|1|did: file:a2billing.php - line:90 - Array
a2billing.php|1|did: (
a2billing.php|1|did: [agi_request] => a2billing.php
a2billing.php|1|did: [agi_channel] => SIP/lead-0d413f70
a2billing.php|1|did: [agi_language] => en
a2billing.php|1|did: [agi_type] => SIP
a2billing.php|1|did: [agi_uniqueid] => 1218068104.518
a2billing.php|1|did: [agi_callerid] => 2086642869
a2billing.php|1|did: [agi_calleridname] => 2086642869
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] => 2084150660
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => convertec-did
a2billing.php|1|did: [agi_extension] => 2084150660
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:616 - get_agi_request_parameter = 2086642869 ; SIP/lead-0d413f70 ; 1218068104.518 ; ; 2084150660
a2billing.php|1|did: file:a2billing.php - line:332 - [NO ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=2086642869]:[DID=2084150660]
a2billing.php|1|did: file:a2billing.php - line:356 - 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='2084150660' 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:358 - Array
a2billing.php|1|did: file:Class.A2Billing.php - line:973 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:9895878345|destination:2084150660|tariff:4)
a2billing.php|1|did:
a2billing.php|1|did: 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='9895878345'
a2billing.php|1|did: file:Class.A2Billing.php - line:1714 - [SET CHANNEL(language) en]
a2billing.php|1|did: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='9895878345']
a2billing.php|1|did: file:Class.A2Billing.php - line:671 - 1 && && 10&& 0
a2billing.php|1|did: file:Class.A2Billing.php - line:696 - DESTINATION ::> 2084150660
a2billing.php|1|did: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> 2084150660
a2billing.php|1|did: file:Class.A2Billing.php - line:736 - OK - RESFINDRATE::> 1
a2billing.php|1|did: file:Class.A2Billing.php - line:758 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php|1|did: file:Class.A2Billing.php - line:775 - TIMEOUT::> 211710 : minutes=3528 - seconds=30
a2billing.php|1|did: file:Class.RateEngine.php - line:1026 - app_callingcard: Dialing 'SIP/9895878345/2084150660|60|Rrgi' with timeout of '211710'.
a2billing.php|1|did:
a2billing.php|1|did: file:Class.RateEngine.php - line:1051 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (SIP/9895878345/2084150660|60|Rrgi)
-- Called 9895878345/2084150660
-- SIP/9895878345-0d46e4c0 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
a2billing.php|1|did: file:Class.RateEngine.php - line:1162 - [USEDRATECARD - FAIL =0]
a2billing.php|1|did: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='9895878345']
-- AGI Script a2billing.php completed, returning 0


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Now when I register the X-Lite up and make the same call I get this and the call is a success:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- Executing [2084150660@convertec-did:1] DeadAGI("SIP/lead-0d413f70", "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] => 3
a2billing.php|1|did: [asterisk_version] => 1_4
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] => EN
a2billing.php|1|did: [intro_prompt] =>
a2billing.php|1|did: [min_credit_2call] => 1
a2billing.php|1|did: [min_duration_2bill] => 1
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] => 1
a2billing.php|1|did: [force_callplan_id] =>
a2billing.php|1|did: [say_balance_after_auth] =>
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
a2billing.php|1|did: [say_timetocall] =>
a2billing.php|1|did: [auto_setcallerid] => 1
a2billing.php|1|did: [force_callerid] =>
a2billing.php|1|did: [cid_sanitize] => BOTH
a2billing.php|1|did: [cid_enable] => 1
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] =>
a2billing.php|1|did: [cid_auto_assign_card_to_cid] =>
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] => PREPAY
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] =>
a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1|did: [sip_iax_pstn_direct_call] =>
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] => XX.
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [extracharge_fee] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => 0.02
a2billing.php|1|did: )
a2billing.php|1|did:
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: )
a2billing.php|1|did:
a2billing.php|1|did: [dialcommand_param] => |60|Rrgi
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HRgirL(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:76 - IDCONFIG : 1
a2billing.php|1|did: file:a2billing.php - line:77 - MODE : did
a2billing.php|1|did: file:a2billing.php - line:89 - AGI Request:
a2billing.php|1|did: file:a2billing.php - line:90 - Array
a2billing.php|1|did: (
a2billing.php|1|did: [agi_request] => a2billing.php
a2billing.php|1|did: [agi_channel] => SIP/lead-0d413f70
a2billing.php|1|did: [agi_language] => en
a2billing.php|1|did: [agi_type] => SIP
a2billing.php|1|did: [agi_uniqueid] => 1218068290.522
a2billing.php|1|did: [agi_callerid] => 2086642869
a2billing.php|1|did: [agi_calleridname] => 2086642869
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] => 2084150660
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => convertec-did
a2billing.php|1|did: [agi_extension] => 2084150660
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:616 - get_agi_request_parameter = 2086642869 ; SIP/lead-0d413f70 ; 1218068290.522 ; ; 2084150660
a2billing.php|1|did: file:a2billing.php - line:332 - [NO ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=2086642869]:[DID=2084150660]
a2billing.php|1|did: file:a2billing.php - line:356 - 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='2084150660' 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:358 - Array
a2billing.php|1|did: file:Class.A2Billing.php - line:973 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:9895878345|destination:2084150660|tariff:4)
a2billing.php|1|did:
a2billing.php|1|did: 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='9895878345'
a2billing.php|1|did: file:Class.A2Billing.php - line:1714 - [SET CHANNEL(language) en]
a2billing.php|1|did: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='9895878345']
a2billing.php|1|did: file:Class.A2Billing.php - line:671 - 1 && && 10&& 0
a2billing.php|1|did: file:Class.A2Billing.php - line:696 - DESTINATION ::> 2084150660
a2billing.php|1|did: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> 2084150660
a2billing.php|1|did: file:Class.A2Billing.php - line:736 - OK - RESFINDRATE::> 1
a2billing.php|1|did: file:Class.A2Billing.php - line:758 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php|1|did: file:Class.A2Billing.php - line:775 - TIMEOUT::> 211680 : minutes=3528 - seconds=0
a2billing.php|1|did: file:Class.RateEngine.php - line:1026 - app_callingcard: Dialing 'SIP/9895878345/2084150660|60|Rrgi' with timeout of '211680'.
a2billing.php|1|did:
a2billing.php|1|did: file:Class.RateEngine.php - line:1051 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (SIP/9895878345/2084150660|60|Rrgi)
-- Called 9895878345/2084150660
-- SIP/9895878345-0d466540 is ringing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can anyone tell me what the deal is here?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Voice Broadcast System


All times are UTC


Who is online

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