Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Sep 21, 2017 8:55 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: problem tarifation a2billing terminate cause
PostPosted: Thu Jan 07, 2010 12:36 am 
Offline

Joined: Wed Jan 06, 2010 8:30 pm
Posts: 2
Location: Brasil
hello, I'm experiencing the following problem, my many calls are being met, but when I go to call menu and report cdr report, calling it the cause terminate field blank and field sell 0.00. That this place briefly and followed all the steps of instação correctly, I thank everyone's attention

Am using asterisk 1.4.10.1 with a2billing 1.3.3


Eduardo de Sousa
mailto msn - [email protected]

:oops:


a2billing.php|1: [no_auth_dnid] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 2400
a2billing.php|1: [1] => 2300
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [number_try] => 1
a2billing.php|1: [force_callplan_id] =>
a2billing.php|1: [say_balance_after_auth] => 1
a2billing.php|1: [say_balance_after_call] =>
a2billing.php|1: [say_rateinitial] =>
a2billing.php|1: [say_timetocall] =>
a2billing.php|1: [auto_setcallerid] => 1
a2billing.php|1: [force_callerid] =>
a2billing.php|1: [cid_sanitize] =>
a2billing.php|1: [cid_enable] =>
a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1: [cid_auto_create_card] =>
a2billing.php|1: [cid_auto_create_card_len] => 10
a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1: [cid_auto_create_card_credit] => 0
a2billing.php|1: [cid_auto_create_card_credit_limit] => 10
a2billing.php|1: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1: [callerid_authentication_over_cardnumber] =>
a2billing.php|1: [sip_iax_friends] =>
a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1: [sip_iax_pstn_direct_call] =>
a2billing.php|1: [ivr_voucher] =>
a2billing.php|1: [ivr_voucher_prefix] => 8
a2billing.php|1: [jump_voucher_if_min_credit] =>
a2billing.php|1: [extracharge_did] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_fee] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [international_prefixes] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 011
a2billing.php|1: [1] => 00
a2billing.php|1: [2] => 09
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [dialcommand_param] => |60|HRgL(%timeout%:61000:30000)
a2billing.php|1: [dialcommand_param_sipiax_friend] => |60|HRgrL(3600000:61 000:30000)
a2billing.php|1: [switchdialcommand] =>
a2billing.php|1: [failover_recursive_limit] => 4
a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1: [send_reminder] => 1
a2billing.php|1: [record_call] =>
a2billing.php|1: [monitor_formatfile] => gsm
a2billing.php|1: [agi_force_currency] =>
a2billing.php|1: [currency_association] => Array
a2billing.php|1: (
a2billing.php|1: [0] => usd:dollars
a2billing.php|1: [1] => mxn:pesos
a2billing.php|1: [2] => eur:euros
a2billing.php|1: [3] => all:credit
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [file_conf_enter_destination] => pm-invalid-option
a2billing.php|1: [file_conf_enter_menulang] => pm-invalid-option
a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1: [logger_enable] => 1
a2billing.php|1: [log_file] => /tmp/a2billing.log
a2billing.php|1: [extracharge_buyfee] => Array
a2billing.php|1: (
a2billing.php|1: [0] => Array
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [currency_association_internal] => Array
a2billing.php|1: (
a2billing.php|1: [usd] => dollars
a2billing.php|1: [mxn] => pesos
a2billing.php|1: [eur] => euros
a2billing.php|1: [all] => credit
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [ivr_voucher_prefixe] => 8
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: file:a2billing.php - line:78 - IDCONFIG : 1
a2billing.php|1: file:a2billing.php - line:79 - MODE : standard
a2billing.php|1: file:a2billing.php - line:91 - AGI Request:
a2billing.php|1: file:a2billing.php - line:92 - Array
a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => DGV/62
a2billing.php|1: [agi_language] => pt_BR
a2billing.php|1: [agi_type] => DGV
a2billing.php|1: [agi_uniqueid] => 1262820795.89
a2billing.php|1: [agi_callerid] => 03288473374
a2billing.php|1: [agi_calleridname] => unknown
a2billing.php|1: [agi_callingpres] => 0
a2billing.php|1: [agi_callingani2] => 0
a2billing.php|1: [agi_callington] => 0
a2billing.php|1: [agi_callingtns] => 0
a2billing.php|1: [agi_dnid] => unknown
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => a2billing
a2billing.php|1: [agi_extension] => 3206867
a2billing.php|1: [agi_priority] => 1
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] => 6867
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: file:Class.A2Billing.php - line:621 - get_agi_request_parame ter = 03288473374 ; DGV/62 ; 1262820795.89 ; 6867 ; 3206867
a2billing.php|1: file:a2billing.php - line:145 - [NO ANSWER CALL]
a2billing.php|1: file:Class.A2Billing.php - line:1640 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterpre fix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, U NIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.curre ncy, 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 tar iff=cc_tariffgroup.id WHERE username='6867'
a2billing.php|1: file:Class.A2Billing.php - line:1714 - [SET CHANNEL(language) en]
a2billing.php|1: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : U PDATE cc_card SET inuse=inuse+1 WHERE username='6867']
a2billing.php|1: file:Class.A2Billing.php - line:1969 - [A2Billing] SAY BALANC E : 14.65080
a2billing.php|1:
a2billing.php|1: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
[Jan 6 21:33:29] WARNING[25812]: file.c:563 ast_openstream_full: File prepaid-c ents does not exist in any format
a2billing.php|1: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|1: file:Class.A2Billing.php - line:1406 - [REQUESTED SetCallerID : 03288473374]
a2billing.php|1: file:Class.A2Billing.php - line:1417 - [EXEC SetCallerID : 03 288473374]
a2billing.php|1: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|1: file:a2billing.php - line:173 - [CREDIT : 14.65080][CREDIT MI N_CREDIT_2CALL : 0]
a2billing.php|1: file:Class.A2Billing.php - line:676 - 1 && && 7&& 0
a2billing.php|1: file:Class.A2Billing.php - line:701 - DESTINATION ::> 3206867
a2billing.php|1: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINAT ION ::> 3206867
a2billing.php|1: file:Class.A2Billing.php - line:741 - OK - RESFINDRATE::> 1
a2billing.php|1: file:Class.A2Billing.php - line:763 - RES_ALL_CALCULTIMEOUT : :> 1
a2billing.php|1: file:Class.A2Billing.php - line:780 - TIMEOUT::> 8790480 : m inutes=146508 - seconds=0
a2billing.php|1: file:Class.RateEngine.php - line:1012 - app_callingcard: Dial ing 'SIP/6867|60|HRgL(2147483647:61000:30000)' with timeout of '8790480'.
a2billing.php|1:
a2billing.php|1: file:Class.RateEngine.php - line:1037 - app_callingcard: CIDG ROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (SIP/6867|60|HRgL(21474 83647:61000:30000))
-- Limit Data for this call:
> timelimit = 2147483647
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
-- Called 062343xxxxx
-- SIP/6867-0283b710 is ringing
-- SIP/6867-0283b710 answered DGV/62
(a2billing,1,062343xxxxx)


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Thu Jan 07, 2010 3:24 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
What do you use to call A2Billing, AGI / DeadAGI ?
can you show the part of ur dialplan?

You might consider to upgrade to 1.4.4.1

Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Thu Jan 07, 2010 6:24 pm 
Offline

Joined: Wed Jan 06, 2010 8:30 pm
Posts: 2
Location: Brasil
; configuration for the AGI, different configuration can be defined, ie "agi-conf1", "agi-conf2", etc...
; the groupid parameter will define which process_sections to use. Usage : DeadAGI(a2billing.php|%groupid%)
; by default agi-conf1 is used
[agi-conf1]

; the debug level
; 0=none, 1=low, 2=normal, 3=all
debug = 2

; Asterisk Version Information
; 1_1,1_2,1_4 By Default it will take 1_2 or higher
asterisk_version = 1_4

; Manage the answer on the call
answer_call = NO ;YES

; Play audio - this will disable all stream file but not the Get Data
; for wholesale ensure that the authentication works and than number_try = 1
play_audio = NO

; play the goodbye message when the user has finished.
say_goodbye = NO

; enable the menu to choose the language
; press 1 for English, pulsa 2 para el español, Pressez 3 pour Français
play_menulanguage = NO


; force the use of a language, if you dont want to use it leave the option empty
; Values : ES, EN, FR, etc... (according to the audio you have installed)
force_language = pt_BR

; Introduction prompt : to specify an additional prompt to play at the beginning of the application
intro_prompt =

; Minimum amount of credit to use the application
min_credit_2call = 0

; this is the minimum duration in seconds of a call in order to be billed
; any call with a length less than min_duration_2bill will have a 0 cost
; useful not to charge callers for system errors when a call was answered but it actually didn't connect
min_duration_2bill = ;0

; if user doesn't have enough credit to call a destination, prompt him to enter another cardnumber
notenoughcredit_cardnumber = YES

; if notenoughcredit_cardnumber = YES then assign the CallerID to the new cardnumber
notenoughcredit_assign_newcardnumber_cid = YES


; if YES it will use the DNID and try to dial out, without asking for the phonenumber to call
; value : YES, NO
use_dnid = YES

; list the dnid on which you want to avoid the use of the previous option "use_dnid"
no_auth_dnid = 2400,2300

; number of times the user can dial different number
number_try = 1

; this will force to select a specific call plan by the Rate Engine
force_callplan_id =

; Play the balance to the user after the authentication (values : yes - no)
say_balance_after_auth = NO

; Play the balance to the user after the call (values : yes - no)
say_balance_after_call = NO

; Play the initial cost of the route (values : yes - no)
say_rateinitial = NO

; Play the amount of time that the user can call (values : yes - no)
say_timetocall = NO


; enable the setup of the callerID number before the outbound is made, by default the user callerID value will be use
auto_setcallerid = YES

; If auto_setcallerid is enabled, the value of force_callerid will be set as CallerID
force_callerid =

; If force_callerid is not set, then the following option ensures that CID is set to one of the card's configured caller IDs or blank if none available.
; NO - disable this feature, caller ID can be anything.
; CID - Caller ID must be one of the customers caller IDs
; DID - Caller ID must be one of the customers DID nos.
; BOTH - Caller ID must be one of the above two items.
cid_sanitize = NO


; enable the callerid authentication
; if this option is active the CC system will check the CID of caller
cid_enable = no

; if the CID does not exist, then the caller will be prompt to enter his cardnumber
cid_askpincode_ifnot_callerid = YES

; if the callerID authentication is enable and the authentication fails then the user will be prompt to enter his cardnumber
; this option will bound the cardnumber entered to the current callerID so that next call will be directly authenticate
cid_auto_assign_card_to_cid = YES

; if the callerID is captured on a2billing, this option will create automatically a new card and add the callerID to it
cid_auto_create_card = NO

; set the length of the card that will be auto create (ie, 10)
cid_auto_create_card_len = 10

; If cid_auto_create_card has been set to YES, the following options will define with which configuration we will create the card
;
; billing type of the new card
; ( value : POSTPAY or PREPAY)
cid_auto_create_card_typepaid = POSTPAY

; amount of credit of the new card
cid_auto_create_card_credit = 0

; if postpay, define the credit limit for the card
cid_auto_create_card_credit_limit = 10

; the tariffgroup to use for the new card (this is the ID that you can find on the admin web interface)
cid_auto_create_card_tariffgroup = 6

; to check callerID over the cardnumber authentication (to guard against spoofing)
callerid_authentication_over_cardnumber = NO

; enable the option to call sip/iax friend for free (values : YES - NO)
sip_iax_friends = no

; if SIP_IAX_FRIENDS is active, you can define a prefix for the dialed digits to call a pstn number
; values : number
sip_iax_pstn_direct_call_prefix = 555

; this will enable a prompt to enter your destination number.
; if number start by sip_iax_pstn_direct_call_prefix we do directly a sip iax call, if not we do a normal call
sip_iax_pstn_direct_call = NO

; enable the option to refill card with voucher in IVR (values : YES - NO)
ivr_voucher = NO

; if ivr_voucher is active, you can define a prefix for the voucher number to refill your card
; values : number - don't forget to change prepaid-refill_card_with_voucher audio accordingly
ivr_voucher_prefix = 8

; When the user credit are below the minimum credit to call min_credit
; jump directly to the voucher IVR menu (values: YES - NO)
jump_voucher_if_min_credit = NO

; Extracharge DIDs, multiple numbers and fees must be separated by comma
; extracharge_did = 1800XXXXXXX,1888XXXXXXX
extracharge_did =
;extracharge_fee = 0.02,0.03
extracharge_fee =

; List the prefixes that will be stripped off if the call plan requires it
international_prefixes = 011,00,09

; More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial
; 30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
; H: Allow the caller to hang up by dialing *
; r: Generate a ringing tone for the calling party
; g: When the called party hangs up, exit to execute more commands in the current context. (new in 1.4)
; i: Asterisk will ignore any forwarding (302 Redirect) requests received. Essential for DID usage to prevent fraud. (new in 1.4) Useful if you are ringing a group of people and one person has set their phone to forwarded direct to voicemail on their cell or something which normally prevents any of the other phones from ringing.
; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
; m: Provide Music on Hold to the calling party until the called channel answers.
; L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms)
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate!

