[asterisk-users] asterisk-users Digest, Vol 73, Issue 63
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Aug 29 12:37:51 CDT 2010
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:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list