Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Emulate a T1 environment using two asterisk servers and cross over cable

Posted on 2007-12-06
5
Medium Priority
?
1,093 Views
Last Modified: 2013-11-12
Hello Gurus!  I have a question about Asterisk.

We are planning on doing some development work using Asterisk server.  When completted the server  will use T1 lines coming into digium cards in the asterisk server.  My question is how can I simulate a T1 environment in my test environment for my devlelopers without having to actually bring in a T1?  T1's are expensive and I'd like to simulate the environment if possible.

What has been proposed is we set up two asterisk servers, each with a single port T1 card, and connect them via cross over cable.  Server A will be the development server from which all calls will be initiated.   Server A to initate a call out from it's T1 card and using the cross over cable Server B will recive the call and emulate the T1.  So server B is acting like the phone company.   We are only testing outbound calls from Server A to ServerB.

This seems doable in theory but has anybody done it practice?  Can anybody offer me a dial plan or some steps that will allow me accomplish this? I'm an asterisk newbie but follow directions well.   My hope is this will allow the developers an environment that will simulate production so when we do roll the server into production and hook it up to an actual T1 there wont be any surprises.

Not interested in VOIP suggestions just how to get the cross over to work and emulate a T1 environment.  
0
Comment
Question by:codefaze
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:grant300
ID: 20434803
All you need to do is create an RJ45 T1 crossover cable.  Then you can connect the two T1 cards back-to-back.

WARNING:  The RJ45 T1 Crossover cable is NOT the same as an Ethernet crossover cable.  The Digium card user manual has the pinouts which will allow you to create the cable.

Regards,
Bill
0
 
LVL 19

Accepted Solution

by:
feptias earned 1500 total points
ID: 20437354
I have done this for E1 with the Digium card. (Probably the same model of Digium card, just with the jumpers in a different position for T1 or E1). My E1 cross-over leads have the following pin connections, but you should check in case T1 uses different pins:
Pin 1 to pin 4;   Pin 2 to pin 5;   Pin 4 to pin 1;   Pin 5 to pin 2

You must set the signalling parameter correctly in zapata.conf. Server B emulates the Network/CO so you should set signalling=pri_net. The development server, Server A, will need signalling=pri_cpe. There are other settings in zapata.conf that are important too, such as switchtype, but I don't know what you should use in your location. Check this link:
http://www.voip-info.org/wiki/index.php?page=Asterisk+config+zapata.conf

Although you say you don't want VoIP suggestions, you might consider configuring an IP phone/softphone to register with Server B and directing all your test calls to it in the dial plan. This will allow you to answer the calls, check that they are playing the expected announcement and also allow you to check what caller ID is being sent from server A.
0
 

Author Closing Comment

by:codefaze
ID: 31413328
Thank you, this helps.  Do you have an example of an actual dial plan?
0
 
LVL 19

Expert Comment

by:feptias
ID: 20448068
The dial plans - i.e. contexts in the file /etc/asterisk/extensions.conf - will depend on what you are using to initiate outbound calls from Server A and answer inbound calls on Server B. Will you be making calls from Server A using IP or analogue handsets (i.e. someone dialling the number) or are you using some kind of automated dialler? If the latter, what method do you plan to use? What do you plan to use to answer the calls on Server B - a softphone maybe?

Basically, Server A can call server B using something like this:
exten => _X.,1,Dial(ZAP/G1/${EXTEN},60)
 This will take whatever number you dial and forward the call to Zap Group 1 (your T1 circuit) with a 60 second timeout.

Server B would answer it using something like this:
exten => _X.,1,Dial(SIP/101,40)
 or
exten => _X.,1,Dial(ZAP/25,40)
 (The first to call a SIP softphone configured as extension 101, the second to call an analogue phone that appears as channel 25 based on the assumption that channels 1-24 are your T1 circuit).

While setting up, always use the command "set verbose 3" from the Asterisk CLI (or start Asterisk with asterisk -vvvc from the Linux command prompt) because this will give you step by step output as the lines in your dial plan are executed. It makes it much easier to see if your plan is working.

It is hard to give you all the details required to get started with Asterisk. There is too much to know. You should be able to find some online tutorials or you could buy a book. If you have a specific question feel free to post another comment here or, better, ask a new question in the EE Asterisk topic area.
0
 

Author Comment

by:codefaze
ID: 20454468
Thank you, this is helpful.  I can use this to get myselft started.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Implementing Avaya's One-X portal is pretty painless, until you want to deploy this to the Android and iPhone clients when these clients are outside of your network. The clients will also work within your local network. Here is our experience and so…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question