ISDN PRI crc4 DISCONNECT

Hi i have issues on E1 isdn PRI crc4

APP:

Asterisk: Asterisk 1.4.22
DAHDI: 2.0.0
Libpri: 1.4.7
OS: Debian 4 r4
Kernel: 2.6.18-6-686
the E1 ist under pci:0000:05:01.0 wct4xxp+ d161:0205 Wildcard TE205P

system.conf

[code]# Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” HDB3/CCS/CRC4 YELLOW RECOVERINGClockSource
span=1,1,0,ccs,hdb3,crc4

termtype: te

bchan=1-15,17-31
dchan=16

Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2” (MASTER) HDB3/CCS/CRC4 RED

span=2,2,0,ccs,hdb3,crc4

termtype: te

bchan=32-46,48-62
dchan=47

Global data

loadzone = us
defaultzone = us[/code]

chan_dahdi.conf


[channels]
language=en
;context=from-internal
context=telmex1
switchtype=euroisdn
signalling=pri_cpe
rxwink=300              ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=700
busydetect=yes
busycount=1
rxgain=10.5
txgain=10.5
group=0
callgroup=1
pickupgroup=1
immediate=no
channel=1-15,17-30
;channel=32-46,48-62

extensions_custom.conf

[telmex1]
exten => _X.,1,Set(CALLERID(num)=25002600)
;exten => _X.,1,Set(CALLERID(num)=2500260${CALLERID(num):3:12})
exten => _X.,1,NoOp(RUT: ${RUT}   EXTENSION: ${CALLERID(number)}   VARIABLES: ${VAR1})
exten => _X.,n,Set(TELEFONO=${IF($[ ${EXTEN} = "999999999"]?${CALLERID(num)}:${EXTEN}})
exten => _X.,n,Set(MES=${STRFTIME(${EPOCH},,%Y%m)})
exten => _X.,n,Set(DIA=${STRFTIME(${EPOCH},,%d)})
exten => _X.,n,System(sh /usr/local/sbin/checkAgentTmkDir.sh ${MES} ${DIA})
exten => _X.,n,Set(CALLFILENAME=/var/spool/asterisk/monitor/tmk/${MES}/${DIA}/M-${TELEFONO}_${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _X.,n,MixMonitor(${CALLFILENAME}.wav)
;exten => _X.,1,Set(CALLERID(num)=2500260${CALLERID(num):3:12})
exten => _X.,n,Dial(DAHDI/g0/${EXTEN})
exten => _X.,n,Hangup[/code]


[b]sip_additional.conf[/b]

[code][2010]
type=friend
secret=2010
record_out=Never
record_in=Never
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=2010@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/2010
context=telmex1
canreinvite=no
callgroup=
callerid=device <2010>
accountcode=
call-limit=50[/code]

[b]pri debug[/b]
[code]    -- Executing [042598201@telmex1:1] Set("SIP/2010-b5901298", "CALLERID(num)=25002600") in new stack
    -- Executing [042598201@telmex1:2] Set("SIP/2010-b5901298", "TELEFONO=042598201") in new stack
    -- Executing [042598201@telmex1:3] Set("SIP/2010-b5901298", "MES=200810") in new stack
    -- Executing [042598201@telmex1:4] Set("SIP/2010-b5901298", "DIA=16") in new stack
    -- Executing [042598201@telmex1:5] System("SIP/2010-b5901298", "sh /usr/local/sbin/checkAgentTmkDir.sh 200810 16") in new stack
    -- Executing [042598201@telmex1:6] Set("SIP/2010-b5901298", "CALLFILENAME=/var/spool/asterisk/monitor/tmk/200810/16/M-042598201_20081016-193814") in new stack
    -- Executing [042598201@telmex1:7] MixMonitor("SIP/2010-b5901298", "/var/spool/asterisk/monitor/tmk/200810/16/M-042598201_20081016-193814.wav") in new stack
    -- Executing [042598201@telmex1:8] Dial("SIP/2010-b5901298", "DAHDI/g0/042598201") in new stack
-- Making new call for cr 32777
    -- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8)  len=40
> Call Ref: len= 2 (reference 9/0x9) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> 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: A-Law (35)
> [18 03 a9 83 81]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  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 ]
> [6c 0a 21 80 32 35 30 30 32 36 30 30]
> Calling Number (len=12) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation permitted, user number not screened (0)  '25002600' ]
> [70 0a a1 30 34 32 35 39 38 32 30 31]
> Called Number (len=12) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '042598201' ]
> [a1]*CLI> 
> Sending Complete (len= 1)
q931.c:3092 q931_setup: call 32777 on channel 1 enters state 1 (Call Initiated)
    -- Called g0/042598201
  == Begin MixMonitor Recording SIP/2010-b5901298
