I have 2 DAHDI card and 2 pri in my centos 6 system.
I am not able to set callerid in .call file for second pri. Means for pri attached to the upper card I am able to set its caller id on forwarding but not the lower one it shows upper card pri pilot DID number(it should show the lower pri number as I am setting it on CallerId varible in call file) .if I flip the pri it does the same set caller id for upper pri so it seems the problem is in some configuration.
I cant seem to figure out what is the configuration mistake I am doing.
system.conf
# Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) CCS/HDB3/CRC4 ClockSource
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31
# Span 2: WCT1/1 "Wildcard TE121 Card 1"
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
echocanceller=mg2,32-46,48-62
# Global data
loadzone = us
defaultzone = us
chan_dahdi.conf
[channels]
context=from-pstn-old
usecallerid=yes
callwaiting=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
pridialplan=unknown
prilocaldialplan=unknown
switchtype=euroisdn
language = yes
relaxdtmf = yes
dtmfmode=auto
transfer=yes
;Span 1:
context=from-pstn
group=0
callgroup=1
pickupgroup=1
echocancel=yes
signalling=pri_cpe
channel => 1-15,17-31,32-46,48-62
context=default
usecallerid=yes
callerid=asreceived
hanguponpolarityswitch=yes
answeronpolarityswitch=yes
cidstart=polarity_IN
cidsignalling=dtmf
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
useincomingcalleridondahditransfer=yes
busydetect=yes
busycount=2
My call file
Channel: DAHDI/g0/09*********
MaxRetries: 0
WaitTime: 30
Context: outgoing
Extension: ******* //my did
Callerid: 0********** //my did with area code
My extensions.conf
is too long so I posting the relevant part
same => n,Set(CALLERID(all)=0**0${DID})
same => n,dial(DAHDI/g0/0${NUMBER},20,mtM(ANSWEREDED))
where ${DID}
and ${NUMBER} are dynamic variable .
Any help would be appreciated.
Thanks