Solved

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

Posted on 2007-12-06
5
1,092 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 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