< Protocol Discriminator: Q.931 (8)  len=10
< Call Ref: len= 2 (reference 9/0x9) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  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 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3641 q931_receive: call 32777 on channel 1 enters state 3 (Outgoing call  Proceeding)
    -- DAHDI/1-1 is proceeding passing it to SIP/2010-b5901298
< Protocol Discriminator: Q.931 (8)  len=13
< Call Ref: len= 2 (reference 9/0x9) (Terminator)
< Message type: ALERTING (1)
< [1e 02 82 81]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
< [1e 02 82 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 30 (cs0, Progress Indicator)
q931.c:3554 q931_receive: call 32777 on channel 1 enters state 4 (Call Delivered)
    -- DAHDI/1-1 is ringing
< Protocol Discriminator: Q.931 (8)  len=25
< Call Ref: len= 2 (reference 9/0x9) (Terminator)
< Message type: CONNECT (7)
< [1e 02 82 81]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
< [1e 02 82 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
< [29 06 08 0a 10 13 1e 2f]
< Time Date (len= 8) [ 08-10-16 19:30:47 ]
< [4c 02 00 c3]
< Connected Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)
<                             Ext: 1  Presentation: Number not available (67)  '' ]
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 41 (cs0, Date/Time)
-- Processing IE 76 (cs0, Connected Number)
q931.c:3584 q931_receive: call 32777 on channel 1 enters state 10 (Active)
> Protocol Discriminator: Q.931 (8)  len=5
> Call Ref: len= 2 (reference 9/0x9) (Originator)
> Message type: CONNECT ACKNOWLEDGE (15)
    -- DAHDI/1-1 answered SIP/2010-b5901298
    -- Unregistered SIP '2010'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Connect Request
q931.c:2973 q931_disconnect: call 32777 on channel 1 enters state 11 (Disconnect Request)
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 9/0x9) (Originator)
> Message type: DISCONNECT (69)
> [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) ]
NEW_HANGUP DEBUG: Destroying the call, ourstate Disconnect Request, peerstate Disconnect Indication
    -- Hungup 'DAHDI/1-1'
  == Spawn extension (telmex1, 042598201, 8) exited non-zero on 'SIP/2010-b5901298'
  == End MixMonitor Recording SIP/2010-b5901298
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 9/0x9) (Terminator)
< Message type: RELEASE (77)
-- Making new call for cr 32777
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 9/0x9) (Originator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 d1]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Invalid call reference value (81), class = Invalid message (e.g. parameter out of range) (5) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
debian*CLI> 
debian:/etc/asterisk#

any one have idea what ist happen ?[/code]

Hi

Its great to post debug, and confs, But also a description of the problem with symptoms would at least let us know what we are looking for.

Ian

[quote=“ianplain”]Hi

Its great to post debug, and confs, But also a description of the problem with symptoms would at least let us know what we are looking for.

Ian[/quote]

the isdn pri just restart the channles and DISCONNECT because asterisk send that resquest

Does the same thing happen with all your software versions except dropping back to zaptel-1.4.x?

yes in all version

Hi

You need to explain fully IE is all calls or at regular intervals, just some calls, randomly.

is this the hangup

[quote]Unregistered SIP ‘2010’
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Connect Request
q931.c:2973 q931_disconnect: call 32777 on channel 1 enters state 11 (Disconnect Request)

Protocol Discriminator: Q.931 (8) len=9
Call Ref: len= 2 (reference 9/0x9) (Originator)
Message type: DISCONNECT (69)
[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) ] [/quote]

[quote=“ianplain”]Hi

You need to explain fully IE is all calls or at regular intervals, just some calls, randomly.

is this the hangup

[quote]Unregistered SIP ‘2010’
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Connect Request
q931.c:2973 q931_disconnect: call 32777 on channel 1 enters state 11 (Disconnect Request)

Protocol Discriminator: Q.931 (8) len=9
Call Ref: len= 2 (reference 9/0x9) (Originator)
Message type: DISCONNECT (69)
[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) ] [/quote][/quote]

i dont know what mean that HANGUP can you explaint ?

[quote=“ianplain”]Hi

You need to explain fully IE is all calls or at regular intervals, just some calls, randomly.

is this the hangup

[quote]Unregistered SIP ‘2010’
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Connect Request
q931.c:2973 q931_disconnect: call 32777 on channel 1 enters state 11 (Disconnect Request)

Protocol Discriminator: Q.931 (8) len=9
Call Ref: len= 2 (reference 9/0x9) (Originator)
Message type: DISCONNECT (69)
[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) ] [/quote][/quote]

i dont know what mean that HANGUP can you explaint ?