[solved]how to connect asterisk with analog pbx

Hi

I have TDM2405P card with 5 Red fxo. I want to connect with my analog pbx so that below scenario will work.

jitsi—> asterisk------->analog pbx-------> my landline phone

any help regarding this

thanks

What is the analogue PBX? Have you tried connecting the FXO ports to extension lines on the PBX to see what happens? Do you have the card configured and if so how?

Analog PBX means, from which my all telephones are connected actually it s EPABX. These FXO port are connected with this EPABX. This EPABX has FXS cards.

i have fxo card in my TDM2400P.

and i configured like below
[color=#0000FF]
in my extension.conf
[/color]

[general]
static=yes
writeprotect=no
clearglobalvars=no

[Incoming]
exten => s,1,Answer
exten => s,2,Dial(DAHDI/g1,20,rt)
exten => s,3,Voicemail(1000,u)
exten => s,103,Voicemail(1000,b)
exten => sandeep,1,Dial(SIP/sandeep)
exten => sandeep,n,Hangup()

exten => 1004,4,Dial(SIP/sandeep)
exten => 1004,n,Hangup()
; Testing extension, prepare to be insulted like a
; Monthy Python knight

exten => 81,1,Dial(DAHDI/1,20,rt)
exten => 81,n,Hangup()

exten => 88,1,Dial(DAHDI/1,20,rt)
exten => 88,n,Hangup()

exten => 8500,1,VoiceMailMain
exten => 8501,1,MusicOnHold
exten => _9.,1,Dial(DAHDI/g2/www${EXTEN:1})
exten => _9.,2,Congestion

exten => 201,1,Answer()
exten => 201,n,Playback(tt-monty-knights)
exten => 201,n,Hangup()

; Echo-test, it is good to test if we have sound in both directions.
; The call is answered
exten => 202,1,Answer()
; Welcome message is played
exten => 202,n,Playback(welcome)
; Play information about the echo test
exten => 202,n,Playback(demo-echotest)
; Do the echo test, end with the # key
exten => 202,n,Echo()
; Plays information that the echo test is done
exten => 202,n,Playback(demo-echodone)
; Goodbye message is played
exten => 202,n,Playback(vm-goodbye)
; Hangup() ends the call, hangs up the line
exten => 202,n,Hangup()

[color=#0000FF]and in chan_dahdi.conf file[/color]

; General options
[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
;FXO Modules
group=2
echocancel=yes
signalling=fxs_ks
context=Incoming
channel=1-20

Is there any problem with this configuration.

Please guide and give your valuable suggestion

Thanks a lot for your reply

How about the DAHDI configuration itself? Tah can be found in /etc/dahdi.

[color=#0000FF]in system.conf[/color]

fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4
fxsks=5
echocanceller=mg2,5
fxsks=6
echocanceller=mg2,6
fxsks=7
echocanceller=mg2,7
fxsks=8
echocanceller=mg2,8
fxsks=9
echocanceller=mg2,9
fxsks=10
echocanceller=mg2,10
fxsks=11
echocanceller=mg2,11
fxsks=12
echocanceller=mg2,12
fxsks=13
echocanceller=mg2,13
fxsks=14
echocanceller=mg2,14
fxsks=15
echocanceller=mg2,15
fxsks=16
echocanceller=mg2,16
fxsks=17
echocanceller=mg2,17
fxsks=18
echocanceller=mg2,18
fxsks=19
echocanceller=mg2,19
fxsks=20
echocanceller=mg2,20

channel 21, WCTDM/0/20, no module.

channel 22, WCTDM/0/21, no module.

channel 23, WCTDM/0/22, no module.

channel 24, WCTDM/0/23, no module.

Global data

loadzone = us
defaultzone = us

[color=#0000FF]and in modules file[/color]

dahdi
dahdi_dummy
dahdi_transcode

These are in my /etc/dahdi folder

Thanks

Got solved after all configuration and pin diagram to connect with TDM card