Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 12:59 pm
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: Urgent callback problem
PostPosted: Tue Aug 28, 2007 3:35 am 
Offline

Joined: Tue Aug 28, 2007 3:17 am
Posts: 6
I'm running elastix 0.8.5 with asterisk 1.4.10 and a2billing 1.3

my problem is:

when I make a web callback every thing goes OK, but if the caller hang up the call before the called party, only the first leg of call back is billed in the CDR, and the other call no.and if the caller wait untill the called hangup, every thing is OK.

== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'myasterisk' logged on from 127.0.0.1
-- Executing [18003829980@a2billing-callback:1] AGI("SIP/lowratevoip-0a21e0f0", "a2billing.php|1|callback") in new stack
== Manager 'myasterisk' logged off from 127.0.0.1
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1|callback: A2Billing AGI internal configuration:
a2billing.php|1|callback: Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [debug] => 1
a2billing.php|1|callback: [asterisk_version] => 1_4
a2billing.php|1|callback: [answer_call] => 1
a2billing.php|1|callback: [play_audio] => 1
a2billing.php|1|callback: [say_goodbye] =>
a2billing.php|1|callback: [play_menulanguage] =>
a2billing.php|1|callback: [force_language] =>
a2billing.php|1|callback: [intro_prompt] =>
a2billing.php|1|callback: [min_credit_2call] => 0.5
a2billing.php|1|callback: [min_duration_2bill] => 0
a2billing.php|1|callback: [notenoughcredit_cardnumber] => 1
a2billing.php|1|callback: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|1|callback: [use_dnid] => 1
a2billing.php|1|callback: [no_auth_dnid] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => 2400
a2billing.php|1|callback: [1] => 2300
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [number_try] => 3
a2billing.php|1|callback: [force_callplan_id] =>
a2billing.php|1|callback: [say_balance_after_auth] => 1
a2billing.php|1|callback: [say_balance_after_call] =>
a2billing.php|1|callback: [say_rateinitial] =>
a2billing.php|1|callback: [say_timetocall] => 1
a2billing.php|1|callback: [auto_setcallerid] => 1
a2billing.php|1|callback: [force_callerid] =>
a2billing.php|1|callback: [cid_sanitize] =>
a2billing.php|1|callback: [cid_enable] =>
a2billing.php|1|callback: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1|callback: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1|callback: [cid_auto_create_card] =>
a2billing.php|1|callback: [cid_auto_create_card_len] => 10
a2billing.php|1|callback: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1|callback: [cid_auto_create_card_credit] => 0
a2billing.php|1|callback: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1|callback: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1|callback: [callerid_authentication_over_cardnumber] =>
a2billing.php|1|callback: [sip_iax_friends] =>
a2billing.php|1|callback: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1|callback: [sip_iax_pstn_direct_call] =>
a2billing.php|1|callback: [ivr_voucher] =>
a2billing.php|1|callback: [ivr_voucher_prefix] => 8
a2billing.php|1|callback: [jump_voucher_if_min_credit] =>
a2billing.php|1|callback: [extracharge_did] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] =>
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [extracharge_fee] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] =>
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php|1|callback: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
a2billing.php|1|callback: [switchdialcommand] =>
a2billing.php|1|callback: [failover_recursive_limit] => 2
a2billing.php|1|callback: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1|callback: [send_reminder] =>
a2billing.php|1|callback: [record_call] =>
a2billing.php|1|callback: [monitor_formatfile] => gsm
a2billing.php|1|callback: [agi_force_currency] =>
a2billing.php|1|callback: [currency_association] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => usd:dollars
a2billing.php|1|callback: [1] => mxn:pesos
a2billing.php|1|callback: [2] => eur:euros
a2billing.php|1|callback: [3] => all:credit
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1|callback: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1|callback: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1|callback: [logger_enable] => 1
a2billing.php|1|callback: [log_file] => /tmp/a2billing.log
a2billing.php|1|callback: [currency_association_internal] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [usd] => dollars
a2billing.php|1|callback: [mxn] => pesos
a2billing.php|1|callback: [eur] => euros
a2billing.php|1|callback: [all] => credit
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [ivr_voucher_prefixe] => 8
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:a2billing.php - line:75 - IDCONFIG : 1
a2billing.php|1|callback: file:a2billing.php - line:76 - MODE : callback
a2billing.php|1|callback: file:a2billing.php - line:88 - AGI Request:
a2billing.php|1|callback: file:a2billing.php - line:89 - Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [agi_request] => a2billing.php
a2billing.php|1|callback: [agi_channel] => SIP/lowratevoip-0a21e0f0
a2billing.php|1|callback: [agi_language] => en
a2billing.php|1|callback: [agi_type] => SIP
a2billing.php|1|callback: [agi_uniqueid] => 1188268599.153
a2billing.php|1|callback: [agi_callerid] => 123456
a2billing.php|1|callback: [agi_calleridname] => unknown
a2billing.php|1|callback: [agi_callingpres] => 0
a2billing.php|1|callback: [agi_callingani2] => 0
a2billing.php|1|callback: [agi_callington] => 0
a2billing.php|1|callback: [agi_callingtns] => 0
a2billing.php|1|callback: [agi_dnid] => unknown
a2billing.php|1|callback: [agi_rdnis] => unknown
a2billing.php|1|callback: [agi_context] => a2billing-callback
a2billing.php|1|callback: [agi_extension] => 18003829980
a2billing.php|1|callback: [agi_priority] => 1
a2billing.php|1|callback: [agi_enhanced] => 0.0
a2billing.php|1|callback: [agi_accountcode] => 2398828142
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 123456 ; SIP/lowratevoip-0a21e0f0 ; 1188268599.153 ; 2398828142 ; 18003829980
a2billing.php|1|callback: file:a2billing.php - line:679 - [CALLBACK]:[MODE : CALLBACK]
a2billing.php|1|callback: file:a2billing.php - line:683 - [CALLBACK]:[ANSWER CALL]
-- Playing 'prepaid-callback_intro' (escape_digits=#) (sample_offset 0)
a2billing.php|1|callback: file:a2billing.php - line:731 - [CALLBACK]:[GET VARIABLE : CALLED=12062796235 | CALLING=18003829980 | MODE= | TARIFF= | CBID=78537-qotyiqi | LEG=2398828142]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1668 - 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='2398828142'
a2billing.php|1|callback: file:Class.A2Billing.php - line:1742 - [SET CHANNEL(language) en]
a2billing.php|1|callback: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2398828142']
a2billing.php|1|callback: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1433 - [REQUESTED SetCallerID : 123456]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1444 - [EXEC SetCallerID : 123456]
a2billing.php|1|callback: file:a2billing.php - line:759 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=6]:[ORIG_CREDIT : 9.25790 - CUR_CREDIT - : 4.62895 - CREDIT MIN_CREDIT_2CALL : 0.5]
a2billing.php|1|callback: file:Class.A2Billing.php - line:656 - 1 && && 11&& 0
a2billing.php|1|callback: file:Class.A2Billing.php - line:681 - DESTINATION ::> 18003829980
a2billing.php|1|callback: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> 18003829980
a2billing.php|1|callback: file:Class.A2Billing.php - line:721 - OK - RESFINDRATE::> 1
a2billing.php|1|callback: file:Class.A2Billing.php - line:743 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php|1|callback: file:Class.A2Billing.php - line:760 - TIMEOUT::> 25200 : minutes=420 - seconds=0
a2billing.php|1|callback: file:Class.RateEngine.php - line:960 - app_callingcard: Dialing 'sip/lowratevoip/18003829980|60|HRrL(25200000:61000:30000)' with timeout of '25200'.
a2billing.php|1|callback:
a2billing.php|1|callback: file:Class.RateEngine.php - line:985 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (sip/lowratevoip/18003829980|60|HRrL(25200000:61000:30000))
-- Limit Data for this call:
> timelimit = 25200000
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
-- Called lowratevoip/18003829980
-- SIP/lowratevoip-0a20fd80 is making progress passing it to SIP/lowratevoip-0a21e0f0
-- SIP/lowratevoip-0a20fd80 answered SIP/lowratevoip-0a21e0f0
-- fixed jitterbuffer created on channel SIP/lowratevoip-0a20fd80
-- fixed jitterbuffer created on channel SIP/lowratevoip-0a21e0f0
-- fixed jitterbuffer destroyed on channel SIP/lowratevoip-0a20fd80
== Spawn extension (a2billing-callback, 18003829980, 1) exited non-zero on 'SIP/lowratevoip-0a21e0f0'



