On Sun, Aug 29, 2010 at 01:31:26PM -0400, David Cook (Asterisk List) wrote:
> > I have 2 FXO channels from which I want to route incoming calls to
> > different contexts in extensions.conf. I edited the context entries in
> > dahdi-channels.conf and created matching entries in extensions.conf.
> > One channel is routed to the new context as I want, but the other
> > channel is stuck going to the default "from-pstn" context no matter what
> > I do.
> >
> > Can anyone see what I've missed?
> >
> >>From dahdi-channels.conf:
> > ;;; line="3 WCTDM/4/2 FXSKS"
> > signalling=fxs_ks
> > callerid=asreceived
> > group=0
> > context=from-pstn-3
> > channel => 3
> > callerid=
> > group=
> > context=default
> >
> > ;;; line="4 WCTDM/4/3 FXSKS"
> > signalling=fxs_ks
> > callerid=asreceived
> > group=0
> > context=from-pstn-4
> > channel => 4
> > callerid=
> > group=
> > context=default
> >
> You have multiple "context=" lines in your file and the order within the
> file is important. "channel =>" should be the last item. So channel 4 is
> actually reading the "context=default" line which is 3 lines under
> "channel=>3" in your config file.
Actually, no. The last 'context=' line before the respective 'channel'
directive sets the value. The context is 'from-pstn-3' for channel 3 and
'from-pstn-4' for channel 4.
--
Tzafrir Cohen
icq#16849755 jabber:[email protected]
+972-50-7952406 mailto:[email protected]
http://www.xorcom.com iax:[email protected]/tzafrir
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users