Asterisk incoming call - map only 10 channel for particular number

Dear Team,

I have created 2 group, group1 with 20 channels (1-15, 17-21) for outgoing calls and group2 with 10 channels (22-31) for incoming calls. But after 10 incoming calls the Asterisk rejects the next 20 incoming calls and again receive after that only.

How can i set 10 channels for particular incoming call without rejecting.

chan_dahdi.conf

[channels]
switchtype=euroisdn
pridialplan=unknown
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=no
transfer=no
cancallforward=no
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
callprogress=no
callerid=asreceived
relaxdtmf=yes

group=1
context=default
channel => 1-15, 17-21

group=2
context=DATA
channel => 22-31

sip.conf

[general]

bindaddr=0.0.0.0
context=default
canreinvite=no
callcounter=yes
notifyhold=yes
callevents=yes
language=en
srvlookup=no
directrtpsetup=no
directmedia=no
trustpid=yes
sendrpid=yes
qualify=yes
callevents=yes
insecure=invite
pedantic=no
videosupport=no
t38pt_udptl=no
t38pt_rtp=no
t38pt_tcp=no
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw

[1102]
username=1102
secret=****
type=friend
busylevel=1
nat=yes
context=DATA
host=dynamic
qualify=1000

extension.conf

[general]

static=yes

writeprotect=no
autofallthrough=no

[globals]

CONSOLE=Console/dsp ; Console interface for demo
TRUNK=DAHDI/g1
TRUNK=DAHDI/g2

[DATA]

exten => 125,1,Answer();
exten => 125,n,Playback(silence/1)
exten => 125,n,Hangup();

exten => _9XXXXXXXXX,1,Set(CALLERID(num)=4847xxxxx);
exten => _9XXXXXXXXX,2,Dial(DAHDI/g2/0${EXTEN});
exten => _9XXXXXXXXX,3,Hangup();

The remote end needs to respect your allocation of channels. Subject to the logs, it would seem that they are using an anti-clockwise cycle of channels, rather than first fit.

Although the SIP settings are not relevant here, please note that chan_sip is a lame duck. Also please review: insecure, canreinvite, dtmfmode=auto, type=friend, username, and nat=yes against the documentation. These include duplicates under old names (canreinvite), old names (username), options that cannot be used in the general sections and would constitute a security vulnerability if they could (insecure), options that aren’t useful without other options, and are rarely needed (username), options that are better set to more specific values (dtmfmode), and options that are often over-used (nat=yes), or mis-used (type=friend).

How can I set the channel allocation using 'First Fit?.

Ask your provider. This is something they have to configure. They may use a term like “linear hunt group”, rather than “first fit”.

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