<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have a 10 line PRI E1 ISDN service from AAPT. Connected to Asterisk
1.4 via a Digium TE121P.<br>
<br>
All oubound calls work fine.<br>
<br>
Inbound works only if I Dial a SIP phone directly or as the first step.
This phone MUST NOT be busy or else the call will fail.<br>
<br>
eg.<br>
<br>
This works:<br>
[from-pstn]<br>
exten => _34397333,1,Dial(SIP/511,30)<br>
exten => _34397333,n,Hangup<br>
<br>
This also works:<br>
exten => _34397333,1,Dial(SIP/511,2)<br>
exten => _34397333,n,GoTo(ConfMe,s,1)<br>
exten => _34397333,n,Hangup<br>
<br>
This does not work:<br>
exten => _34397333,1,GoTo(ConfMe,s,1)<br>
exten => _34397333,n,Hangup<br>
<br>
[ConfMe]<br>
exten => s,1,Answer<br>
exten => s,n,MeetMe(9000|crM|)<br>
exten => s,n,Playback(vm-goodbye)<br>
exten => s,n,Hangup<br>
<br>
Below I have included the PRI debug output for a successful and failed
inbound call. But first I have done a break down of the messages
received for both failed and successful calls.<br>
<br>
Failed:<br>
Message type: SETUP (5)<br>
Message type: CALL PROCEEDING (2)<br>
Message type: CONNECT (7)<br>
Message type: STATUS (125)<br>
Message type: STATUS (125)<br>
Message type: SETUP (5)<br>
Message type: DISCONNECT (69)<br>
Message type: RELEASE (77)<br>
Message type: RELEASE COMPLETE (90)<br>
<br>
Successful:<br>
Message type: SETUP (5)<br>
Message type: CALL PROCEEDING (2)<br>
Message type: ALERTING (1)<br>
Message type: STATUS (125)<br>
Message type: CONNECT (7)<br>
Message type: CONNECT ACKNOWLEDGE (15)<br>
Message type: STATUS (125)<br>
<br>
And now the call is fully connected...<br>
<br>
Now I have no experience with PRI ISDN. However it seems to be that the
ALERTING message is important and the Dial(SIP/511,30) is forcing this
response as it starts to ring.<br>
Why Answer() does not do this I think is my problem... however this is
probably because of a config issue.<br>
Or am I missing something?<br>
<br>
Could it be that ISDN service has not been setup correctly? I have
called AAPT and their tech ran test and think it is all configured
correctly on their side.<br>
<br>
Thank you for your help.<br>
<br>
<br>
zaptel.conf<br>
<br>
loadzone=au<br>
defaultzone=au<br>
<br>
# Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) B8ZS/ESF RED<br>
span=1,1,0,ccs,hdb3,crc4<br>
bchan=1-10<br>
unused=11-15,17,31<br>
dchan=16<br>
<br>
--------------------------<br>
<br>
zapata.conf<br>
<br>
[trunkgroups]<br>
trunkgroup => 1,16<br>
spanmap => 1,1,1<br>
<br>
[channels]<br>
; Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) B8ZS/ESF RED<br>
group=1<br>
context=from-pstn<br>
switchtype=euroisdn<br>
signalling=pri_cpe<br>
channel => 1-10<br>
group=1<br>
context=default<br>
<br>
<br>
<br>
<br>
<br>
PRI debug output for a failed inbound:<br>
< Protocol Discriminator: Q.931 (8) len=45<br>
< Call Ref: len= 2 (reference 3687/0xE67) (Originator)<br>
< Message type: SETUP (5)<br>
< [04 03 80 90 a3]<br>
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer
capability: Speech (0)<br>
< Ext: 1 Trans mode/rate: 64kbps,
circuit-mode (16)<br>
< User information layer 1: A-Law (35)<br>
< [18 03 a1 83 87]<br>
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0
Preferred Dchan: 0<br>
< ChanSel: As indicated in following octets<br>
< Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
< Ext: 1 Channel: 7 ]<br>
< [6c 0c 21 83 30 37 33 33 38 37 35 35 35 35]<br>
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)<br>
< Presentation: Presentation allowed of
network provided number (3) '0733875555' ]<br>
< [70 09 c1 33 34 33 39 37 33 30 30]<br>
< Called Number (len=11) [ Ext: 1 TON: Subscriber Number (4) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '34397300' ]<br>
< [7d 02 91 81]<br>
< IE: High-layer Compatibility (len = 4)<br>
< [a1]sk*CLI> <br>
< Sending Complete (len= 1)<br>
-- Making new call for cr 3687<br>
-- Processing Q.931 Call Setup<br>
-- Processing IE 4 (cs0, Bearer Capability)<br>
-- Processing IE 24 (cs0, Channel Identification)<br>
-- Processing IE 108 (cs0, Calling Party Number)<br>
-- Processing IE 112 (cs0, Called Party Number)<br>
-- Processing IE 125 (cs0, High-layer Compatibility)<br>
-- Processing IE 161 (cs0, Sending Complete)<br>
q931.c:3509 q931_receive: call 3687 on channel 7 enters state 6 (Call
Present)<br>
q931.c:2774 q931_call_proceeding: call 3687 on channel 7 enters state 9
(Incoming Call Proceeding)<br>
> Protocol Discriminator: Q.931 (8) len=11<br>
> Call Ref: len= 2 (reference 3687/0xE67) (Terminator)<br>
> Message type: CALL PROCEEDING (2)<br>
> [18 04 e9 81 83 87]<br>
> Channel ID (len= 6) [ Ext: 1 IntID: Explicit PRI Spare: 0
Exclusive Dchan: 0<br>
> ChanSel: As indicated in following octets<br>
> Ext: 1 DS1 Identifier: 1 <br>
> Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
> Ext: 1 Channel: 7 ]<br>
-- Accepting call from '0733875555' to '34397300' on channel 1/7,
span 1<br>
-- Executing [34397300@from-pstn:1] NoOp("Zap/7-1", "New Call in
from-pstn: 0733875555") in new stack<br>
-- Executing [34397300@from-pstn:2] Set("Zap/7-1", "GROUP()=OUT_5")
in new stack<br>
-- Executing [34397300@from-pstn:3] NoOp("Zap/7-1", "USED CHANNEL
COUNT - OUT_5 = 1") in new stack<br>
-- Executing [34397300@from-pstn:4] GotoIfTime("Zap/7-1",
"8:30-17:15|mon-fri|25|dec?After-Hours-Queue|s|1") in new stack<br>
-- Executing [34397300@from-pstn:5] GotoIfTime("Zap/7-1",
"8:30-17:15|mon-fri|*|*?Inbound-Queue|s|1") in new stack<br>
-- Goto (Inbound-Queue,s,1)<br>
-- Executing [s@Inbound-Queue:1] Dial("Zap/7-1", "SIP/500| 6") in
new stack<br>
-- Called 500<br>
-- Got SIP response 486 "Busy Here" back from 192.168.0.188<br>
-- SIP/500-0821ff70 is busy<br>
== Everyone is busy/congested at this time (1:1/0/0)<br>
-- Executing [s@Inbound-Queue:2] Dial("Zap/7-1", "SIP/518| 6") in
new stack<br>
== Everyone is busy/congested at this time (1:0/0/1)<br>
-- Executing [s@Inbound-Queue:3] Answer("Zap/7-1", "") in new stack<br>
q931.c:2909 q931_connect: call 3687 on channel 7 enters state 8
(Connect Request)<br>
> Protocol Discriminator: Q.931 (8) len=15<br>
> Call Ref: len= 2 (reference 3687/0xE67) (Terminator)<br>
> Message type: CONNECT (7)<br>
> [18 04 e9 81 83 87]<br>
> Channel ID (len= 6) [ Ext: 1 IntID: Explicit PRI Spare: 0
Exclusive Dchan: 0<br>
> ChanSel: As indicated in following octets<br>
> Ext: 1 DS1 Identifier: 1 <br>
> Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
> Ext: 1 Channel: 7 ]<br>
> [1e 02 81 82]<br>
> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard
(0) 0: 0 Location: Private network serving the local user (1)<br>
> Ext: 1 Progress Description: Called
equipment is non-ISDN. (2) ]<br>
-- Executing [s@Inbound-Queue:4] BackGround("Zap/7-1",
"ssa/welcome&ssa/please-hold&ssa/or-choose&ssa/main-menu")
in new stack<br>
-- <Zap/7-1> Playing 'ssa/welcome' (language 'en')<br>
< Protocol Discriminator: Q.931 (8) len=13<br>
< Call Ref: len= 2 (reference 3687/0xE67) (Originator)<br>
< Message type: STATUS (125)<br>
< [08 03 80 e4 18]<br>
< Cause (len= 5) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare:
0 Location: User (0)<br>
< Ext: 1 Cause: Invalid information element
contents (100), class = Protocol Error (e.g. unknown message) (6) ]<br>
< Cause data 1: 18 (24)<br>
< [14 01 06]> <br>
< Call State (len= 3) [ Ext: 0 Coding: CCITT (ITU) standard (0)
Call state: Call Present (6)<br>
-- Processing IE 8 (cs0, Cause)<br>
-- Processing IE 20 (cs0, Call State)<br>
< Protocol Discriminator: Q.931 (8) len=13<br>
< Call Ref: len= 2 (reference 3687/0xE67) (Originator)<br>
< Message type: STATUS (125)<br>
< [08 03 80 e4 18]<br>
< Cause (len= 5) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare:
0 Location: User (0)<br>
< Ext: 1 Cause: Invalid information element
contents (100), class = Protocol Error (e.g. unknown message) (6) ]<br>
< Cause data 1: 18 (24)<br>
< [14 01 06]> <br>
< Call State (len= 3) [ Ext: 0 Coding: CCITT (ITU) standard (0)
Call state: Call Present (6)<br>
-- Processing IE 8 (cs0, Cause)<br>
-- Processing IE 20 (cs0, Call State)<br>
-- <Zap/7-1> Playing 'ssa/please-hold' (language 'en')<br>
< Protocol Discriminator: Q.931 (8) len=45<br>
< Call Ref: len= 2 (reference 3687/0xE67) (Originator)<br>
< Message type: SETUP (5)<br>
< [04 03 80 90 a3]<br>
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer
capability: Speech (0)<br>
< Ext: 1 Trans mode/rate: 64kbps,
circuit-mode (16)<br>
< User information layer 1: A-Law (35)<br>
< [18 03 a1 83 87]<br>
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0
Preferred Dchan: 0<br>
< ChanSel: As indicated in following octets<br>
< Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
< Ext: 1 Channel: 7 ]<br>
< [6c 0c 21 83 30 37 33 33 38 37 35 35 35 35]<br>
< Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)<br>
< Presentation: Presentation allowed of
network provided number (3) '0733875555' ]<br>
< [70 09 c1 33 34 33 39 37 33 30 30]<br>
< Called Number (len=11) [ Ext: 1 TON: Subscriber Number (4) NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '34397300' ]<br>
< [7d 02 91 81]<br>
< IE: High-layer Compatibility (len = 4)<br>
< [a1]sk*CLI> <br>
< Sending Complete (len= 1)<br>
-- Processing Q.931 Call Setup<br>
-- Processing IE 4 (cs0, Bearer Capability)<br>
-- Processing IE 24 (cs0, Channel Identification)<br>
-- Processing IE 108 (cs0, Calling Party Number)<br>
-- Processing IE 112 (cs0, Called Party Number)<br>
-- Processing IE 125 (cs0, High-layer Compatibility)<br>
-- Processing IE 161 (cs0, Sending Complete)<br>
Timed out looking for connect acknowledge<br>
q931.c:2973 q931_disconnect: call 3687 on channel 7 enters state 11
(Disconnect Request)<br>
> Protocol Discriminator: Q.931 (8) len=9<br>
> Call Ref: len= 2 (reference 3687/0xE67) (Terminator)<br>
> Message type: DISCONNECT (69)<br>
> [08 02 81 90]<br>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare:
0 Location: Private network serving the local user (1)<br>
> Ext: 1 Cause: Normal Clearing (16), class =
Normal Event (1) ]<br>
< Protocol Discriminator: Q.931 (8) len=5<br>
< Call Ref: len= 2 (reference 3687/0xE67) (Originator)<br>
< Message type: RELEASE (77)<br>
q931.c:3759 q931_receive: call 3687 on channel 7 enters state 0 (Null)<br>
-- Channel 1/7, span 1 got hangup, cause -1<br>
== Spawn extension (Inbound-Queue, s, 4) exited non-zero on 'Zap/7-1'<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release
Request<br>
> Protocol Discriminator: Q.931 (8) len=9<br>
> Call Ref: len= 2 (reference 3687/0xE67) (Terminator)<br>
> Message type: RELEASE COMPLETE (90)<br>
> [08 02 81 90]<br>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare:
0 Location: Private network serving the local user (1)<br>
> Ext: 1 Cause: Normal Clearing (16), class =
Normal Event (1) ]<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null<br>
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null<br>
-- Hungup 'Zap/7-1'<br>
<br>
-----------------------------------------------------------------------------------------------------------------<br>
<br>
PRI Debug output for successful inbound:<br>
----------------------------------------------------------------------------------------------------------------<br>
<br>
This is included in a reply as the message was to big.<br>
<br>
<div class="moz-signature">-- <br>
<title></title>
<div style="font-family: Verdana,Arial,sans-serif;"><strong>Daniel
Johnson</strong><br>
<font size="-2">Systems Administrator / Systems Development<br>
Scanning Systems Australia<br>
<br>
<img src="cid:part1.02050004.08080905@scanningsystems.com.au"
alt="Scanning Systems Australia">
<br>
<br>
<strong>Office:</strong> +61 7 3387 5555<br>
<strong>Facsimile:</strong> +61 7 3387 5588<br>
<strong>E-mail:</strong> <a href="mailto:dan.j@scanningsystems.com.au">dan.j@scanningsystems.com.au</a><br>
<strong>Website:</strong> <a href="http://www.scanningsystems.com.au">http://www.scanningsystems.com.au</a><br>
</font><br>
</div>
</div>
</body>
</html>