Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 1:41 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Can't get my DID to its Destination
PostPosted: Fri Dec 28, 2007 5:58 pm 
Offline

Joined: Fri Dec 28, 2007 5:50 pm
Posts: 3
Hello, I I have been trying for several days to make this work, but so far no luck. I was wondering if I could please, get some help on how to resolve this.

This is what my configuration looks like,

Many thanks :-)

[a2billing]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,NoOp,${CALLERID(all)}
exten => s,n,DeadAGI(a2billing.php|1|did)
exten => s,n,Hangup



Destination: 13034695366
Creation Date: 2007-02-23 21
DID: 7028131
CardNumber: 2999706663
Active: Active
VOIP: Inactive
Prio: 1



-- Accepting UNAUTHENTICATED call from x.x.x.x:
> requested format = alaw,
> requested prefs = (alaw|gsm|g729),
> actual format = g729,
> host prefs = (g729),
> priority = mine
-- Executing [7028131@from-rcp:1] Goto("IAX2/testing-3", "a2billing|s|1") in new stack
-- Goto (a2billing,s,1)
-- Executing [s@a2billing:1] Answer("IAX2/testing-3", "") in new stack
-- Executing [s@a2billing:2] Wait("IAX2/testing-3", "1") in new stack
-- Executing [s@a2billing:3] NoOp("IAX2/testing-3", """ <191913084>") in new stack
-- Executing [s@a2billing:4] DeadAGI("IAX2/testing-3", "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] => 1
a2billing.php|1|did: [asterisk_version] => 1_2
a2billing.php|1|did: [answer_call] => 1
a2billing.php|1|did: [play_audio] => 1
a2billing.php|1|did: [say_goodbye] =>
a2billing.php|1|did: [play_menulanguage] =>
a2billing.php|1|did: [force_language] =>
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] => 1
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] => 1
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
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] =>
a2billing.php|1|did: [cid_enable] => 1
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1|did: [cid_auto_assign_card_to_cid] => 1
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] => POSTPAY
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] =>
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: [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: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HRgrL(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] => IAX2/testing-3
a2billing.php|1|did: [agi_language] => en
a2billing.php|1|did: [agi_type] => IAX2
a2billing.php|1|did: [agi_uniqueid] => 1198866197.30
a2billing.php|1|did: [agi_callerid] => 191913084
a2billing.php|1|did: [agi_calleridname] => unknown
a2billing.php|1|did: [agi_callingpres] => 1
a2billing.php|1|did: [agi_callingani2] => 0
a2billing.php|1|did: [agi_callington] => 33
a2billing.php|1|did: [agi_callingtns] => 0
a2billing.php|1|did: [agi_dnid] => unknown
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => a2billing
a2billing.php|1|did: [agi_extension] => s
a2billing.php|1|did: [agi_priority] => 4
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 = 191913084 ; IAX2/testing-3 ; 1198866197.30 ; ; s
a2billing.php|1|did: file:a2billing.php - line:329 - [ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=191913084]:[DID=s]
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='s' 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 -
-- AGI Script a2billing.php completed, returning 0
-- Hungup 'IAX2/testing-3'


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 6:20 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
what destination are you trying to sen your DID?

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 7:19 pm 
Offline

Joined: Fri Dec 28, 2007 5:50 pm
Posts: 3
Hello Joe,
Thank you for you quick reply,

I am trying to send to a pstn in the USA

Destination: 13034695366
Creation Date: 2007-02-23 21
DID: 7028131
CardNumber: 2999706663
Active: Active
VOIP: Inactive
Prio: 1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 7:29 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

It does not look like the DID is being passed into A2Billing, that is to say, A2Billing is not able to identify the DID. Below is the context I use.

[custom-a2billing-did]
exten => _X.,1,NoOp,${CALLERID(all)}
exten => _X.,2,DeadAGI(a2billing.php|1|did)
exten => _X.,3,Hangup


See how you get on.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 29, 2007 3:53 pm 
Offline

Joined: Fri Dec 28, 2007 5:50 pm
Posts: 3
Hello Joe,

Thank you, for the tip, and looks like we have move forward a little bit, but still not working.
Here is our new contex and log.

Thank You.



[a2billing-did]

exten => _X.,1,Wait(1)
exten => _X.,n,NoOp,${CALLERID(all)}
exten => _X.,n,DeadAGI(a2billing.php|1|did)
exten => _X.,n,Hangup



LOG:


-- Accepting UNAUTHENTICATED call from x.x.x.x:
> requested format = alaw,
> requested prefs = (alaw|gsm|g729),
> actual format = g729,
> host prefs = (g729),
> priority = mine
-- Executing [7028131@a2billing-did:1] Wait("IAX2/testing-2", "1") in new stack
-- Executing [7028131@a2billing-did:2] NoOp("IAX2/testing-2", """ <191913084>") in new stack
-- Executing [7028131@a2billing-did:3] DeadAGI("IAX2/testing-2", "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] => 1
a2billing.php|1|did: [asterisk_version] => 1_2
a2billing.php|1|did: [answer_call] => 1
a2billing.php|1|did: [play_audio] => 1
a2billing.php|1|did: [say_goodbye] =>
a2billing.php|1|did: [play_menulanguage] =>
a2billing.php|1|did: [force_language] =>
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] => 1
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] => 1
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
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] =>
a2billing.php|1|did: [cid_enable] => 1
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1|did: [cid_auto_assign_card_to_cid] => 1
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] => POSTPAY
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] =>
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: [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: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HRgrL(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] => IAX2/testing-2
a2billing.php|1|did: [agi_language] => en
a2billing.php|1|did: [agi_type] => IAX2
a2billing.php|1|did: [agi_uniqueid] => 1198946082.10
a2billing.php|1|did: [agi_callerid] => 191913084
a2billing.php|1|did: [agi_calleridname] => unknown
a2billing.php|1|did: [agi_callingpres] => 1
a2billing.php|1|did: [agi_callingani2] => 0
a2billing.php|1|did: [agi_callington] => 33
a2billing.php|1|did: [agi_callingtns] => 0
a2billing.php|1|did: [agi_dnid] => unknown
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => a2billing-did
a2billing.php|1|did: [agi_extension] => 7028131
a2billing.php|1|did: [agi_priority] => 3
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 = 191913084 ; IAX2/testing-2 ; 1198946082.10 ; ; 7028131
a2billing.php|1|did: file:a2billing.php - line:329 - [ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=191913084]:[DID=7028131]
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='7028131' 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 -
-- AGI Script a2billing.php completed, returning 0
-- Hungup 'IAX2/testing-2'


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 29, 2007 4:30 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
Which version of a2billing are you using???? i noticed you have no caller id on incomming call, older version like 1.2.x had problems with unknown caller ids. Also are you using asterisk 1.2.xx and IAX?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group