Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 10:48 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New Install. Cannot get response from a2billing system
PostPosted: Sat Jan 19, 2008 4:21 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
I installed a2billing on a trix box. it seems successful since i can http to the interface. i setup a customer and attempt to call the extension i configed for entering the a2b system. but the call just hangs up after 5 seconds. here is the config and the asterisk output


sip.conf
[50]
type=friend
username=50
context=local
host=dynamic

extensions.conf
[local]
exten => 225,1,Answer
exten => 225,2,Wait,2
exten => 225,3,DeadAGI,a2billing.php
exten => 225,4,Wait,2
exten => 225,5,Hangup



ASTERISK OUTPUT

trixbox1*CLI>
-- Executing [225@local:1] Answer("SIP/50-08462758", "") in new stack
-- Executing [225@local:2] Wait("SIP/50-08462758", "2") in new stack
-- Executing [225@local:3] DeadAGI("SIP/50-08462758", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php: A2Billing AGI internal configuration:
a2billing.php: Array
a2billing.php: (
a2billing.php: [debug] => 1
a2billing.php: [asterisk_version] => 1_2
a2billing.php: [answer_call] => 1
a2billing.php: [play_audio] => 1
a2billing.php: [say_goodbye] =>
a2billing.php: [play_menulanguage] =>
a2billing.php: [force_language] =>
a2billing.php: [intro_prompt] =>
a2billing.php: [min_credit_2call] => 0
a2billing.php: [min_duration_2bill] => 0
a2billing.php: [notenoughcredit_cardnumber] => 1
a2billing.php: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php: [use_dnid] =>
a2billing.php: [no_auth_dnid] => Array
a2billing.php: (
a2billing.php: [0] => 2400
a2billing.php: [1] => 2300
a2billing.php: )
a2billing.php:
a2billing.php: [number_try] => 3
a2billing.php: [force_callplan_id] =>
a2billing.php: [say_balance_after_auth] => 1
a2billing.php: [say_balance_after_call] =>
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] =>
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] =>
a2billing.php: [cid_askpincode_ifnot_callerid] => 1
a2billing.php: [cid_auto_assign_card_to_cid] => 1
a2billing.php: [cid_auto_create_card] =>
a2billing.php: [cid_auto_create_card_len] => 10
a2billing.php: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php: [cid_auto_create_card_credit] => 0
a2billing.php: [cid_auto_create_card_credit_limit] => 1000
a2billing.php: [cid_auto_create_card_tariffgroup] => 6
a2billing.php: [callerid_authentication_over_cardnumber] =>
a2billing.php: [sip_iax_friends] =>
a2billing.php: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php: [sip_iax_pstn_direct_call] =>
a2billing.php: [ivr_voucher] =>
a2billing.php: [ivr_voucher_prefix] => 8
a2billing.php: [jump_voucher_if_min_credit] =>
a2billing.php: [extracharge_did] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [extracharge_fee] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [international_prefixes] => Array
a2billing.php: (
a2billing.php: [0] => 011
a2billing.php: [1] => 00
a2billing.php: [2] => 09
a2billing.php: [3] => 1
a2billing.php: )
a2billing.php:
a2billing.php: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php: [dialcommand_param_sipiax_friend] => |60|HRgrL(3600000:61000:30000)
a2billing.php: [switchdialcommand] =>
a2billing.php: [failover_recursive_limit] => 2
a2billing.php: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php: [send_reminder] =>
a2billing.php: [record_call] =>
a2billing.php: [monitor_formatfile] => gsm
a2billing.php: [agi_force_currency] =>
a2billing.php: [currency_association] => Array
a2billing.php: (
a2billing.php: [0] => usd:dollars
a2billing.php: [1] => mxn:pesos
a2billing.php: [2] => eur:euros
a2billing.php: [3] => all:credit
a2billing.php: )
a2billing.php:
a2billing.php: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php: [logger_enable] => 1
a2billing.php: [log_file] => /tmp/a2billing.log
a2billing.php: [currency_association_internal] => Array
a2billing.php: (
a2billing.php: [usd] => dollars
a2billing.php: [mxn] => pesos
a2billing.php: [eur] => euros
a2billing.php: [all] => credit
a2billing.php: )
a2billing.php:
a2billing.php: [ivr_voucher_prefixe] => 8
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:76 - IDCONFIG : 1
a2billing.php: file:a2billing.php - line:77 - MODE : standard
a2billing.php: file:a2billing.php - line:89 - AGI Request:
a2billing.php: file:a2billing.php - line:90 - Array
a2billing.php: (
a2billing.php: [agi_request] => a2billing.php
a2billing.php: [agi_channel] => SIP/50-08462758
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1200718197.3
a2billing.php: [agi_callerid] => 50
a2billing.php: [agi_calleridname] => test Lab
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 225
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => local
a2billing.php: [agi_extension] => 225
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] =>
a2billing.php: )
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 50 ; SIP/50-08462758 ; 1200718197.3 ; ; 225
a2billing.php: file:a2billing.php - line:139 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-1)]
-- AGI Script a2billing.php completed, returning 0
trixbox1*CLI>


