Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 4:53 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sun Jan 20, 2008 7:19 pm 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
stavros, and krzykat

Firstly thank you for your time to assist. While I understand and agree with the you're feelings you two express about my newbie post I can assure you both I made it not for my hand to be held, nor to have the project done for me while i sit back and sip lemonade. I'm a network support tech and i personally know the anguish one can feel when it seems people just wont take the time to read or even think about the problem. Still i remind myself I had to start somewhere with what i know. And those that helped make me the professional I am now has giving me a chance to help others so that they can achieve their goals and in turn maybe do the same for another.

I started learning asterisk, tribox, and now a2billing for 2 months and I'm extremely drawn to its possibilities. I think this forum is a very good thing you have here as a source for help and development of the technology. If your losing moderators because they may feel the grade of the forum is deminishing or they simply cannot take another 'newbie' question. Then help me and the others that are enthusiasts like yourselves to replace those no longer there.

I ask for no spoon feeding, only to be pointed in the right direction. and im sure others only ask the same.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 7:21 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Good attitude and YES - that's what we need. More people to learn and pass on what they learn and build a bigger and stronger community.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 2:14 am 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
just to continue with this original post. I followed this particular link for my install.

http://www.sureteq.com/asterisk/a2bv1.2.3install.htm

the particulas of the server
A2billing Ver:
sterisk2Billing - Tag 1.3.1 (Yellowjacket) - Release : December 2007

Trixbox Ver:
v2.4.0 ©2007

Now that setup at sureteq has some different folder references from this version but aside from that i was able to get to the point where i can log into the web interface. I have created a rate card, tariff groups, and customers via the web interface. i see those customers and its parameters in a conf file called additional_a2billing_sip.conf. I then setup an xlite phone and a extension in exttensions.conf with the following info.

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

when i dial it i now hear only the balance of that customer. Nothing else. Im uncertain if this what is expected to happen becuase much of what i read on the net and this forum tells me i should hear a voice asking for the user PIN number.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 2:45 am 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
OK - so now when you call in from a registered SIP user, it prompts you with that user's balance, and then asks you for # to dial, or tries to connect call or ??


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 3:27 am 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
all i hear is '20 dollars' for instance. thats if i register a sip phone with the customer info i created in a2billing interface cuz i did two customers thru that
one with 20 dollars another with 50.

so its doing something in relation to the info in mysql. but im not sure if im on the right track. u mentioned i may have the sounds files for a2billing missing from the correct dir

Added after 34 minutes:

here is the out put from the sip phone registered with the number 1043522453 generated by a2billing


Verbosity is at least 6
-- Remote UNIX connection
-- Registered SIP '1043522453' at 192.168.1.19 port 6182 expires 3600
trixbox1*CLI>
trixbox1*CLI>
trixbox1*CLI>
-- Executing [225@a2billing:1] Answer("SIP/1043522453-084df280", "") in new stack
-- Executing [225@a2billing:2] Wait("SIP/1043522453-084df280", "2") in new stack
-- Executing [225@a2billing:3] DeadAGI("SIP/1043522453-084df280", "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/1043522453-084df280
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1200971879.40
a2billing.php: [agi_callerid] => 896022471449494
a2billing.php: [agi_calleridname] => Mario Fleming
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] => a2billing
a2billing.php: [agi_extension] => 225
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] => 1043522453
a2billing.php: )
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 896022471449494 ; SIP/1043522453-084df280 ; 1200971879.40 ; 1043522453 ; 225
a2billing.php: file:a2billing.php - line:139 - [ANSWER CALL]
a2billing.php: 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='1043522453'
a2billing.php: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='1043522453']
a2billing.php: file:Class.A2Billing.php - line:1950 - [A2Billing] SAY BALANCE : 20
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1143 - [CURRENCY : USD]
-- <SIP/1043522453-084df280> Playing 'digits/20' (language 'en')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)

a2billing.php: file:Class.A2Billing.php - line:1399 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:1405 - [REQUESTED SetCallerID : 896022471449494]
a2billing.php: file:Class.A2Billing.php - line:1416 - [EXEC SetCallerID : 896022471449494]
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - && && 3&& 0
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 3&& 1
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 3&& 2
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='1043522453']
-- AGI Script a2billing.php completed, returning 0
-- Executing [h@a2billing:1] Dial("SIP/1043522453-084df280", "SIP/h") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [h@a2billing:2] Congestion("SIP/1043522453-084df280", "") in new stack
== Spawn extension (a2billing, h, 2) exited non-zero on 'SIP/1043522453-084df280'
trixbox1*CLI>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 4:50 am 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Did you copy the voice files?

http://wiki.asterisk2billing.org/index. ... unds_files


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 6:50 am 
Offline

Joined: Sat Jan 19, 2008 3:42 pm
Posts: 22
yes at last.

that was it. I used that site u gave me kat as a ref for where to find those sound files. used webmin to find them all and i copied everything in that english folder and dumped in that asterisk sound folder.

thanks for the help


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Hosted Voice Broadcast


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