[Asterisk-Users] Routing by called interface

Walt Reed asterisk at linuxguy.com
Fri May 7 11:44:00 MST 2004


On Fri, May 07, 2004 at 12:01:02PM -0600, Jerimiah Cole said:
> 
> Chris Wilson wrote:
> >I want to run different lines directly to different extensions on two
> >FXO analog interfaces. ie; Zap/1 goes to Ext. 101, Zap/2 goes to
> >extensions 102
> 
> You should be able to stick different channels into different default 
> contexts in zapata.conf.  Then just have the context for Zap/1 always 
> dial extension 101, etc.  Makes sense, but I haven't tried this :)

That's exactly right. For example (simplified):

In zaptel.conf:

context=line1
signalling=fxs_ks
callerid=asreceived
channel => 1

context=line2
signalling=fxs_ks
callerid=asreceived
channel => 2

In extensions.conf:

[line1]
; office line
exten => s,1,Wait,1
exten => s,1,Dial(SIP/601,25,tr)

[line2]
; house line
exten => s,1,Wait,1
exten => s,2,Dial(SIP/602,25,tr)




More information about the asterisk-users mailing list