Top
 Profile  
 
 Post subject: Re: New Install. Cannot get response from a2billing system
PostPosted: Sat Jan 19, 2008 4:29 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
jonnydollarkev wrote:
a2billing.php: file:a2billing.php - line:139 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
a2billing.php: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
a2billing.php: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-1)]
-- AGI Script a2billing.php completed, returning 0
trixbox1*CLI>
Install the sounds too and you'll hear it prompting for your card number.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 4:45 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
sounds? where would i do that

Added after 5 minutes:

i can hear sounds when i make a call. Is there a separate component from asterisk for a2b?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 4:47 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
The generic installation guide and the Trixbox specific installation guide both cover this.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 5:58 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
ok im using 2.4 trixbox and latest download of a2b. my question is this. the trixbox specific install describes ...

cd ..
cd /addons/sounds/

mv * /var/lib/asterisk/sounds/


there is no addons folder in the root dir. so where are the a2b sound files assciated it?

Added after 10 minutes:

also i think its more than jus missing sound files. why becuase i observe the output from asterisk cli and it runs thru that out put in 2 seconds and even when i try to input a fake card no. it does not respond to it


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:07 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
jonnydollarkev wrote:
there is no addons folder in the root dir. so where are the a2b sound files assciated it?
The 'addons' folder is part of the A2B package. You'll find it in the folder from which you installed the rest of A2B. I believe that if you used the trixbox installer script linked from that page you'll find it under /usr/src somewhere.
Quote:
also i think its more than jus missing sound files. why becuase i observe the output from asterisk cli and it runs thru that out put in 2 seconds and even when i try to input a fake card no. it does not respond to it
Assuming that you are establishing some audio stream, that should be a different problem entirely. It indicates that you haven't got reliable DTMF transmission. You should consult voip-info wiki to learn about DTMF handling in Asterisk (and SIP). The preferred method is RFC2833. 'In-band' DTMF only works using G.711 and G.723, and even then it's horribly unreliable most of the time.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:22 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
ok so your suggesting setting up in the sip.conf default context

dmtf=RFC2833

is that right?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:27 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
That won't harm anything, but it will be overridden by the SIP friends' own DTMF settings.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:38 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
so this wont correct it?

[50]
type=friend
username=50
context=local
host=dynamic
dtmf=RFC2833


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:44 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
If you're happy to manually create a SIP peer for each client that will access your server, that will be fine.
You'll learn later, when you try to get A2B to automatically authenticate you, that it's best to leave defining the SIP/IAX peers to A2B itself.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 6:48 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
ok that didnt change my result. what else should i try

Added after 49 seconds:

and how do i have a2b define sip and iax peers?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 7:41 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
jonnydollarkev wrote:
ok that didnt change my result. what else should i try
You should learn about debugging Asterisk and/or SIP problems. This might be caused by settings in your User Agent too. Once you can satisfactorily receive DTMF in the Asterisk dialplan I'm sure you'll find it works flawlessly in A2B too.
Quote:
and how do i have a2b define sip and iax peers?
:yawn: Refer to the documentation available on the wiki. :sleep:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 10:59 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Is that a polite way of saying " RTFW !!!!! " cause I can't help you if you're not willing to help yourself. :D :D :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 11:05 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
He shoots. He scores! :roll:


Last edited by stavros on Sat Jan 19, 2008 11:21 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 19, 2008 11:14 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Honestly, why I made this comment is that all too often, there are newbies that ask those of us that have been around a while for help. Many have been only too happy to help, but the long timers I've seen over time get very frustrated when users ask questions that can simply be found by reading the manual or doing a simple "search" function. Then what happens is they stop answering questions such as crshman did. In order to keep this forum at the highest level we can, please try and find the answer with reading and searching (yes it will take longer, but you'll learn and be better for it) both the forum and google. I know it took me probably 6 weeks to get my first A2B install working as desired, but then I knew it and asterisk VERY WELL. If someone did it for me and what would I have? A working system that with the slightest change would break and I'd be screwed.

Please do your homework - READ READ READ, Google, and Search. Voip-Info.org, nerdvittles, trixbox.org, asterisk.org, freepbx.org, asterisk2billing.org ... all of these (if you are using them are great resources) OK - bitch mode off.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
VoIP Billing solution


All times are UTC


Who is online

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