Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu May 23, 2019 6:03 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: DID Routing
PostPosted: Fri Dec 28, 2007 7:58 am 
Offline
User avatar

Joined: Sat Jun 02, 2007 5:59 am
Posts: 63
Location: Orlando, Fl
Hi everyone. I have DID routing partially working. Calls to the particular DID are sent to a2billing-did,${EXTEN},1 and a2billing directs the call to the assigned A2Billing client. The problem is this: As soon as the client picks up the phone the call is terminated.. Included is my debug output and AGI-CONF2 section...

-- Executing NoOp("SIP/64.34.170.149-09ab4850", "Received incoming SIP connection from unknown peer to 2393449563") in new stack
-- Executing Set("SIP/64.34.170.149-09ab4850", "DID=2393449563") in new stack
-- Executing Goto("SIP/64.34.170.149-09ab4850", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing Ringing("SIP/64.34.170.149-09ab4850", "") in new stack
-- Executing GotoIf("SIP/64.34.170.149-09ab4850", "1?from-trunk|2393449563|1") in new stack
-- Goto (from-trunk,2393449563,1)
-- Executing Set("SIP/64.34.170.149-09ab4850", "__FROM_DID=2393449563") in new stack
-- Executing Gosub("SIP/64.34.170.149-09ab4850", "app-blacklist-check|s|1") in new stack
-- Executing LookupBlacklist("SIP/64.34.170.149-09ab4850", "") in new stack
-- Executing GotoIf("SIP/64.34.170.149-09ab4850", "0?blacklisted") in new stack
-- Executing Return("SIP/64.34.170.149-09ab4850", "") in new stack
-- Executing Goto("SIP/64.34.170.149-09ab4850", "a2billing-did|2393449563|1") in new stack
-- Goto (a2billing-did,2393449563,1)
-- Executing NoOp("SIP/64.34.170.149-09ab4850", ""2396455991" <2396455991>") in new stack
-- Executing DeadAGI("SIP/64.34.170.149-09ab4850", "a2billing.php|2|did") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|2|did: A2Billing AGI internal configuration:
a2billing.php|2|did: Array
a2billing.php|2|did: (
a2billing.php|2|did: [debug] => 1
a2billing.php|2|did: [answer_call] =>
a2billing.php|2|did: [logger_enable] => 1
a2billing.php|2|did: [log_file] => /tmp/a2billing.log
a2billing.php|2|did: [setlanguage_deprecate] => 1
a2billing.php|2|did: [say_goodbye] =>
a2billing.php|2|did: [play_menulanguage] =>
a2billing.php|2|did: [force_language] =>
a2billing.php|2|did: [intro_prompt] =>
a2billing.php|2|did: [len_cardnumber] => 4
a2billing.php|2|did: [len_aliasnumber] => 3
a2billing.php|2|did: [len_voucher] => 3
a2billing.php|2|did: [min_credit_2call] => 0
a2billing.php|2|did: [min_duration_2bill] => 0
a2billing.php|2|did: [notenoughcredit_cardnumber] =>
a2billing.php|2|did: [notenoughcredit_assign_newcardnumber_cid] =>
a2billing.php|2|did: [use_dnid] => 1
a2billing.php|2|did: [number_try] => 1
a2billing.php|2|did: [say_balance_after_auth] =>
a2billing.php|2|did: [say_balance_after_call] =>
a2billing.php|2|did: [say_rateinitial] =>
a2billing.php|2|did: [say_timetocall] =>
a2billing.php|2|did: [auto_setcallerid] => 1
a2billing.php|2|did: [force_callerid] =>
a2billing.php|2|did: [cid_sanitize] => CID
a2billing.php|2|did: [cid_enable] => 1
a2billing.php|2|did: [cid_askpincode_ifnot_callerid] =>
a2billing.php|2|did: [cid_auto_create_card] =>
a2billing.php|2|did: [cid_auto_assign_card_to_cid] =>
a2billing.php|2|did: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|2|did: [cid_auto_create_card_credit] => 0
a2billing.php|2|did: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|2|did: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|2|did: [sip_iax_friends] => 1
a2billing.php|2|did: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|2|did: [sip_iax_pstn_direct_call] =>
a2billing.php|2|did: [extracharge_did] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => 2393449563
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [extracharge_fee] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => 0.012
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [dialcommand_param] => |90|HL(%timeout%:61000:30000)
a2billing.php|2|did: [dialcommand_param_sipiax_friend] => |90|HL(3600000:61000:30000)
a2billing.php|2|did: [switchdialcommand] =>
a2billing.php|2|did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|2|did: [send_reminder] =>
a2billing.php|2|did: [record_call] =>
a2billing.php|2|did: [monitor_formatfile] => gsm
a2billing.php|2|did: [base_currency] => usd
a2billing.php|2|did: [agi_force_currency] =>
a2billing.php|2|did: [currency_association] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => usd:prepaid-dollar
a2billing.php|2|did: [1] => mxn:pesos
a2billing.php|2|did: [2] => eur:euro
a2billing.php|2|did: [3] => all:credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|2|did: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|2|did: [debugshell] => 0
a2billing.php|2|did: [play_audio] => 1
a2billing.php|2|did: [callerid_authentication_over_cardnumber] => 0
a2billing.php|2|did: [cid_auto_create_card_len] => 10
a2billing.php|2|did: [failover_recursive_limit] => 1
a2billing.php|2|did: [currency_association_internal] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [usd] => prepaid-dollar
a2billing.php|2|did: [mxn] => pesos
a2billing.php|2|did: [eur] => euro
a2billing.php|2|did: [all] => credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [ivr_voucher] => 0
a2billing.php|2|did: [ivr_voucher_prefixe] => 8
a2billing.php|2|did: [jump_voucher_if_min_credit] => 0
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:a2billing.php - line:76 - IDCONFIG : 2
a2billing.php|2|did: file:a2billing.php - line:77 - MODE : did
a2billing.php|2|did: file:a2billing.php - line:89 - AGI Request:
a2billing.php|2|did: file:a2billing.php - line:90 - Array
a2billing.php|2|did: (
a2billing.php|2|did: [agi_request] => a2billing.php
a2billing.php|2|did: [agi_channel] => SIP/64.34.170.149-09ab4850
a2billing.php|2|did: [agi_language] => en
a2billing.php|2|did: [agi_type] => SIP
a2billing.php|2|did: [agi_uniqueid] => 1198828019.1020
a2billing.php|2|did: [agi_callerid] => 2396455991
a2billing.php|2|did: [agi_calleridname] => 2396455991
a2billing.php|2|did: [agi_callingpres] => 0
a2billing.php|2|did: [agi_callingani2] => 0
a2billing.php|2|did: [agi_callington] => 0
a2billing.php|2|did: [agi_callingtns] => 0
a2billing.php|2|did: [agi_dnid] => 2393449563
a2billing.php|2|did: [agi_rdnis] => unknown
a2billing.php|2|did: [agi_context] => a2billing-did
a2billing.php|2|did: [agi_extension] => 2393449563
a2billing.php|2|did: [agi_priority] => 2
a2billing.php|2|did: [agi_enhanced] => 0.0
a2billing.php|2|did: [agi_accountcode] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:614 - get_agi_request_parameter = 2396455991 ; SIP/64.34.170.149-09ab4850 ; 1198828019.1020 ; ; 2393449563
a2billing.php|2|did: file:a2billing.php - line:332 - [NO ANSWER CALL]
a2billing.php|2|did: file:a2billing.php - line:344 - [DID CALL - [CallerID=2396455991]:[DID=2393449563]
a2billing.php|2|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='2393449563' 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|2|did: file:a2billing.php - line:358 - Array
a2billing.php|2|did: file:Class.A2Billing.php - line:971 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:8711503777|destination:SIP/8711503777|tariff:6)
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:1638 - 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='8711503777'
a2billing.php|2|did: file:Class.A2Billing.php - line:1712 - [SET CHANNEL(language) en]
a2billing.php|2|did: file:Class.A2Billing.php - line:647 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='8711503777']
a2billing.php|2|did: file:Class.A2Billing.php - line:999 - [A2Billing] DID call friend: Dialing 'SIP/8711503777|90|HL(3600000:61000:30000)' Friend.
a2billing.php|2|did:
-- AGI Script Executing Application: (DIAL) Options: (SIP/8711503777|90|HL(3600000:61000:30000))
-- Limit Data for this call:
-- - timelimit = 3600000
-- - play_warning = 61000
-- - play_to_caller= yes
-- - play_to_callee= no
-- - warning_freq = 30000
-- - start_sound = UNDEF
-- - warning_sound = timeleft
-- - end_sound = UNDEF
-- Called 8711503777
-- SIP/8711503777-09b4c4c8 is ringing
-- SIP/8711503777-09b4c4c8 answered SIP/64.34.170.149-09ab4850
a2billing.php|2|did: file:Class.A2Billing.php - line:1037 - [A2Billing] DID call friend: dialstatus : ANSWER, answered time is 1
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:1066 - [DID CALL - LOG CC_CALL: SQL: INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax) VALUES ('1198828019.1020', 'SIP/64.34.170.149-09ab4850', '8711503777', '', CURRENT_TIMESTAMP - INTERVAL 1 SECOND , '1', 'SIP/8711503777', 'ANSWER', now(), '0', '0', '', '', 'DID CALL', '0', '0', '0', '0', '2396455991', '3' )]:[result:1]
a2billing.php|2|did: file:Class.A2Billing.php - line:1071 - [UPDATE DID: SQL: UPDATE cc_did SET secondusedreal = secondusedreal + 1 WHERE id='4']:[result:1]
a2billing.php|2|did: file:Class.A2Billing.php - line:1075 - [UPDATE DID_DESTINATION: SQL: UPDATE cc_did_destination SET secondusedreal = secondusedreal + 1 WHERE id='3']:[result:1]
a2billing.php|2|did: file:Class.A2Billing.php - line:647 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='8711503777']
-- AGI Script a2billing.php completed, returning 0
asterisk1*CLI>
-------------------------------------------------------------------
[agi-conf2]
debug=1
answer_call=NO
logger_enable=YES
log_file=/tmp/a2billing.log
setlanguage_deprecate=YES
say_goodbye=NO
play_menulanguage=NO
force_language=
intro_prompt=
len_cardnumber=4
len_aliasnumber = 3
len_voucher = 3
min_credit_2call=0
min_duration_2bill=0
notenoughcredit_cardnumber=NO
notenoughcredit_assign_newcardnumber_cid=NO
use_dnid=YES
number_try=1
say_balance_after_auth=NO
say_balance_after_call=NO
say_rateinitial=NO
say_timetocall=NO
auto_setcallerid=YES
force_callerid=
cid_sanitize=CID
cid_enable=YES
cid_askpincode_ifnot_callerid=NO
cid_auto_create_card=NO
cid_auto_assign_card_to_cid=NO
cid_auto_create_card_typepaid=POSTPAY
cid_auto_create_card_credit=0
cid_auto_create_card_credit_limit=1000
cid_auto_create_card_tariffgroup=6
sip_iax_friends=YES
sip_iax_pstn_direct_call_prefix=9
sip_iax_pstn_direct_call=NO
extracharge_did=2393449563
extracharge_fee=0.012
dialcommand_param="|90|HL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend="|90|HL(3600000:61000:30000)"
switchdialcommand=NO
maxtime_tocall_negatif_free_route = 5400
send_reminder=NO
record_call=NO
monitor_formatfile=gsm
base_currency = usd
agi_force_currency =
currency_association = usd:prepaid-dollar,mxn:pesos,eur:euro,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
debugshell=0
-----------------------------------
Happy New Year and thanks for any help in advance!
:D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 12:27 am 
Offline