I hope to find solution for this problem

thankyou


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 11:36 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Sounds very much like you are lacking PHP pcntl support. Check you have pcntl installed with 'php -m'.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 4:57 pm 
Offline

Joined: Tue Aug 28, 2007 3:17 am
Posts: 6
php-pcntl is working perfectly

I will pull my hair

by the way I upgraded asterisk to 1.4.11 and the problem still exist


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 7:06 am 
Offline

Joined: Tue Aug 28, 2007 3:17 am
Posts: 6
I reinstalled the OS with all the modules and every thing works perfectly now


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 11:10 pm 
Offline

Joined: Thu Aug 30, 2007 10:45 pm
Posts: 1
I have the same problem on debian 4.0_64+* 1.4.11 + a2billing 1.3 + freepbx

with the webcallback is the caller first drop the line the billing is only on the first leg because the second leg is 0


Top
 Profile  
 
 Post subject: a2billing callback configuration
PostPosted: Fri Aug 31, 2007 4:07 am 
Offline

Joined: Fri Aug 31, 2007 4:01 am
Posts: 7
I am pretty new to this a2billing and I have been trying for the last 3 days getting the call back to work.

Here's the callback section in my a2billing.conf
=====================
; CALL-BACK
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = a2billing-callback

; this is the Extension to redirect the call when the web callback is returned
extension = 1000
=====================