;dialcommand_param = "|60|HRrgL(%timeout%:61000:30000)"

dialcommand_param = "|60|HRgrL(%timeout%:61000:30000)"

; by default (3600000 = 1HOUR MAX CALL)
dialcommand_param_sipiax_friend = "|60|HRgrL(3600000:61000:30000)"

; Define the order to make the outbound call
; YES -> SIP/[email protected]_ip - NO SIP/gateway_ip/dialedphonenumber
; Both should work exactly the same but i experimented one case when gateway was supporting [email protected]_ip
; So in case of trouble, try it out
switchdialcommand = NO

; failover recursive search - define how many time we want to authorize the research of the failover trunk when a call fails (value : 0 - 20)
failover_recursive_limit = 4 ;2

; For free calls, limit the duration: amount in seconds
maxtime_tocall_negatif_free_route = 5400

; Send a reminder email to the user when they are under min_credit_2call
send_reminder = NO

; enable to monitor the call (to record all the conversations)
; value : YES - NO
record_call = NO

; format of the recorded monitor file
monitor_formatfile = gsm

; Force to play the balance to the caller in a predefined currency, to use the currency set for by the customer leave this field empty
agi_force_currency =

; CURRENCY SECTION
; Define all the audio (without file extensions) that you want to play according to currency (use , to separate, ie "usd:prepaid-dollar,mxn:pesos,eur:Euro,all:credit")
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit

