HomeReseller BenefitsReseller ToolsReseller SolutionsInternational RatesProductsHelpReseller LoginLearn More
Clique aqui para visitor nosso site em Português Contact Us Español
World Leader in Turn-Key VoIP Solutions VarPhonex helps you start your own VoIP Business for just $199
Help

 

Welcome
Common Topics
Knowledgebase
Configuration Guides
Glossary
Contact Us

 


Learn More

Configure Your Own Local Access Number with Trixbox

Note : Before you start using this configuration guide, make sure you have configured your Trixbox following our online configuration guide located at:  http://www.varphonex.com/trixbox.shtml.

You can easily configure your own VarPhonex local access numbers using Trixbox. Your customers will call your local PSTN numbers which will be connected to a Digium PCI PSTN card and redirected to our calling card platform (8600).

The card we recommend for this deployment is the Digium TDM400P card with four fxo ports. However, if you just want to configure your Trixbox server for testing or just personal use you can use the Wildcard X101P or X100P card with one fxo port.

 

X101P or X100P Card Installation

To configure this card with Trixbox use the zaptel card auto-config utility to setup the zaptel driver.

  1. Install the card in the PCI slot. One of the advantages of this type of cards is that it does not need a power connector in order to operate.
  2. Logon to Centos with the root account
  3. Run the following commands:

[root@asterisk1]# genzaptelconf

[root@asterisk1]# ztcfg

[root@asterisk1]# zttool

The results of zttool should show your zap card as configured.

You can also run the command zap show channels:

asterisk1*CLI> zap show channels

Chan Extension Context Language MusicOnHold

pseudo from-pstn en

1 from-pstn en

If this information is shown, then the card has been configured correctly.

 

TDM400P Card Installation

You can find additional documentation and specifications at: http://www.digium.com/en/products/hardware/tdm400p.php

NOTE : Make sure to order the card with 4 fxo ports since they also have them with 2 fxo and 2 fxs ports.

Start by installing the card into a free PCI slot. Make certain that you connect a power cable into the card. FXO cards require power in order to power the telephone line or extension. The TDM400P range of cards use the standard 4 pin hard drive power connector, if you don't have a free power connector you can always buy the equivalent of a double adaptor. Close the PC up and turn the power on.

Note: the LED's adjacent to each port will not come on until the the device has been properly configured.

In Trixbox Version 2.7 you need to configure some options manually since the card will not work as soon as it is installed.

Logon to Centos and execute the following commands:

[root@asterisk1]# cd /usr/src/kernels/2.6.9-34.EL-i686/include/linux

[root@asterisk1]# mv spinlock.h spinlock.h.old

[root@asterisk1]# wget http://nerdvittles.com/aah27/spinlock.h

OR if that doesn't work.....

[root@asterisk1]# wget http://liquid-fire.us/spinlock.h

[root@asterisk1]# cd /etc/udev

[root@asterisk1]# cp ./permissions.d/zaptel.permissions /usr/src/kernels/2.6.9-34.EL-i686/include/linux

[root@asterisk1]# cp ./rules.d/zaptel.rules /usr/src/kernels/2.6.9-34.EL-i686/include/linux

[root@asterisk1]# cd /usr/src/zaptel

[root@asterisk1]# make linux26 && make install

[root@asterisk1]# shutdown -r now

if zaptel drivers have been identified after a reboot:

[root@asterisk1]# genzaptelconf

[root@asterisk1]# ztcfg

[root@asterisk1]# zttool

The results of zttool should show your zap card as configured

 

Edit Zapata-auto.conf file ( if you installed a X101P or X100P Card)

Use a PC on your network that has a web browser and connect to your Trixbox using HTTP://YourTrixboxIPaddress

  1. Click on Asterisk Management Portal and then click setup.
  2. Click Maintenance.
  3. Config Edit
  4. Click on zapata-auto.conf
  5. You will see the following configuration:

    callerid=asreceived

    ; Span 1: WCFXO/0 "Wildcard X101P Board 1" RED

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 1

    context=from-pstn

    group=0

    channel => 1

    ; Span 2: ZTDUMMY/1 "ZTDUMMY/1 1"

  6. Change the context for every channel from context=from-pstn to context=varphonex-ccg

    callerid=asreceived

    ; Span 1: WCFXO/0 "Wildcard X101P Board 1" RED

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 1

    context=varphonex-ccg

    group=0

    channel => 1

    ; Span 2: ZTDUMMY/1 "ZTDUMMY/1 1"

