Solved

Asterisk Dialplan Configuration

Posted on 2008-10-30
2
1,349 Views
Last Modified: 2013-11-12
I having been working of this for almost 2 weeks and really need help. Brand new to Asterisk,
first time I have ever seen it.

I am trying to use Asterisk to simulate a Central Office, for training. Asterisk will not be in a
production environment and will not be plugged into any Telco lines

Running Asterisk 1.6.0 with Dahdi 2.0.0

Hardware:
TE100P T1/E1 card
TDM400P with 2 FXS / 2 FXO modules ( I am not using the 2 FXO's)

Analog phone plugged into the first FXS port on the TDM400P (channel 25)
A RJ11 crossconnect cable running from the 2nd FXS port on the TDM400P to an FXO port on a Cisco
Router (channel 26)

T1 Crossover cable between the Asterisk T1 card and a PRI card on the Cisco Router

Asterisk is to simulate an offnet environment for the Cisco equipment

What I need is the following:

1. When any number comes in, whether over the T1 or the FXO on the FXS port channel 26, I want
Asterisk to ring the analog phone plugged in on the FXS port channel 25

2. From the Asterisk phone, if any 7 digit number is dialed, such as 555-1212, I want Asterisk to
send the call out the FXS port channel 26. This will come in on the FXO port on the Cisco router
and look like a call coming in from the PSTN.

3. From the Asterisk phone, if any 11 digit number is dialed, such as 1-222-555-1212 or
1-800-555-1212, I want Asterisk to send the call out the PRI using the top channel

Asterisk sees the hardware. When I run asterisk -vvvvvvvvgc , I can see the calls coming into
Asterisk from the Cisco Router but Asterisk has no idea what to do with the call and , of course,
I can't call from the Asterisk analog phone.

I have no idea how to configure extensions.conf to accomplish what I need.

Here are my system.config and chan_dahdi.conf

system.conf

defaultzone=us
loadzone=us
echocanceller=mg2,1-23
echocanceller=mg2,25-26

span=1,0,0,esf,b8zs
bchan=1-23
dchan=24

fxols=25
fxols=26
fxsls=27
fxsls=28

*********************************************

chan_dahdi.conf

[trunkgroups]

[channels]
switchtype = 4ess
pridialplan=national
signalling = pri_net
echocancel=yes

group=1
signalling = pri_net
channel => 1-23
signalling=fxo_ls

group=2
channel=25
context=incoming
signalling=fxo_ls

group=3
channel=26
context=phones
signalling=fxs_ls

group=4
channel=27,28

Appreciate all help that I receive.
0
Comment
Question by:hispacific
2 Comments
 
LVL 19

Accepted Solution

by:
feptias earned 500 total points
ID: 22884246
Have you found a solution yet?
The trick to setting up the dial plan is to know which context you should be making changes in. I'm still familiar only with Zap files, not dahdi, but it looks like the context is defined in your chan_dahdi.conf file. Possibly you have the line "context=incoming" in the wrong place. I think that file should look more like the attached snippet. This would assign your T1 and your second FXS port to the [incoming] context. You would then be able to set the dial plan (in extensions.conf) for that context using something like this:
[incoming]
exten=>_X.,1,Dial(Zap/25,30)

That would at least make the analogue phone ring for any call coming from the Cisco router (your requirement 1). The dial plan for requirements 2 and 3 would be in the [phones] context. I'll wait for some feedback from you before making suggestions for that.

[channels]
switchtype = 4ess
pridialplan=national
echocancel=yes
 
group=1
context=incoming
signalling = pri_net
channel => 1-23
 
group=2
context=phones
signalling=fxo_ls
channel=25
 
group=3
context=incoming
signalling=fxo_ls
channel=26
 
group=4
context=dontcare
signalling=fxs_ls
channel=27,28

Open in new window

0
 

Author Closing Comment

by:hispacific
ID: 31511879
Thanks for the help. With this and other support, I was able to get it to work.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can I edit Sip and Voicemail from AMI? 4 41
Does Allworx server need to be tagged on a VLAN 1 145
Need recommendation for complete telephone system 5 60
Using TAPI 2 67
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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