PRI Channel Spitting for Inbound and outbound

Hello,

I have the Sangoma card with PRI line connection having 30 channels.
I want to configure
a) 1-15 channels for the context [to-pstn] and
b) 17-31 channels for the context [from-pstn]

Channel (16) is D-Channel.

How do I do this please help. Below are the details of extensions.conf and chan_dahdi.conf.


I have extensions.conf where I have two context,
[from-pstn]

[to-pstn]


My chan_dahdi.conf is as below:

autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2019-09-24
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

;Sangoma A101 port 1 [slot:4 bus:4 span:1]
switchtype=dms100
context=from-pstn
group=0
echocancel=yes
signalling=pri_cpe
channel =>1-15,17-31

Generally you should get support for hardare cards from your vendor. This is true even when the vendor sponsors this forum.

However, I don’t think you want to put the second group into a from_pstn context, but rather to put them into a context that rejects calls.

The way you do that is to have two channels lines, and to change the options between the two.

You would use group to select for the outbound only channels, not context.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.