Edit Zapata-auto.conf file (If you installed a TDM400P card)

  1. Use a PC on your network that has a web browser and connect to your Trixbox using HTTP://YourTrixboxIPaddress
  2. Click on Asterisk Management Portal and then click setup.
  3. Click Maintenance.
  4. Config Edit
  5. Click on zapata-auto.conf
  6. You will see the following configuration:

    callerid=asreceived

    ; Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 1

    context=from-pstn

    group=0

    channel => 1

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 2

    context=from-pstn

    group=0

    channel => 2

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 3

    context=from-pstn

    group=0

    channel => 3

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 4

    context=from-pstn

    group=0

    channel => 4

    ; Span 2: ZTDUMMY/1 "ZTDUMMY/1 1"

  7. Change the context for every channel from context=from-pstn to context=varphonex-ccg

    callerid=asreceived

    ; Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 1

    context=varphonex-ccg

    group=0

    channel => 1

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 2

    context=varphonex-ccg

    group=0

    channel => 2

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 3

    context=varphonex-ccg

    group=0

    channel => 3

    signalling=fxs_ks

    ; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 4

    context=varphonex-ccg

    group=0

    channel => 4

    ; Span 2: ZTDUMMY/1 "ZTDUMMY/1 1"

  8. Click on the UPDATE button.
  9. Click the Re-Read configs ( this is necessary in order for the changes to take effect)

Edit extensions_custom.conf file

  1. Use a PC on your network that has a web browser and connect to your Trixbox using HTTP://YourTrixboxIPaddress
  2. Select System Administration.
  3. Select Config Edit.
  4. Click on extensions_custom.conf.
  5. Scroll down to the end of the page and add the following text:

    [varphonex-ccg]

    include => ext-local-custom

    include => from-pstn

    exten => s,1,Answer

    exten => s,2,Wait,2

    exten => s,3,Dial(SIP/8600@varphonex,20,tr)

  6. Click on the UPDATE button.
  7. Click the Re-Read configs (this is necessary in order for the changes to take effect).

Note: This will redirect all calls answered by your Trixbox to VarPhonex local access number platform assuming that you have already configured your Trixbox following our configuration guide located at: http://www.varphonex.com/trixbox.shtml.

 

 

Notice regarding support:

In an effort to provide the best possible support, we offer the following options to Trixbox/Asterisk users:

  1. Unlimited, free use of our knowledgebase.
  2. Configuration guides that can assist most customers with the most common Trixbox/Asterisk configurations.

These are the only support options that we provide at this time.

   Copyright 2003 - 2017 VarPhonex.com WebPhone  |  SIP Termination  |  SIP Trunking  |  Join Now  |  Learn More  |  Site Map
Custom Solutions  |  Blog   |   Careers   |  About VarPhonex   |  News  |  e911  |  Legal

VarPhonex offers the industry leading VoIP Reseller Program.  We let you sell VoIP in your brand name including Internet phone service, SIP termination, SIP Trunking, International DID numbers and unlimited VoIP plans.  We also offer prepaid phone service using our voice over IP system and an analog telephone adapter, softphone, PBX, Asterisk, Trixbox or other VoIP device which can use a SIP Trunk.  VarPhonex white label VoIP solutions are designed so you can private label our home phone service, business phone service, call shops service and phone service for cyber cafes.  VarPhonex is proud to support Internet telephony equipment including Sipura, Linksys, Cisco, Digium, Grandstream and more.  We offer low cost A to Z rates and provide International VoIP termination along with DID phone numbers for private label resale.
Partner Solutions | About Us | Custom Shopping Cart | Support | Reseller Login | Request Pricing | IP Phones and Devices
Free Phone
| Internet Telephony Devices | Calling Plans | Web Phone | Pay as you go calling | VoIP Phone Card | RingByName