What exactly should I put in the "a2billing-callback" and extension "1000"?

Thank you


Top
 Profile  
 
 Post subject: Re: a2billing callback configuration
PostPosted: Fri Aug 31, 2007 4:38 pm 
Offline

Joined: Fri Oct 27, 2006 6:17 pm
Posts: 161
hruan wrote:
I am pretty new to this a2billing and I have been trying for the last 3 days getting the call back to work.

Here's the callback section in my a2billing.conf
=====================
; CALL-BACK
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = a2billing-callback

; this is the Extension to redirect the call when the web callback is returned
extension = 1000
=====================

What exactly should I put in the "a2billing-callback" and extension "1000"?

Thank you



I'want to know that too ! i'm testing and i'not have idea what need to be done ... i'need to get in to a2billing.php, today i'have todo more testing.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 2:56 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Following the callback installation document in the Addons/Docs folder helped me immensely, but it still took me a few days to become comfortable with how it's all meant to hang together. Here's what I know.

The contexts [a2billing-cid-callback] and [a2billing-all-callback] are for your customers dialing in. The [a2billling-callback] context is where calls from the callback daemon itself are going to be handled.

Stop looking for the significance of extension 1000; there is none. By default the [a2billing-callback] context answers any dialstring, so it doesn't matter what callback dials. 1000 is as good as any.

For a real world example let's first study my extensions.conf:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CLI CALL BACK TRIGGERS
exten => 441234567890,1,Goto(a2billing-cid-callback,${EXTEN},1)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; FIXED DESTINATION (ANI) CALL BACK TRIGGERS
; card no. 012345679
exten => 441234567891,1,Set(CALLERID(num)=441112223334)
exten => 441234567891,n,Goto(a2billing-cid-callback,${EXTEN},1)

; card no. 9876543210
exten => 441234567892,1,Set(CALLERID(num)=441113334445)
exten => 441234567892,n,Goto(a2billing-cid-callback,${EXTEN},1)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; VOUCHER TOP UP LINE
exten => 441234567898,1,Goto(a2billing-voucher,${EXTEN},1)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; answer DIDs here into AGI CONF 2
exten => 441234567899,1,Goto(a2billing-did,${EXTEN},1)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; answer everything else as one-stage-dial into AGI CONF 1
exten => _X.,1,Answer
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

