ISDN-VoIP Gateway

Hello.

Thanks in advance for everybody that help me.

I’m triying to configure asterisk to work as a VoIP Gateway for SIP and ISDN traffic.

This is my environment:

- Pentium II PC with RedHat Linux 9. Kernel version 2.4.31.
- Asterisk v1.2.9.1
- an HFC-PCI based isdn BRI card
- isd4linux driver

The configuration files of asterisk that i’ve modified are thesee:
modem.conf
[interfaces]
context=remote
driver=i4l
language=es
type=i4l
dialtype=tone
mode=ring
dtmfmode=i4l

msn=976200996
incomingmsn=*
outgoingmsn=*
device => /dev/ttyI0
device => /dev/ttyI1

extensions.conf

[general]
static=yes
writeprotect=no


[globals]
TRUNK=Modem/ttyI0
TRUNK1=Modem/ttyI1

[local]
include => outgoing

exten => 103,1,Dial(SIP/Linksys1)
exten => 104,1,Dial(SIP/Linksys2)
exten => 105,1,Dial(SIP/Alcatel1)
exten => 106,1,Dial(SIP/Alcatel2)


[incoming]
exten => s,1,Ringing()


[outgoing]
exten => 200,1,Playback(hello-world)

exten => _6NXXXXXXX,1,SetCallerID,97620096
exten => _6NXXXXXXX,2,Ringing
exten => _6NXXXXXXX,3,Dial(${TRUNK1}:${EXTEN})
exten => _6NXXXXXXX,4,Congestion
exten => _6NXXXXXXX,5,Wait(5)
exten => _6NXXXXXXX,6,Hangup

exten => _9NXXXXXXX,1,SetCallerID,97620096
exten => _9NXXXXXXX,2,Ringing
exten => _9NXXXXXXX,3,Dial(Modem/ttyI0:${EXTEN})
exten => _9NXXXXXXX,4,Congestion
exten => _9NXXXXXXX,5,Wait(5)
exten => _9NXXXXXXX,6,Hangup


[remote]
exten => s,1,Dial(SIP/Lynksys2)

exten => _9NXXXXXXX,1,Wait(${EXTEN})
exten => _9NXXXXXXX,2,Dial(SIP/Linksys2)
exten => _9NXXXXXXX,3,Congestion()
exten => _9NXXXXXXX,4,Hangup()

exten => _6NXXXXXXX,1,Wait(${EXTEN})
exten => _6NXXXXXXX,2,Dial(SIP/Linksys2)
exten => _6NXXXXXXX,3,Congestion()
exten => _6NXXXXXXX,4,Hangup()

I’m not sure, but I think that don’t need to configure zaptel.conf nor zapata.conf, isn’t it?.

The problem is that I can receive calls from the PSTN, via ISDN card, but I can’t call to an external number from any ip-phone of the office.

If I dial from my IpPhone Called Linksys1 to a mobile phone numbered 616345434, I can ear a ringing in progress tone on the phone, but the mobile phone never detect that ring, neither make any ring sound.

If I enter into console and execute a “show channels” command, this is what appears:

*CLI> show channels
Channel Location State Application(Data)
Modem[i4l]/ttyI1 s@remote:1 Down (None)
SIP/Linksys1-5eb5 626142858@local:3 Ring Dial(Modem/ttyI1:626142858|30|
2 active channels
1 active call

Does anybody know why it happens?.