Call Pickup Groups and DAHDI PRIs


I have a mix of SIP phones and analog phones that connect to a Cisco 2851 which is then trunked to Asterisk via ISDN PRI. I am trying to set up a simple call pickup group. Among the various SIP endpoints the call pickup function works beautifully. However, I cannot pick up any calls from the analog phones nor can I pick up any calls to any analog phones.

I have in chan_dahdi.cfg callgroup and pickupgroup defined with the group in question, but it doesn’t seem to work. My chan_dahdi.cfg is below.

I’ve played with PickupChan() in my dial plan but I am unsure how to dynamically identify a DAHDI channel to be picked up. I may play with this some more, but if I can get the feature code to work that’d be ideal.

Any ideas? Thanks!

EDIT: Yesterday I added the following to my dial plan. It works for SIP clients, but does not work for the PRI.

exten   => 77,1,Set(CHANNEL(pickupgroup)=1)
same    => n,Pickup()
same    => n,Hangup()



usecallerid = yes
hidecallerid = no
callwaiting = yes
usecallingpres = yes
callwaitingcallerid = yes
allow_call_waiting_calls = yes
threewaycalling = yes
facilityenable = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
echocancel = yes
echocancelwhenbridged = yes
;echotraining = 800
relaxdtmf = yes
rxgain = 0.0
txgain = 0.0
callgroup = 1
pickupgroup = 1
immediate = no
moh_signaling = moh
switchtype = dms100
context = internal
group = 0
signalling = pri_cpe

;channel => 1-23,25-48
channel => 1-15,17-46,48-62