exten => s,1,Hangup
exten => s,n,Hangup


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; A2B standard contexts
[a2billing-did]
exten => _X.,1,Set(CALLERID(num)=${IF($[${LEN(${CALLERIDNUM})} = 10]?44:)}${CALLERIDNUM})
exten => _X.,n,DeadAGI(a2billing.php|2|did)
exten => _X.,n,Hangup

[a2billing-callback]
exten => _X.,1,Answer
exten => _X.,n,DeadAGI(a2billing.php|1|callback)
exten => _X.,n,Hangup

[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=${IF($[${LEN(${CALLERIDNUM})} = 10]?44:)}${CALLERIDNUM})
exten => _X.,n,DeadAGI(a2billing.php|3|cid-callback|) ;last parameter is the callback area code
exten => _X.,n,Wait(60)

[a2billing-all-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=${IF($[${LEN(${CALLERIDNUM})} = 10]?44:)}${CALLERIDNUM})
exten => _X.,n,DeadAGI(a2billing.php|4|all-callback|44) ;last parameter is the callback area code
exten => _X.,n,Wait(60)

[a2billing-voucher]
exten => _X.,1,Set(CALLERID(num)=${IF($[${LEN(${CALLERIDNUM})} = 10]?44:)}${CALLERIDNUM})
exten => _X.,n,DeadAGI(a2billing.php|1|voucher)
exten => _X.,n,Hangup

[a2billing-predictivedialer]
exten => _X.,1,DeadAGI(a2billing.php|1|predictivedialer)
exten => _X.,n,Hangup


You can see each time I invoke a2billing.php I am passing a different number to it. These reference different sections of a2billing.conf so that we can make each type of call behave slightly differently.

agi-conf1 is for normal calls from access numbers and SIP clients. It answers the call, offers 3 attempts, all the usual stuff.

agi-conf2 is for DIDs, and therefore answer_call is NO, number_try=1, sip_iax_friends is NO (otherwise extracharge is ignored!), jump_voucher_if_min_credit is NO, cid_enable is NO. Mostly common sense settings.

agi-conf3&4 are for callback triggers and are set pretty much the same as agi-conf2 except cid_enable is YES for obvious reasons.


Initially I had a problem with CLI callback as my carrier omits both the country code and national prefix for calls originating within my country. You can see how I match for CLI only 10 digits long and prefix with 44 to form a valid dialstring.

If you're going to use all-callback (ie will ring back any number) please use a special rate table to forbid it calling back premium rate numbers. As has been stated many times previously on this forum ITSPs suffer vast amounts of fraud.

As the code ships, using CLI callback will prompt you to authenticate again on the callback leg. To remove this extra check look around line 500 of a2billing.php and uncomment the following:
Code:
$callerid=$A2B->CallerID;


You might also be interested in this thread

I hope this clears up a few things for you.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 01, 2007 10:19 pm 
Offline

Joined: Fri Oct 27, 2006 6:17 pm
Posts: 161
WOW, thx !!!! a real example !!! very nice stavros , you make my day more happy :)

thx again


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 5:03 am 
Offline

Joined: Fri Aug 31, 2007 4:01 am
Posts: 7
Thanks for the info. I installed the callback-deamon and started it

service a2billing-callback-daemon start
Starting a2billing-callback-daemon: [ OK ]

But when I query the status it always shows "stop"
service a2billing-callback-daemon status
a2billing-callback-daemon is stopped

And here is the only entry in the logfile /var/log/asterisk/a2billing-daemon-callback.log:
[2007-09-05 14:57:24][DAEMON START FORK]


Then I submited a web callback from the a2billing customer interface it says:
Your callback request has been queued correctly!

But no calls were made and in the a2billing admin interface I can see the callback entry always in "pending" state.

What could have been wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 11:56 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Does this help?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 12:57 pm 
Offline

