[asterisk-users] asterisk-users Digest, Vol 73, Issue 63

David Cook (Asterisk List) dbc_asterisk at advan.ca
Sun Aug 29 12:31:26 CDT 2010


>  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.




More information about the asterisk-users mailing list