How can I set up the Toll Free extra charge?

habreu

New Member
Joined
Jun 29, 2008
Messages
13
Reaction score
0
Hi, I am using a TDM400P to take calls from the PSTN and allow the caller to make calls from the US through the a2billing traditional prepaid phonecard application. I'm already able to charge the customers but I need to set up an extra charge if the customer is using my Toll Free number instead of my local number to get the connection. How is it usually done? I know it's probably a too basic question but I'm new to this. Any clue or help will be appreciated. Thank you in advance.
 
Do you mean to set up extracharge_did, extracharge_fee and extracharge_buyfee in a2billing.conf? I've just given values to the first two (my 1-800 and 0.02 respectively) but my Call Report shows the same "Sell" value (without the additional 0.02) in the "Call Logs". Did I set the wrong extracharge or is there anything else to be set up? Or the extra charge is being shown soewhere else, in some other report?
 
This is basically what I have done, with no success yet:

In a2billing.conf:

Code:
extracharge_did = 8585699800 
extracharge_fee = 0.02 
 
sip_iax_friends = NO
In extensions_custom.conf:

Code:
 [from-pstn-custom] 
exten => s,1,Answer 
exten => s,n,Set(CALLERID(DNID)=${EXTEN}) 
exten => s,n,Noop(The DNID is ${CALLERID(dnid)}) 
exten => s,n,Wait,2 
exten => s,n,DeadAGI,a2billing.php 
exten => s,n,Hangup
Please help. I just need the extracharge to work for my Toll Free Number users. Thank you in advance for any hint or help.
 
For those with the same problem and setup, this made it work for me:

in extensions_custom.conf :
Code:
[from-pstn-custom]
exten => s,1,Answer
exten => s,n,Goto(from-pstn-custom-a2billing,${CALLERID(num)},1)

[from-pstn-custom-a2billing]
exten => _X.,1,Wait,2
exten => _X.,n,DeadAGI,a2billing.php
exten => _X.,n,Hangup
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top