> What I would like is: > > If someone calls extn 281 on my Alcatel PBX it is routed through to Extn 233 > on my * thruogh FXO port/module 4 > If someone calls extn 282 on my Alcatel PBX it is routed through to Extn 234 > on my * thruogh FXO Port/module 3 > > I have SIP extn 233 set up. > I have SIP extn 234 set up. > <snip> > My problem is getting 234 to answer when I dial 282 from the Alcatel as I > have nothing set up for it and don't seem to be able to work out how to > direct different FXO ports to different * extns. The most simple way is something like this : in your zapata.conf, or in your case, zapata-auto.conf (remember that if you run genzaptelconf, this file will be overwritten and all changes will be lost), modify it to put each ZAP channel in is own context ex.: context=from-pstn-line1 group=0 channel => 3
context=from-pstn-line2 channel => 4 then, in extension.conf (or for aah, in extension_custom.conf), define those 2 context [from-pstn-line1] exten => s,1,Answer exten => s,n,Dial(Sip/233,20) exten => s,n,Voicemail(u233) [from-pstn-line2] exten => s,1,Answer exten => s,n,Dial(Sip/234,20) exten => s,n,Voicemail(u234) N.B.: this is written from the top of my head, so it may contain some errors but it gives you the direction hth _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
