Can't pick up calls through PRI from Cisco Callmanger

Hi,

I am an Asterisk newbie. I am trying to set up a system that receives call through a PRI provided by my ISP. I am using a digium single span card and Asterisk 1.6.2.11 and Dahdi from the SVN tree. My server is running Debian Squeeze. I have things to the point where I have calls coming in that I can see in the CLI but for some reason Asterisk can’t seem to tell the Cisco CallManager system on the backend to hand the call over (at least that is what the debug output seems to say. Like I said, I am a newbie).

I was hoping that someone can take a look at this error output and shed some light on things for me. Including my chan_dahdi.conf and extensions.conf as well.

Any help is greatly appreciated.

[code]Protocol Discriminator: Q.931 (8) len=59
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
< User information layer 1: u-Law (34)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 Type: CPE]
< [28 0f 53 4f 4c 55 54 49 4f 4e 53 20 46 4f 52 20 50]
< Display (len=15) [ SOLUTIONS FOR P ]
< [6c 0c 21 80 32 31 35 37 30 31 36 31 30 31]
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number not screened (0) ‘2155551234’ ]
< [70 0b a1 33 30 32 32 39 35 31 30 30 31]
< Called Number (len=13) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) ‘3025551234’ ]
– Making new call for cref 227
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
– Processing Q.931 Call Setup
– Processing IE 4 (cs0, Bearer Capability)
– Processing IE 24 (cs0, Channel Identification)
– Processing IE 40 (cs0, Display)
– Processing IE 108 (cs0, Calling Party Number)
– Processing IE 112 (cs0, Called Party Number)
q931.c:6789 post_handle_q931_message: Call 227 enters state 6 (Call Present). Hold state: Idle
q931.c:4442 q931_call_proceeding: Call 227 enters state 9 (Incoming Call Proceeding). Hold state: Idle

Protocol Discriminator: Q.931 (8) len=11
TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent to originator)
Message Type: CALL PROCEEDING (2)
[18 04 e9 81 83 81]
Channel ID (len= 6) [ Ext: 1 IntID: Explicit Other(PRI) Spare: 0 Exclusive Dchan: 0
ChanSel: As indicated in following octets
Ext: 1 DS1 Identifier: 1
Ext: 1 Coding: 0 Number Specified Channel Type: 3
Ext: 1 Channel: 1 Type: CPE]
< Protocol Discriminator: Q.931 (8) len=12
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: STATUS (125)
< [08 02 80 e4]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
< Ext: 1 Cause: Invalid information element contents (100), class = Protocol Error (e.g. unknown message) (6) ]
< [14 01 06]
< Call State (len= 3) [ Ext: 0 Coding: CCITT (ITU) standard (0) Call state: Call Present (6)
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
– Processing IE 8 (cs0, Cause)
– Processing IE 20 (cs0, Call State)
q931.c:4601 q931_connect: Call 227 enters state 8 (Connect Request). Hold state: Idle
Protocol Discriminator: Q.931 (8) len=15
TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent to originator)
Message Type: CONNECT (7)
[18 04 e9 81 83 81]
Channel ID (len= 6) [ Ext: 1 IntID: Explicit Other(PRI) Spare: 0 Exclusive Dchan: 0
ChanSel: As indicated in following octets
Ext: 1 DS1 Identifier: 1
Ext: 1 Coding: 0 Number Specified Channel Type: 3
Ext: 1 Channel: 1 Type: CPE]
[1e 02 81 82]
Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]
< Protocol Discriminator: Q.931 (8) len=9
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: CONNECT ACKNOWLEDGE (15)
< [08 02 82 e4]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Invalid information element contents (100), class = Protocol Error (e.g. unknown message) (6) ]
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
– Processing IE 8 (cs0, Cause)
q931.c:6942 post_handle_q931_message: Call 227 enters state 10 (Active). Hold state: Idle
< Protocol Discriminator: Q.931 (8) len=12
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: STATUS (125)
< [08 02 80 e4]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
< Ext: 1 Cause: Invalid information element contents (100), class = Protocol Error (e.g. unknown message) (6) ]
< [14 01 06]
< Call State (len= 3) [ Ext: 0 Coding: CCITT (ITU) standard (0) Call state: Call Present (6)
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
– Processing IE 8 (cs0, Cause)
– Processing IE 20 (cs0, Call State)
< Protocol Discriminator: Q.931 (8) len=9
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: DISCONNECT (69)
< [08 02 82 90]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
– Processing IE 8 (cs0, Cause)
– Found active call: 0xb726b918 cref:227
q931.c:7119 post_handle_q931_message: Call 227 enters state 12 (Disconnect Indication). Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
q931.c:4639 q931_release: Call 227 enters state 19 (Release Request). Hold state: Idle
Protocol Discriminator: Q.931 (8) len=9
TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent to originator)
Message Type: RELEASE (77)
[08 02 81 90]
Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
< Protocol Discriminator: Q.931 (8) len=5
< TEI=0 Call Ref: len= 2 (reference 227/0xE3) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
Received message for call 0xb726b918 on 0x8929f98 TEI/SAPI 0/0, call->pri is 0x8929f98 TEI/SAPI 0/0
q931.c:7001 post_handle_q931_message: Call 227 enters state 0 (Null). Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
[/code]

chan_dahdi.conf

[code][trunkgroups]

trunkgroup => 1,24
spanmap => 1,1,1

[channels]
context=incoming
switchtype=national
signalling=pri_cpe

pridialplan=unknown
prilocaldialplan=national
callwaiting=yes
usecallerid=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
useincomingcalleridondahditransfer=yes
faxdetect=incoming
faxbuffers=>6,full
channel => 1-8
[/code]

extensions.conf

[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
CONSOLE=Console/dsp             ; Console interface for demo
IAXINFO=guest                   ; IAXtel username/password
TRUNK=DAHDI/G1                  ; Trunk interface

TRUNKMSD=1 
[incoming]

exten => _X.,1,Wait(2)
exten => _X.,n,Answer()
;exten => _X.,n,Playback(sounds/hello-world.gsm)
exten => _X.,n,Echo()
exten => _X.,n,Hangup()