[asterisk-users] ISDN phone not ringing. ISDN PBX not answering?!
René Rössler
rene at freshx.de
Thu Feb 18 07:51:00 CST 2010
Hi,
I've set up an Asterisk as voip gatway:
VOIP <-> Asterisk <-> hfc-s card <-> NTBA <-> Siemens Gigaset Dect ISDN pbx.
Outgoing calls from dect handset to the world are working. Incoming calls don't even ring the handset.
I'm using the dahdi driver with the zaphfc kernel module. The hfc-s card is in nt mode.
The msn is set at the dect phone/base station for outgoing and incoming calls.
Asterisk version: 1.6.2.0~dfsg~beta4-0.7501
/etc/dahdi/system.conf:
# Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" (MASTER) AMI/CCS
span=2,0,0,ccs,ami
# termtype: nt
bchan=1-2
dchan=3
echocanceller=oslec,1-2
alaw=1-3
# Global data
loadzone = de
defaultzone = de
EOF
/etc/asterisk/chan_dahdi.conf:
[channels]
language=de
switchtype=euroisdn
pridialplan=local
prilocaldialplan=dynamic
internationalprefix = 00
nationalprefix = 0
localprefix = 0711
privateprefix = 0711
unknownprefix =
signalling=bri_net_ptmp
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
echotraining=100
mohinterpret=default
mohsuggest=default
callerid = asreceived
immediate=no
overlapdial=yes
facilityenable=yes
callprogress=yes
group=1
context=isdn1
channel => 1-2
EOF
/etc/asterisk/extensions.conf:
[default]
exten => _X.,1,NoOp(${EXTEN})
[isdn1]
exten => _X.,1,Dial(SIP/${EXTEN}@sipgate,30,trg)
exten => _X.,n,Hangup
[from-sipgate]
;Skype issues
exten => _X.,1,GotoIf($["${CALLERID(num)}" != "anonymous"]?notanonymous)
exten => _X.,n,NoOp(Changing Caller ID number from ${CALLERID(num)} to 9999999999})
exten => _X.,n,Set(CALLERID(num)=9999999999)
exten => _X.,n(nowanonymous),NoOp(The number shown in the CALLERID NUMBER field is ${CALLERID(num)})
;Call Handset
exten => _X.,n,Dial(DAHDI/g1/${EXTEN})
exten => _X.,n,Congestion
exten => _X.,n,Busy
exten => _X.,n,Hangup
EOF
Output with verbose 3 and debug 3, call from skype out:
== Using SIP RTP CoS mark 5
-- Executing [XXXXXXX at from-sipgate:1] GotoIf("SIP/sipgate-XXXXXXX", "0?notanonymous") in new stack
-- Executing [XXXXXXX at from-sipgate:2] NoOp("SIP/sipgate-XXXXXXX", "Changing Caller ID number from anonymous to 9999999999}") in new stack
-- Executing [XXXXXXX at from-sipgate:3] Set("SIP/sipgate-XXXXXXX", "CALLERID(num)=9999999999") in new stack
-- Executing [XXXXXXX at from-sipgate:4] NoOp("SIP/sipgate-XXXXXXX", "The number shown in the CALLERID NUMBER field is 9999999999") in new stack
-- Executing [XXXXXXX at from-sipgate:5] Dial("SIP/sipgate-XXXXXXX", "DAHDI/g1/XXXXXXX") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/XXXXXXX
-- Hungup 'DAHDI/1-1'
== Spawn extension (from-sipgate, XXXXXXX, 5) exited non-zero on 'SIP/sipgate-XXXXXXX'
EOF
Same with pri intense:
== Using SIP RTP CoS mark 5
-- Executing [XXXXXXX at from-sipgate:1] GotoIf("SIP/sipgate-XXXXXXX", "0?notanonymous") in new stack
-- Executing [XXXXXXX at from-sipgate:2] NoOp("SIP/sipgate-XXXXXXX", "Changing Caller ID number from anonymous to 9999999999}") in new stack
-- Executing [XXXXXXX at from-sipgate:3] Set("SIP/sipgate-XXXXXXX", "CALLERID(num)=9999999999") in new stack
-- Executing [XXXXXXX at from-sipgate:4] NoOp("SIP/sipgate-XXXXXXX", "The number shown in the CALLERID NUMBER field is 9999999999") in new stack
-- Executing [XXXXXXX at from-sipgate:5] Dial("SIP/sipgate-XXXXXXX", "DAHDI/g1/XXXXXXX") in new stack
2 -- Making new call for cr 32773
-- Requested transfer capability: 0x00 - SPEECH
2 > Protocol Discriminator: Q.931 (8) len=47
2 > Call Ref: len= 1 (reference 5/0x5) (Originator)
2 > Message type: SETUP (5)
2 > [04 03 80 90 a3]
2 > Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
2 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
2 > User information layer 1: A-Law (35)
2 > [18 01 89]
2 > Channel ID (len= 3) [ Ext: 1 IntID: Implicit Other Spare: 0 Exclusive Dchan: 0
2 > ChanSel: B1 channel
2 ]
2 > [28 09 61 6e 6f 6e 79 6d 6f 75 73]
2 > Display (len= 9) [ anonymous ]
2 > [6c 0c 41 80 39 39 39 39 39 39 39 39 39 39]
2 > Calling Number (len=14) [ Ext: 0 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
2 > Presentation: Presentation permitted, user number not screened (0) '9999999999' ]
2 > [70 08 c1 35 38 34 38 34 30 36]
2 > Called Number (len=10) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) 'XXXXXXX' ]
2 q931.c:3134 q931_setup: call 32773 on channel 1 enters state 1 (Call Initiated)
-- Called g1/XXXXXXX
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (0)
2
> [ 02 81 01 01 ]
2
> Supervisory frame:
2 > SAPI: 00 C/R: 1 EA: 0
> TEI: 064 EA: 1
2 > Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
> N(R): 000 P/F: 1
> 0 bytes of data
2 *CLI>
< [ 02 81 01 01 ]
2
< Supervisory frame:
2 < SAPI: 00 C/R: 1 EA: 0
< TEI: 064 EA: 1
2 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
< N(R): 000 P/F: 1
< 0 bytes of data
Handling message for SAPI/TEI=0/64
-- ACKing all packets from 0 to (but not including) 0
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 timer
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (0)
2
> [ 02 81 01 01 ]
2
> Supervisory frame:
2 > SAPI: 00 C/R: 1 EA: 0
> TEI: 064 EA: 1
2 > Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
> N(R): 000 P/F: 1
> 0 bytes of data
2 *CLI>
< [ 02 81 01 01 ]
2
< Supervisory frame:
2 < SAPI: 00 C/R: 1 EA: 0
< TEI: 064 EA: 1
2 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
< N(R): 000 P/F: 1
< 0 bytes of data
Handling message for SAPI/TEI=0/64
-- ACKing all packets from 0 to (but not including) 0
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 timer
2 NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Initiated, peerstate Overlap sending
2 q931.c:3015 q931_disconnect: call 32773 on channel 1 enters state 11 (Disconnect Request)
2 > Protocol Discriminator: Q.931 (8) len=8
2 > Call Ref: len= 1 (reference 5/0x5) (Originator)
2 > Message type: DISCONNECT (69)
2 > [08 02 81 90]
2 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
2 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'DAHDI/1-1'
== Spawn extension (from-sipgate, XXXXXXX, 5) exited non-zero on 'SIP/sipgate-XXXXXXX'
EOF
René
More information about the asterisk-users
mailing list