Need some help with digium TDM400P

Hello guys. I’m a student and a brand new in asterisk comunity. One of my teachers gave me a homework, but i have some troubles with it. Task is to connect a couple of IP phones using asterisk plus conecting this ip phones to analog phone via IP PBX. I’m using digium TDM400P, one of the last versions af Asterisk with Dahdi drivers and PBX is Panasonic KX-TDA 15. I had no problems with instaling of Linux and Asterisk. Asterisk is working properly and I succeeded to conect two IP phones. I can make cals between them but that is all i could do.

Here is what i put in those files:







exten => 211,1,Dial(SIP/211)

exten => 212,1,Dial(SIP/212)

As I said this gave me basic functionality and I’m able to make cals between this 2 IP phones. Can anyone help me with creating the channel between TDM400P and panasonic PBX, also I will be very greatfull if anyone show me what i have to add in extensions.conf.

THanks in advance!

The Asterisk Definitive guide can help you: … eConn.html

you should first learn how to configure PCI telephony cards in your asterisk and then try to connect to the Panasonic PBX . Read the following link . Learn about fxo and fxs and how to configure them . … eConn.html

Thanks for this info guys. I’m starting to read it and will post what i’ve done in thenext few days :smile:


I red a lot of information in last couple of days and have some progress with my telefony network. I succeeded to connect panasonic PBX and TDM40P card. So now i can make calls from analogue phone to the IP phones. But I can’t make calls from IP phones to the analogue one. Will explain you what i have done. First i put this 2 lines :

signalling = fxs_ks
channel => 1

in /etc/asterisk/chan_dahdi.conf.

With them i opened the chanel between PBX and FXO card. I didn’t make any changes to the dial plan, but now i can make calls from analogue phone to IP phones. First I dial 25 - this is number of the outgoing line , then after a few seconds in the handset I can hear woman voice telling me that i’m connected to the asterisk. then i dial 212 or 211 ( the numbers of the IP phones) and… oh mirracle one of them start ringing :smile: So far so good. But now i’m staring with questions. in the documentation you gave me there are some examples in the dial plan I can’t understand completely.
these are the examples:

LOCAL=DAHDI/G0 ; assuming you have a PSTN card in your system
TOLL=SIP/YourVoipCarrier ; as defined in sip.conf

exten => _NXXNXXXXXX,1,Dial(${LOCAL}/${EXTEN}) ; 10-digit pattern match for NANP
exten => _NXXXXXX,1,Dial(${LOCAL}/${EXTEN}) ; 7-digit pattern match for NANP
exten => _1NXXNXXXXXX,1,Dial(${TOLL}/${EXTEN}) ; Long-distance pattern match for NANP
exten => _011.,1,Dial(${TOLL}/${EXTEN}) ; International pattern match for
; calls made from NANP

; This section is functionally the same as the above section.
; It is for people who like to dial ‘9’ before their calls
exten => _9NXXNXXXXXX,1,Dial(${LOCAL}/${EXTEN:1})
exten => _9NXXXXXX,1,Dial(${LOCAL}/${EXTEN:1})
exten => _91NXXNXXXXXX,1,Dial(${TOLL}/${EXTEN:1})
exten => _9011.,1,Dial(${TOLL}/${EXTEN:1})

in my case they are not working I think. Can any one give me explanation or just tell me what I need to put in extensions.conf to be able dialing from IP phones to analogue one. Also I want to ask what is meaning of G0 in LOCAL=DAHDI/G0

In my case when there is running call from analogue phone to IP, and I wrote “core show channels” in asterisk comand line under channel name there is this: DAHDI/1-1. My dial plan should be а simpler than this in examples. I need just to be able making cals. one i got that will try to add voice mail, redirecting of calls and etc. but just for now i need to make calls from IP phones to analogue phone.

Thanks in advance,