Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 2:42 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How to bill Leg A and Leg B in different rate
PostPosted: Wed Feb 10, 2010 5:54 pm 
Offline

Joined: Tue Jan 06, 2009 11:04 am
Posts: 36
Location: Bangkok, Thailand
All,
If Leg A and Leg B are in same country, Thailand. Is it possible if I bill they in differrent rate? For example 0.15/min for Leg A and 0.50/min for Leg B. How?

Thanks


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Wed Feb 10, 2010 6:09 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
This is not natively supported, but you may look at force callplan in the agi and see if that works for you

Joe


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Sun Feb 14, 2010 5:43 pm 
Offline

Joined: Tue Jan 06, 2009 11:04 am
Posts: 36
Location: Bangkok, Thailand
Thanks Jroper,
I'll try this and update the result if it work.


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Sun Feb 21, 2010 9:40 pm 
Offline

Joined: Mon Sep 28, 2009 9:49 pm
Posts: 58
If you are still having issues and are using a newish version of a2billing let me know. As long as you are happy with the callplan for the LEG-A been set in the extension when you call the AGI you can pass in the number of the call plan you want to use for the first leg.

sorry Joe you are most likely talking about the same thing but was no sure. I know that there are no samples of it but i can send one if needed as i use it on my system.

Chris


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Sat May 15, 2010 7:45 am 
Offline

Joined: Tue Jan 06, 2009 11:04 am
Posts: 36
Location: Bangkok, Thailand
Hello Chris
I tried for a long time to do that, billing leg a and b in different rate. But I still can't. Can you tell me how to do that?

I use A2B 1.7, CentOS 5.4, Php 5.2
Regard,
Nuiz


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Sat May 15, 2010 10:28 pm 
Offline

Joined: Mon Sep 28, 2009 9:49 pm
Posts: 58
If you look at the API code you will there are a few extra commands you can pass that are not shown in any samples. One of those is a parameter that I added. It allows you to set the callplan number you want to use for the first leg (leg-A). This is a complete override for anything set against the user. i have moved away from A2B as my solution now so sorry that i can't tell you the exact parameter number it is but i think there is an extra 1-2 parameters you can set when you call the a2b api from asterisk and this is one of them.


Top
 Profile  
 
 Post subject: Re: How to bill Leg A and Leg B in different rate
PostPosted: Fri May 21, 2010 6:48 pm 
Offline

Joined: Tue Jan 06, 2009 11:04 am
Posts: 36
Location: Bangkok, Thailand
Thanks Joe and seer_tenedos,

It's work now. I use the fifth agrument when I call a2billing.php. The Fifth argument is Tariff ID that you need to bill Leg A. Here is my dialplan.

[a2billing-cid-callback]
exten => _X.,1,AGI(a2billing.php,4,cid-callback,,,5)
exten => _X.,n,Hangup

4 is agi-conf4
5 is ID of Call Plan which include Rateplan and Rate I want to charge Leg A.

My system is Asterisk 1.6.2.7, A2Billing 1.7.1, PHP 5.1, CentOS 5.4

Regards,
Nuiz (Asterisk + A2billing In Thailand)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 
Predictive Dialer


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group