Koozali.org: home of the SME Server

Hardware and Bandwidth Advice

Offline del

  • *
  • 765
  • +0/-0
Hardware and Bandwidth Advice
« on: December 13, 2007, 08:04:53 PM »
Hi All,

Can anyone advise me of the best hardware for SAIL/Asterisk to be able to run 15-20 VoIP lines and 25 extensions? Also what sort of bandwidth is required on the DSL? Would having a dedicated cable internet connection for the SAIL?/Asterisk server be able to work or would I need a T1? Last thing, who is the best VoIP provider in the US for the lines? Any advice is appreciated. Thanks.
Del

If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Hardware and Bandwidth Advice
« Reply #1 on: December 14, 2007, 02:20:15 AM »
You'll need G729 to do this Del.  G729 uses about 31K in each direction.  So 20 calls is going to need around 600K of raw uplift (say about twice that for the real world) so you will need a line speed with about 1200K uplift.  That's a lot, and potentially a big headache if it doesn't work as advertised.  If you want my honest opinion, I would do this over a regular T1 using LCR.  It won't cost much more and it's guaranteed to run and run well.  At these levels I would still choose TDM every time unless I was siting the box in a collo where they can give you a 100Meg uncontended over fibre.  Now that's bandwidth.  :-)

Best

S

 


Offline del

  • *
  • 765
  • +0/-0
Re: Hardware and Bandwidth Advice
« Reply #2 on: December 17, 2007, 04:39:54 PM »
Hi Selintra,