; Please enter the file name you want to play when we prompt the calling party to enter the destination number
; file_conf_enter_destination = prepaid-enter-number-u-calling-1-or-011
file_conf_enter_destination = pm-invalid-option ;prepaid-enter-dest

; Please enter the file name you want to play when we prompt the calling party to choose the prefered language
; file_conf_enter_menulang = prepaid-menulang
file_conf_enter_menulang = pm-invalid-option ;prepaid-menulang2

; Define if you want to bill the 1st leg on callback even if the call is not connected to the destination
callback_bill_1stleg_ifc

[a2billing]
exten => _X.,1,AGI(a2billing.php|1)
exten => _X.,n,Wait(1)
exten => _X.,n,Hangup

Given preference in version 1.3 because it is a version that meets my needs

Yours,


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Tue Aug 10, 2010 9:30 am 
Offline

Joined: Sat Mar 21, 2009 5:16 pm
Posts: 14
Hello,
This problem is actual for me. No more post about that.
Using:
exten => _X.,1,DeadAGI(a2billing.php,3)
exten => _X.,2,Hangup
and
exten => _X.,1,AGI(a2billing.php,3)
exten => _X.,2,Hangup

part of logs:
VERBOSE[26492] logger.c: -- Called webcalldirect/XXXXXXX
VERBOSE[26492] logger.c: -- SIP/webcalldirect-000000b3 is making progress passing it to SIP/0003-000000b2
VERBOSE[26492] logger.c: -- SIP/webcalldirect-000000b3 answered SIP/0003-000000b2
NOTICE[26492] res_agi.c: FONALITY: Hangup detected, AGI terminates.
VERBOSE[26492] logger.c: == Spawn extension (a2billing_no_plan, XXXXXXX, 1) exited non-zero on 'SIP/0003-000000b2'
-----end of logs----------

