|
This guide provides simple steps how to set up local Call Shop operation using 2-8 channel Quintum analogue PSTN-to-VoIP gateway. You should have basic knowledge of connecting the cables, powering and logging into the gateway using telnet. For those who are not familiar, please first read Quick start guides provided in Quintum website.
Getting call through In first simple scenario we want our users to be connected with analogue telephones via FXS ports.
Make sure Quintum is connected to Internet and accessible via telnet. Take a note of its IP address. Start with setting up your phone lines. Attach phone to FXS port 1. We recomend to use Tenor Configuration Manager to configure your Quintum Tenor gateway. The software is free and can be downloaded from Quintum Technical Support website. In this guide I will use 4-port analogue tenor gateway AS400. It is also possible to do configuration from CLI via Telnet. launch the configuration software and connect to Tenor. Please note that software uses port 8080, so if you have NAT or Firewall between your PC and Tenor, please make sure ports are accessible and/or properly forwarded. Cancel the Configuration wizard and use "Advanced Explore" from left menu tree. A good practice is always to start with setting proper system time. Usually it is forgotten and causes lot of confusion and questions about lost/missing CDRs and other problems. Go to Tools > Tenor Time and set the current time.  It is also good idea to use time synchronizatio n to keep your Tenor time in sync at all times. Next go to "System-Wide Configuration > Dial Plan". We will ensure that Tenor does not add restrictions on digit length as well as no numbers need to be stripped from or added to dialed number:  We are going to use FXS lines (phones connected to Tenor) to make our outgoin calls. For this we need to make relays which determine FXS/FXO ports assignments to switch from default FXO to FXS. Go to "Phone (FXS) / Line(FXO) Configuration" and check all lines which you intend to use as FXS lines. You should hear relays clicking on submit and port LEDs stop blinking on Tenor.     In our scenario we are interested to set individual ANIs for each FXS line. it will help us to authorize and bill our callers based on line number (ANI). To be able to do this, we need one Line Circuit Routing Group (LCRG) and one Hunt LDN Directory per each FXS line. One Hunt LDN Directory is predefined already. Go to "Circuit Configuration > Line Routing Configuration > Hunt LDN Directory" and choose "pub1". Edit it to assign ANI to first FXS port: 
Add more Hunt LDN Directories for your other ports. right click on "Hunt LDN Directory" in menu tree and choose "Add". 
When asked if you would like to associtiate this LDN Directory with LCRG choose "No" because we have only one LCRG for now. Add ANI in same way as for "pub1". (different number of course). Now let's define LCRG.One LCRG is predefined already, lets edit it for our needs. Go to "Circuit Configuration > Line Routing Configuration > Line Circuit Routing Groups" and select predefined LCRG "phone". Click "Bypass/hunt" tab and make sure "Hunt LDN directory" is in selected window (on righ side). 
Similarly add additional LCRGs, and associate one Hunt LDN directory per each LCRG. At this point line part should be done. If you pick up the phone, you should hear dial tone. Now lets do VoIP routing part. Go to "VoIP Configuration > VoIP Routing" and select predefined "Static Route 1". Add IP address of carrier, and number prefixes you will be sending to this carrier. In the example below all calls (designated by star * ) will go to same carrier. 
Thats it's. If you have done everything correctly and your upstream carrier is accepting calls from your IP address, you should be able to make call. AccountingIf we got so far, lets get call detail recorded. For this we will use free hosted billing account from DataTechLabs. use signup link on top left of the page: 
Go through signup, and enter your Tenor IP address. Do remember shared secret as it will be needed when you set the Tenor. 
confirm your email and you will receive 2 emails. First one gives access to Members area where you have your service settings, support tickets and other account related stuff. The second email has Billing login link with administrator email. There will be also IP address of Radius server which we need right now. Lets go back to Tenor and set up accounting. Go to "System-Wide Configuration > Radius Servers > Radius-UserServer". Type shared secret (same as at DataTechLabs signup screen), choose Accounting Type "2 start + 2stop messages", Update Accounting "on Connect Only". Type Primary Server Ip address (see email from DataTechLabs). 
Accounting is done. Make test call and you should see Call entry in DataTechLabs interface under Calls > Traffic Log 
Note that call is neither billed or rated, it is just log entry. That's because there are no accounts defined in Billing System and it does not know which account to bill. Let's do some basic setup of the billing. First let's prepare rate table. Go to "Rates" and find table named "Rate1". It has 10 rows which satisfy all possible dialing destinations in the world. You can edit it to adjust your needs or upload fresh table from your spreadsheet program. 
Create an account, add some credit to it and assign rate table "Rate1" to it. Now, when you make a call, you should see Call record in the CDR tab of the account. Making it prepaidLast step is to add prepaid functionality. Go to "Batch Operations" and adjust number of PINs, amount, expiry and other settings of your prepaid cards. Click "Generate". the newly generated batch can be found under "Account Groups". By default all accounts are disabled, and you need to Edit the group to enable them. Now back to Quintum. Find Line Circuit routing Group and click "IVR" tab. Choose IVR type: Type2: Prepaid Calling Card. The only mandatory setting is to choose at least one language. 
Pick the PIN from the batch you generated and give it a try... You should hear the "enter Your Card number" prompt. The next is obvious.
|