Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 7:31 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: balance check - calling card customers
PostPosted: Sun Nov 24, 2013 4:23 pm 
Offline

Joined: Thu Apr 05, 2012 8:12 am
Posts: 48
Hello,

I need to setup a balance check for my calling card customers (this server is used by calling card customers only). When they call in via an access ddi a2b answers the call (agi-conf1: answer_call = YES, max_call_call_2_did = 3600, say_timetocall = YES).

When they dial 200# currently I am routing the call back to asterisk (DESTINATION in INBOUND DDI: local/666@voip-balance-check). The voip-balance-check looks like this:
exten => 666,1,Noop(zero balance)
exten => 666,n,Goto(*0,1)
exten => *0,1,DeadAgi(a2billing.php,10)
exten => *0,n,Hangup

I am sending the call to agi-conf10 which should play the balance.

Issues:

1. After dialing 200# I am getting announcement - "you have 60 minutes" (this is due to say_timetocall = YES setting) before the call is sent to agi-conf10. Is there any way to disable (or ignore the max_call_call_2_did = 3600 db setting) the announcement for calls to local DDIs?

2. The agi-conf10 does not play the balance, instead it asks to enter the dest number.
Here I could ask someone to write an agi script to check and play the balance but I am not sure how to remove the announcement in point 1.

Thanks.

Marcin


Top
 Profile  
 
 Post subject: Re: balance check - calling card customers
PostPosted: Tue Dec 03, 2013 10:46 am 
Offline

Joined: Thu Apr 05, 2012 8:12 am
Posts: 48
Let me answer my own question (yet again... :-))

I made a very small amendment in the /var/lib/asterisk/agi-bin/lib/Class.A2Billing.php file:

line 912

from if ($this->destination=='*0') {

to if ($this->destination=='200') {

I also removed the inbound DDI (200) from the DDI list as it has higher routing priority than BALANCE CHECK 200

I hope that helps

Marcin


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


All times are UTC


Who is online

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