Newbie question

Hi all,

I’ve recently switched to the asterisk world and I’m trying to understand a little thing…

I have a 30 bidirectional channels E1 PRI connected to my Digium TE420B.
How can i tell asterisk to keep 15 channels only for receiving calls and the other 15 channels only for sending outgoing calls?
This is my dahdi-channels.conf:

; Span 1
; Only Incoming
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15

; Only outgoing
switchtype = euroisdn
signalling = pri_cpe
channel => 17-31

And obviously in my dialplan when I do a Dial() command, I do it on DAHDI/g2.
Is it right?
The thing I can’t understand is how to tell asterisk not to put an incoming call on the second group.

Please apologize me if the question is quite stupid, but I really don’t have a clue.
Any help/advice would be greatly appreciated.

I think you can’t ‘disable’ incoming calls for a certain channel. Put them in a different context and Hangup() the call.

The restriction has to be imposed from the other end of the wire/fibre.

Normally people would make all circuits both ways, but hunt in opposite directions.

Thanks for the quick replies.

Effectively is the other end of the wire(my telco central) which is configured to give me 30 bidirectional channels.
But the problem is that I can’t get changes to the configuration.
So as you are saying, I suppose I can’t forward incoming calls to only group 1.
Is that right?

If the telco will only give you bidirectional channels, you should be prepared to handle incoming calls on all 30. If you have sufficiently rich signalling, you might be able to reject them in a way that looks like busy, but it is better just to accept them.

Just make sure that Asterisk hunts in the opposite direction.

Ok david55, many thanks for your suggestions.