Think problem in FONALITY. Trixbox is 2.8, A2B is 1.7.1. Any advice?

Thanks.


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Tue Aug 10, 2010 5:05 pm 
Offline

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

Test using asterisk only, removing the complexity of A2Billing, and also check you are sending the right number, possibly 10 or 11 digits for a USA number, and that the codec is acceptable.

Joe


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Wed Aug 11, 2010 8:05 am 
Offline

Joined: Sat Mar 21, 2009 5:16 pm
Posts: 14
Hello Joe,
Thanks for replay.
I have the next result: testing using X-Lite softphone,
1. I calling, opponent answer and then he hang up - everything is OK.
2. I calling, opponent answer and then I hang up - my actual problem.

Using the same rate card and other parameters. Trixbox 2.6 using with a2b 1.3 and everything is ok.
Any advice or I really need to removing the complexity of A2Billing?

Thanks.


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Thu Aug 19, 2010 11:12 am 
Offline

Joined: Sat Mar 21, 2009 5:16 pm
Posts: 14
I have the next investigation:
Reinstalled completly system, installed a2b
Problem was found immediately after updating next packages:

asterisk16-core-1.6.0.26-1_trixbox.i386
asterisk16-voicemail-1.6.0.26-1_trixbox.i386
asterisk16-sqlite3-1.6.0.26-1_trixbox.i386
asterisk16-speex-1.6.0.26-1_trixbox.i386
asterisk16-pgsql-1.6.0.26-1_trixbox.i386
asterisk16-resample-1.6.0.26-1_trixbox.i386
asterisk16-curl-1.6.0.26-1_trixbox.i386
asterisk16-ogg-1.6.0.26-1_trixbox.i386
asterisk16-odbc-1.6.0.26-1_trixbox.i386
asterisk16-alsa-1.6.0.26-1_trixbox.i386
asterisk16-snmp-1.6.0.26-1_trixbox.i386
asterisk16-tds-1.6.0.26-1_trixbox.i386
asterisk16-dahdi-1.6.0.26-1_trixbox.i386
asterisk16-doc-1.6.0.26-1_trixbox.i386
asterisk16-fax-1.6.0.26-1_trixbox.i386
asterisk16-misdn-1.6.0.26-1_trixbox.i386
asterisk16-1.6.0.26-1_trixbox.i386
asterisk16-configs-1.6.0.26-1_trixbox.i386
asterisk16-addons-core-1.6.0.4-2_trixbox.i386
asterisk16-addons-bluetooth-1.6.0.4-2_trixbox.i386
asterisk16-addons-ooh323-1.6.0.4-2_trixbox.i386
asterisk16-addons-mysql-1.6.0.4-2_trixbox.i386
asterisk16-addons-1.6.0.4-2_trixbox.i386

Anybody know how to downgrade packages? Before upgrade used asterisk16-1.6.0.10-1_trixbox.i386 package. Any help?
I don't want reinstall system again :)


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Tue Feb 22, 2011 10:52 am 
Offline

Joined: Tue Aug 19, 2008 6:02 am
Posts: 1
Is there any update on this issue? I am facing the same issue.


Top
 Profile  
 
 Post subject: Re: problem tarifation a2billing terminate cause
PostPosted: Tue Feb 22, 2011 10:57 am 
Offline

Joined: Sat Mar 21, 2009 5:16 pm
Posts: 14
maulik.shah wrote:
Is there any update on this issue? I am facing the same issue.


I did not found solution. At this time using asterisk without GUI.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

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