Joined: Fri Aug 31, 2007 4:01 am
Posts: 7
No luck even runining it directly /var/lib/asterisk/a2billing/callback-daemon/a2billing-callback-daemon

It just came straight back to me, no errors etc and "ps aux" doesn't show any deamon running. Log file still repeat the same entry as before. I also changed the "DEBUG=1" in the daemon script but still nothing coming back when run it directly. My perl version is 5.8.6.

In the scrip arounf line 414 I put some debug message in:

print "hello1\n";
&daemonize($path_daemon);
print "hello2\n";

"hello1" prints but "hello2" doesn't.

Any more hints?

Added after 22 minutes:

So far I track it down to this line in the script in the "sub daemonize" around line 123:

open STDIN, '/dev/null' or die "Can't read /dev/null: $!";

The error is: "Inappropriate ioctl for device".

But I am still not sure how to fix that ...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 1:09 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Hmmm... you've got me really puzzled with this one. The callback daemon is well error-checked so it's odd that it is failing silently.

Apart from changing the first line to read "'#!/usr/bin/perl -wall" I really don't know what else to suggest, sorry.

Ah... in which case comment out that line entirely. After a quick glance at the code I can't see anywhere it might be needing to read from STDIN, so it should be safe. No doubt some Perl hacker will come along and correct me.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 1:24 pm 
Offline

Joined: Fri Aug 31, 2007 4:01 am
Posts: 7
Looks like that part of the code looks ok: Please see the perl daemon example here: http://www.webreference.com/perl/tutorial/9/3.html

I run the above sample code seperately and it prints out the "Hello..." ok as a daemon process. So my perl interpreter is ok I guess.

hmm... may need more time looking into this callback daemon script....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 24, 2007 4:34 am 
Offline

Joined: Fri Aug 31, 2007 4:01 am
Posts: 7
Fixed the problem. The error was in the "/var/lib/asterisk/a2billing/callback-daemon/a2billing-callback-daemon" I actually put in all the actual values in
the "DB PARAMETER" section . e.g
I changed "my $dbname = $cfg->val('database', 'dbname');"
to:
"my $dbname = $cfg->val('database', 'mya2billing');"
I should have left them unchanged.


I got ANI callback to work(mostly) but still one problem is if I set up a Post-paid account and if the callerid is a free call, I never got the call back from a2billing.
e.g. My callerid is 61261006234 and the tarrif setup to call this number is free (0 cost) and a2billing won't call back on that number.

Here's the output:
a2billing.php|2|cid-callback|61: file:Class.A2Billing.php - line:1744 - [SET CHANNEL(language) en]
a2billing.php|2|cid-callback|61: file:Class.A2Billing.php - line:636 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='6399859093']
a2billing.php|2|cid-callback|61: file:a2billing.php - line:415 - [TRY : callingcard_ivr_authenticate] cia_res=0
a2billing.php|2|cid-callback|61: file:a2billing.php - line:430 - [destination: - 61261006234]
a2billing.php|2|cid-callback|61: file:a2billing.php - line:434 - [resfindrate: - 0]
a2billing.php|2|cid-callback|61: file:Class.A2Billing.php - line:636 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='6399859093']
-- AGI Script a2billing.php completed, returning 0

But if I add the callerid of 61261006234 to a pre-paid account I got it to work:
a2billing.php|2|cid-callback|61: file:Class.A2Billing.php - line:1744 - [SET CHANNEL(language) en]
a2billing.php|2|cid-callback|61: file:Class.A2Billing.php - line:636 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2809703675']
a2billing.php|2|cid-callback|61: file:a2billing.php - line:415 - [TRY : callingcard_ivr_authenticate] cia_res=0
a2billing.php|2|cid-callback|61: file:a2billing.php - line:430 - [destination: - 61261006234]
a2billing.php|2|cid-callback|61: file:a2billing.php - line:434 - [resfindrate: - 1]

I am just not sure if this is to do with the pre-pay/postpaid problem or because of how the cost of call is setup in the tarrif group.

Any ideas?


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


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