Brett, Gary
2005-Feb-18 11:11 UTC
[Asterisk-Users] defining the zap channel used on inbound analogue calls
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
Robert Webb
2005-Feb-18 11:44 UTC
[Asterisk-Users] defining the zap channel used on inbound analogue calls
On Fri, 18 Feb 2005 18:11:26 -0000 "Brett, Gary" <gary.brett@cetelem.co.uk> 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
Alex G Robertson
2005-Feb-18 15:25 UTC
[Asterisk-Users] defining the zap channel used on inbound analogue calls
If I got you question, I think you can resolve your problem by separating your incoming channels to particular contexts. zapata.conf .... context = line1 channel => 1 .... context = line2 channel => 2 .... extension.conf .... [line1] exten => s,1,Answer exten => s,2,Whatever(YouWant1) ..... [line2] exten => s,1,Answer exten => s,2,TheOtherThing(YouWant2) This way, calls coming in from line 1 will execute Whatever(YouWant1), and incoming in line 2 will execute TheOtherThing(YouWant2). :wq! Alex Robertson Brett, Gary 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 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- Alex G Robertson NOC - Microlink