Failed to set caller id for second dahdi card in asterisk using 2 prilas with two cards

I have 2 DAHDI cards and 2 pri on my centos 6 system.

I cannot set callerid in the .call file for the second pri. Pri means attached to the top board, i can set my caller id when forwarding but not below, it shows the top DID of the pilot channel (it should show the bottom pri number as i set it to CallerId changeable in the call file ) .if I flip pri, it does the same caller id for the top pri, so it seems that the problem is in some configuration.

I can't figure out what the configuration error I'm making is.

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

      

Mine is extensions.conf

too long, so I post 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} is a dynamic variable. Any help would be appreciated.

thank

+3


source to share


1 answer


Okay, let's start with the first thing - you have a few errors in your chan_dahdi.conf file. For example:

hanguponpolarityswitch=yes
answeronpolarityswitch=yes
cidstart=polarity_IN
cidsignalling=dtmf

      

Not required when working with PRI circuits. The PRI circuits are fully digital and polarity is used for FXO / FXS signaling.

Now, in relation to your question, I would assume your call file looks like this:

Channel: SIP/g1/some_number
Extension: Number_B
Priority: Your Priority
Conext: Some_Context
CallerID: Some_CallerID

      

Now you need to set the Caller ID for Number_B via dialplan, since CallerID is in the Call file for the "Channel" argument. Once the call is inside the Asterisk server, Number_B will get the channel number as the caller ID, and that makes sense. If you want to set a different number, you will need to use the following:



exten => _X.,n,Set(CALLERID(num)=some_callerid)

      

To change the Caller ID on the note Number_B.

*** New addition:

Remove the following lines from dahdi.conf:

useincomingcalleridondahditransfer=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes

      

Restart Asterisk and try again.

0


source







All Articles