On Fri, 18 Feb 2005 18:11:26 -0000 "Brett, Gary" <[EMAIL PROTECTED]> wrote:

Hello all

I am relatively new to asterisk and am sure this will be a simple question
to answer. I have a TDM400p card and I am in the process of creating my dial
plan, however I am a bit stuck on one thing. I have 2 analogue lines (each
obviously with its own DDI) connected to the card; I want to set it up so
that if I dial inbound to the first DDI (e.g. 02087775555) it will go to the
IVR and when I ring inbound to the second DDI (e.g. 02087776666) I want it
to go directly to the SIP phone internally. Its with the latter I am having
the issue


My problem is this .... Due to the fact these are analogue lines, I realise
that the DDI is not sent to the TDM400P so I presume the only way for the
dial plan to filter inbound calls is by the Zap Channel it came in on? (In
my case Zap/1 and Zap/2). I have tried the following


------
[globals]

INBOUND=Zap/2

[default]

exten => ${INBOUND},1,Answer
exten => ${INBOUND},2,Background(soundfile),tT
exten => ${INBOUND},3,Hangup

------
I also tried exten => Zap/2,1,Answer


And

exten => Zap/2-1,1,Answer

And various other combinations all to no avail, is it possible to filter by
the Zap channel used ?, Surely if I want to direct call a phone, I donât
have to go through an IVR everytime ?? (I realise this wouldnât be an issue
with ISDN).


I noticed also in some documentation that you have to use an âsâ for all
analogue traffic, is this the case ?? and if so can you use it in
conjunction with a zap channel definition ??


So in summary, How does the dialplan define the Zap channel used on inbound
analogue calls


Any help would be greatly appreciated
Gary


Try using a different context for each incoming channel in the zapata.conf. An example is below, except I have one FXO and one FXS. But the concept is the same.


[channels]

context=analog
signalling=fxo_ks
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
relaxdtmf=yes
rxgain=0.0
txgain=5.0
busydetect=yes
callprogress=yes
usecallerid=yes
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
callreturn=yes
cancallforward=yes
adsi=yes
mailbox = 2000
faxdetect=incoming
channel => 1

context = fromPSTN
signalling=fxs_ks
rxgain=5.0
txgain=0.0
channel => 4
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to