Joined: Sat Aug 25, 2007 10:07 pm
Posts: 32
try answer_call=YES


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 06, 2008 6:41 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
For the record, all my DIDs use 'answer_call=no'. This is so we don't start charging the caller to listen to ringback. A2B answers only after the DID destination answers.
To my mind the symptoms describe a codec mismatch.


Top
 Profile  
 
 Post subject: RESOLVED
PostPosted: Sun Jan 06, 2008 1:09 pm 
Offline
User avatar

Joined: Sat Jun 02, 2007 5:59 am
Posts: 63
Location: Orlando, Fl
This was a Codec issue... I just had to read the ASTERSIK log file.. Stavros - as usual on Par! :lol:


Top
 Profile  
 
 Post subject: smixon
PostPosted: Sun Jan 06, 2008 8:40 pm 
Offline

Joined: Fri Jan 26, 2007 9:52 pm
Posts: 23
smixon did you install a2billing your self

what are you using it on ie trixbox elastix etc


Top
 Profile  
 
 Post subject: A2Billing Install
PostPosted: Sun Jan 06, 2008 9:33 pm 
Offline
User avatar

Joined: Sat Jun 02, 2007 5:59 am
Posts: 63
Location: Orlando, Fl
My production system is running on a TrixBox 2.2CE box, and I have tested on PBX In A Flash. Both work very well. I use the following install scripts on FRESH installs of the two systems. I tested with Elastic a couple of times and was never able to get it to work. I did not spend much time trouble shooting though...


Attachments:
a2b_trixbox_2.2_installer_FRESH.rar [1.6 KiB]
Downloaded 167 times
(PBXIAF)install-a2billing.rar [1.95 KiB]
Downloaded 165 times
Top
 Profile  
 
 Post subject: thank you
PostPosted: Sun Jan 06, 2008 10:33 pm 
Offline

Joined: Fri Jan 26, 2007 9:52 pm
Posts: 23
i will try this out and let you know does this install 1.3.1?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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