Thanks for the answers, without sounding too stupid (I don't want to look and sound stupid :grin:) but what do I need to connect a T1 line and is it a straight forward configuration or will I have to edit any config files? Also what does LCR mean? Sorry about the lack of T1 terminology knowledge. Thanks again for your time.

Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Hardware and Bandwidth Advice
« Reply #3 on: December 17, 2007, 05:00:54 PM »
HI Del,

You will need a PRI card.  I would recommend the Digium TE207P (5.0Volt) or TE212(3.0Volt) for traditional PCI based servers or the TE220B for PCI Express based set-ups.

These cards all come with Octasic echo cancellation and they are absolutley the mutt's nuts.  They work and sound great.  SARK will recognise and configure the 207 and 212 straight out of the crate.  For the 220B we will need to send you a small update file.

LCR stands for Least Cost Routing it means using a carrier, or carriers who can give you low prices on traditional TDM based telephony.  They effectively route the call over whichever carrier is cheapest at the time the call is made.  I don't know how common LCR is in the States but it is popular here in the UK and can save you a lot of money on your calls.

 

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Hardware and Bandwidth Advice
« Reply #4 on: December 19, 2007, 04:40:23 PM »
Hi Selintra,

I have installed sail-2.2.1-565 and use a sip-provider for outbound calls.
Now i like to buy a pci-card for inbound calls, technology is pots (austria).
The card should be easy to configure (auto) and i will use it only for private calls.

Any hint would be appreciated

regards
fpausp
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Hardware and Bandwidth Advice
« Reply #5 on: December 19, 2007, 05:20:54 PM »
TDM400

Not the cheapest but works as advertised in all countries.

Kind Regards

S

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Hardware and Bandwidth Advice
« Reply #6 on: December 19, 2007, 08:49:21 PM »
Hi,

Thanks for your rapid answer, is that OK for analog in/outbound:

Digium TDM01B - TDM400P + X100M        ~105,- EURO




Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Hardware and Bandwidth Advice
« Reply #7 on: December 20, 2007, 12:56:27 PM »
Yes the TDM01B is fine.  This is a single FXO unit and you connect it directly to the wall phone socket.

You then need to make a small change to the asterisk starter routine to ensure that the card has the correct impedances for your country.  Open /etc/init.d/sark....

At. or around line 116 you should fine the following...

Code: [Select]
        if [ $WCTDM = 'YES' ]; then
#          COUNTRY=`/sbin/e-smith/db selintra  getprop global IMPEDANCE`
            /sbin/modprobe wctdm #opermode=$COUNTRY
        fi


Change this for your country (austria) as follows

Code: [Select]
        if [ $WCTDM = 'YES' ]; then
#          COUNTRY=`/sbin/e-smith/db selintra  getprop global IMPEDANCE`
            /sbin/modprobe wctdm opermode=AUSTRIA
        fi


save the code back and stop and start asterisk with...

Code: [Select]
/etc/init.d/sark stop
/etc/init.d/sark start


What this change does is to ensure that your card is running the correct impedances for your country.  I've never seen the full supported country list published anywhere, so for your delight and edification here it is...

Code: [Select]
{ "FCC", 0, 0, 0, 1, 0, 0x3, 0, 0, }, /* US, Canada */
{ "TBR21", 0, 0, 0, 0, 1, 0x3, 0, 0x2, 0x7e6c, 0x023a, },  /* Austria, Belgium, Denmark, Finland, France, Germany,
   Greece, Iceland, Ireland, Italy, Luxembourg, Netherlands,
   Norway, Portugal, Spain, Sweden, Switzerland, and UK */
{ "ARGENTINA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "AUSTRALIA", 1, 0, 0, 0, 0, 0, 0x3, 0x3, },
{ "AUSTRIA", 0, 1, 0, 0, 1, 0x3, 0, 0x3, },
{ "BAHRAIN", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "BELGIUM", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "BRAZIL", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "BULGARIA", 0, 0, 0, 0, 1, 0x3, 0x0, 0x3, },
{ "CANADA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "CHILE", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "CHINA", 0, 0, 0, 0, 0, 0, 0x3, 0xf, },
{ "COLUMBIA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "CROATIA", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "CYRPUS", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "CZECH", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "DENMARK", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "ECUADOR", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "EGYPT", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "ELSALVADOR", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "FINLAND", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "FRANCE", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "GERMANY", 0, 1, 0, 0, 1, 0x3, 0, 0x3, },
{ "GREECE", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "GUAM", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "HONGKONG", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "HUNGARY", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "ICELAND", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "INDIA", 0, 0, 0, 0, 0, 0x3, 0, 0x4, },
{ "INDONESIA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "IRELAND", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "ISRAEL", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "ITALY", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "JAPAN", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "JORDAN", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "KAZAKHSTAN", 0, 0, 0, 0, 0, 0x3, 0, },
{ "KUWAIT", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "LATVIA", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "LEBANON", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "LUXEMBOURG", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "MACAO", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "MALAYSIA", 0, 0, 0, 0, 0, 0, 0x3, 0, }, /* Current loop >= 20ma */
{ "MALTA", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "MEXICO", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "MOROCCO", 0, 0, 0, 0, 1, 0x3, 0, 0x2, },
{ "NETHERLANDS", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "NEWZEALAND", 0, 0, 0, 0, 0, 0x3, 0, 0x4, },
{ "NIGERIA", 0, 0, 0, 0, 0x1, 0x3, 0, 0x2, },
{ "NORWAY", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "OMAN", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "PAKISTAN", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "PERU", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "PHILIPPINES", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "POLAND", 0, 0, 1, 1, 0, 0x3, 0, 0, },
{ "PORTUGAL", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "ROMANIA", 0, 0, 0, 0, 0, 3, 0, 0, },
{ "RUSSIA", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "SAUDIARABIA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "SINGAPORE", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "SLOVAKIA", 0, 0, 0, 0, 0, 0x3, 0, 0x3, },
{ "SLOVENIA", 0, 0, 0, 0, 0, 0x3, 0, 0x2, },
{ "SOUTHAFRICA", 1, 0, 1, 0, 0, 0x3, 0, 0x3, },
{ "SOUTHKOREA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "SPAIN", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "SWEDEN", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "SWITZERLAND", 0, 1, 0, 0, 1, 0x3, 0, 0x2, },
{ "SYRIA", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "TAIWAN", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "THAILAND", 0, 0, 0, 0, 0, 0, 0x3, 0, },
{ "UAE", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "UK", 0, 1, 0, 0, 1, 0x3, 0, 0x5, },
{ "USA", 0, 0, 0, 0, 0, 0x3, 0, 0, },
{ "YEMEN", 0, 0, 0, 0, 0, 0x3, 0, 0, },
};

Now, as you can see, there is a setting TBR21 which claims to work for most european countries.  I've never tried it so I don't know.

Anyway...  There you go.

Kind Regards

S
« Last Edit: December 20, 2007, 12:58:39 PM by selintra »

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Hardware and Bandwidth Advice
« Reply #8 on: January 08, 2008, 09:07:46 PM »
Hi,

I got my card today but when i probe the card i get the following:

Found following card...

00:06.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
   Subsystem: Unknown device b1d9:0003
   Flags: bus master, medium devsel, latency 32, IRQ 177
   I/O ports at d800 [size=256]
   Memory at dfffe000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [40] Power Management version 2

Requesting Load of wctdm ...

Loaded wctdm...

No Telephony Boards found - check admin-error log for probe failures...

Signalling asterisk daemon to load ZTDUMMY for timing purposes



Should that card be automatically identified ?


regards
fpausp
Viribus unitis

Offline gery

  • *
  • 15
  • +0/-0
Re: Hardware and Bandwidth Advice
« Reply #9 on: January 08, 2008, 11:18:18 PM »
Hello fpausp,

I also use the Digium TDM01B in my server an I had the same problem.
When I put it in another PCI slot it was recognissed correctly.
I assume that it shared the IRQ with my VGA adapter or NIC.

Greetings from Salzburg
gery




Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Hardware and Bandwidth Advice
« Reply #10 on: January 10, 2008, 12:31:34 AM »
HI guys,

Your problem occurs in one specific situation.  You are running the web component without formally starting asterisk first.   

You must do /etc/init.d/asterisk start (for 1.2) or /etc/init.d/sark start (for 1.4) and let it finish the startup before you do the probe.  You especially must do this if you have just installed SARK/SAIL. 

It has to do with the fact that PCI probe does not wait for udev, whereas the start routine does.

So, make sure asterisk is properly started and then do your probe again.  You should be fine.

Kind Regards

S