<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
<BR>
I have the following scenario.<BR>
I place an outgoing PSTN call from Asterisk to a Mobile phone using SS7. The Mobile phone user rejects this call. On the Asterisk side I keep hearing ring back tone for a very log time ( 90 seconds or so ) before the call is hung up. Is there a way to configure Asterisk SS7 to send REL when PSTN end sends busy ?<BR>
<BR>
<BR>
<------------><BR> -- Executing [9851060166@from-inside:1] Macro("SIP/sky_ktm01 -08c167e0", "trunkdial,DAHDI/g2/9851060166") in new stack<BR> -- Executing [s@macro-trunkdial:1] Dial("SIP/sky_ktm01-08c167e0", "DAHDI/g2/9851060166,60") in new stack<BR> -- Called g2/9851060166<BR>Len = 37 [ db f8 22 c5 93 40 ef 12 01 00 01 00 60 01 0a 00 02 0a 08 83 10 89 15 60 10 66 0f 0a 07 83 11 99 23 11 10 01 00 ]<BR>FSN: 120 FIB 1<BR>BSN: 91 BIB 1<BR>>[0] MSU<BR>[ db f8 22 ]<BR> Network Indicator: 3 Priority: 0 User Part: ISUP (5)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ c5 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> OPC 3005 DPC 147 SLS 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 93 40 ef 12 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> CIC: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 01 00 ]<BR> Message Type: IAM<BR> [ 01 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> --FIXED LENGTH PARMS[4]--<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Nature of Connection Indicator:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Satellites in connection: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Continuity Check: Check not required (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Outgoing half echo control device: not included (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 00 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Forward Call Indicators:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Nat/Intl Call Ind: call to be treated as a national call (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> End to End Method Ind: no end-to-end method(s) available (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Interworking Ind: no interworking encountered (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> End to End Info Ind: no end-to-end information available (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> ISDN User Part Ind: ISDN user part used all the way (1)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> ISDN User Part Pref Ind: ISDN user part not preferred all the way (1)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> ISDN Access Ind: originating access ISDN (1)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> SCCP Method Ind: no indication (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 60 01 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Calling Party's Category:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Category: Ordinary calling subscriber (10)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 0a ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Transmission Medium Requirements:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Speech (0)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 00 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> --VARIABLE LENGTH PARMS[1]--<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Called Party Number:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Nature of address: 3<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> NI: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Numbering plan: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Address signals: 9851060166#<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 08 83 10 89 15 60 10 66 0f ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> --OPTIONAL PARMS--<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Calling Party Number:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Nature of address: 3<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> NI: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Numbering plan: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Presentation: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Screening: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Address signals: 993211011<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 0a 07 83 11 99 23 11 10 01 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR>
<BR>[Kskyswitchmicroasterisk*CLI> <BR>Audio is at 203.208.165.152 port 19188<BR>Adding codec 0x100 (g729) to SDP<BR> <BR><--- Transmitting (no NAT) to 192.168.161.10:5060 ---><BR>SIP/2.0 183 Session Progress<BR>
Via: SIP/2.0/UDP 192.168.161.10:5060;branch=z9hG4bK1689032460;received=192.168.161.10;rport=5060<BR>
From: <sip:993211011@203.208.165.152:5060>;tag=1748521147<BR>
To: <sip:9851060166@203.208.165.152:5060>;tag=as63af2952<BR>
Call-ID: <A href="mailto:2177314594@192.168.161.10">2177314594@192.168.161.10</A><BR>
CSeq: 289 INVITE<BR>
Server: Asterisk PBX SVN-moy-mfcr2-r154142<BR>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>
Supported: replaces, timer<BR>
Contact: <sip:9 <A href="mailto:851060166@203.208.165.152">851060166@203.208.165.152</A>><BR>
Content-Type: application/sdp<BR>
Content-Length: 248<BR>
<BR>
v=0<BR>
o=root 501058780 501058780 IN IP4 203.208.165.152<BR>
s=Asterisk PBX SVN-moy-mfcr2-r154142<BR>
c=IN IP4 203.208.165.152<BR>
t=0 0<BR>
m=audio 19188 RTP/AVP 18<BR>
a=rtpmap:18 G729/8000<BR>
a=fmtp:18 annexb=no<BR>
a=silenceSupp:off - - - -<BR>
a=ptime:20<BR>
a=sendrecv<BR>
<BR>
<BR>
<[0] MSU<BR>[ fa dc 0f ]<BR> Network Indicator: 3 Priority: 0 User Part: ISUP (5)<BR> [ c5 ]<BR> OPC 147 DPC 3005 SLS 1<BR> [ bd cb 24 10 ]<BR> CIC: 1<BR> [ 01 00 ]<BR> Message Type: ACM<BR> [ 06 ]<BR> --FIXED LENGTH PARMS[1]--<BR> Backward Call Indicator:<BR> Charge indicator: 2<BR> Called party's status indicator: 1<BR> Called party's category indicator: 1<BR> End to End method indicator: 0<BR> Interworking indicator: 0<BR> End to End information indicator: 0<BR> ISDN user part indicator: 1<BR> Holding indicator: 0<BR> ISDN access indicator: 1<BR> Echo control device indicator: 1<BR> SCCP method indicator: 0<BR> [ 16 34 ]<BR> --OPTIONAL PARMS--<BR> Optional Backward Call Indicator:<BR> In-band information indicator: 1<BR> Call diversion may occur indicator: 0<BR> Simple segmentation indicator: 0<BR> MLPP user indicator: 0<BR> [ 29 01 01 ]<BR>
-- DAHDI/32-1 is proceeding passing it to SIP/sky_ktm01-08c167e0<BR> -- DAHDI/32-1 is ringing<BR>
<--- Transmitting (no NAT) to 192.168.161.10:5060 ---><BR>SIP/2.0 180 Ringing<BR>
Via: SIP/2.0/UDP 192.168.161.10:5060;branch=z9hG4bK1689032460;received=192.168.161.10;rport=5060<BR>
From: <sip:993211011@203.208.165.152:5060>;tag=1748521147<BR>
To: <sip:9851060166@203.208.165.152:5060>;tag=as63af2952<BR>
Call-ID: <A href="mailto:2177314594@192.168.161.10">2177314594@192.168.161.10</A><BR>
CSeq: 289 INVITE<BR>
Server: Asterisk PBX SVN-moy-mfcr2-r154142<BR>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>
Supported: replaces, t imer<BR>
Contact: <sip:9851060166@203.208.165.152><BR>
Content-Length: 0<BR>
<BR>
<BR>[Kskyswitchmicroasterisk*CLI> <BR><[0] MSU<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR>[ 81 e5 16 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Network Indicator: 3 Priority: 0 User Part: ISUP (5)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ c5 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> OPC 147 DPC 3005 SLS 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ bd cb 24 10 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> CIC: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 01 00 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Message Type: CPG<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 2c ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> --FIXED LENGTH PARMS[1]--<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Event Information:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> In-band information or an appropriate pattern is now available<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 03 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> --OPTIONAL PARMS--<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Backward Call Indicator:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Charge indicator: 2<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Called party's status indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Called party's category indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> End to End method indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Interworking indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> End to End information indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> ISDN user part indicator: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Holding indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> ISDN access indicator: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Echo control device indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> SCCP method indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 11 02 02 14 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Optional Backward Call Indicator:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> In-band information indicator: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Call diversion may occur indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Simple segmentation indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> MLPP user indicator: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 29 01 01 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Cause Indicator:<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Coding Standard: 0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Location: 4<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Cause Class: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Cause Subclass: 1<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> Cause: User busy (17)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> [ 12 02 84 91 ]<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR>
<BR>[Kskyswitchmicroasterisk*CLI> <BR> -- DAHDI/32-1 is making progress passing it to SIP/sky_ktm01-08c167e0<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR>Reliably Transmitting (no NAT) to 192.168.161.10:5060:<BR>OPTIONS sip:192.168.161.10 SIP/2.0<BR>
Via: SIP/2.0/UDP 203.208.165.152:5060;branch=z9hG4bK1aac79c3;rport<BR>
Max-Forwards: 70<BR>
From: "asterisk" <sip:asterisk@203.208.165.152>;tag=as14c2610d<BR>
To: <sip:192.168.161.10><BR>
Contact: <sip:asterisk@203.208.165.152><BR>
Call-ID: <A href="mailto:6b77b8f66a61e67d4af4da462e294335@203.208.165.152">6b77b8f66a61e67d4af4da462e294335@203.208.165.152</A><BR>
CSeq: 102 OPTIONS<BR>
User-Agent: Asterisk PBX SVN-moy-mfcr2-r154142<BR>
Date: Fri, 28 Nov 2008 14:24:35 GMT<BR>
Allow: INVITE, ACK, CANCEL, OPTIONS, BY E, REFER, SUBSCRIBE, NOTIFY<BR>
Supported: replaces, timer<BR>
Content-Length: 0<BR>
<BR>
<BR>[Kskyswitchmicroasterisk*CLI> <BR>Retransmitting #1 (no NAT) to 192.168.161.10:5060:<BR>OPTIONS sip:192.168.161.10 SIP/2.0<BR>
Via: SIP/2.0/UDP 203.208.165.152:5060;branch=z9hG4bK1aac79c3;rport<BR>
Max-Forwards: 70<BR>
From: "asterisk" <sip:asterisk@203.208.165.152>;tag=as14c2610d<BR>
To: <sip:192.168.161.10><BR>
Contact: <sip:asterisk@203.208.165.152><BR>
Call-ID: <A href="mailto:6b77b8f66a61e67d4af4da462e294335@203.208.165.152">6b77b8f66a61e67d4af4da462e294335@203.208.165.152</A><BR>
CSeq: 102 OPTIONS<BR>
User-Agent: Asterisk PBX SVN-moy-mfcr2-r154142<BR>
Date: Fri, 28 Nov 2008 14:24:35 GMT<BR>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, R EFER, SUBSCRIBE, NOTIFY<BR>
Supported: replaces, timer<BR>
Content-Length: 0<BR>
<BR>
<BR>---<BR>
[Kskyswitchmicroasterisk*CLI> <BR>[Nov 28 20:09:36] NOTICE[24502]: chan_sip.c:20881 sip_poke_peer: Still have a QUALIFY dialog active, deleting<BR>
[Kskyswitchmicroasterisk*CLI> <BR>[Nov 28 20:09:36] NOTICE[24502]: chan_sip.c:19709 handle_request_register: Registration from '<sip:203.208.165.152>' failed for '70.169.254.29' - No matching peer found<BR>
[Kskyswitchmicroasterisk*CLI> <BR>
<--- SIP read from UDP:192.168.161.10:5060 ---><BR>SIP/2.0 200 OK<BR>
Via: SIP/2.0/UDP 203.208.165.152:5060;branch=z9hG4bK1aac79c3;rport=5060<BR>
From: "asterisk" <sip:asterisk@203.208.165.152>;tag=as14c2610d<BR>
To: <sip:192.168.161.10>;tag=2760514144<BR>
Call-ID: <A href="mailto:6b77b8f66a61e67d4af4da462e294335@203.208.165.152">6b77b8f66a61e67d4af4da462e294335@203.208.165.152</A><BR>
CSeq: 102 OPTIONS<BR>
Allow: INVITE, ACK, PRACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO<BR>
Content-Length: 0<BR>
<[0] MSU<BR>[ 87 eb 0d ]<BR> Network Indicator: 3 Priority: 0 User Part: ISUP (5)<BR> [ c5 ]<BR> OPC 147 DPC 3005 SLS 1<BR> [ bd cb 24 10 ]<BR> CIC: 1<BR> [ 01 00 ]<BR> Message Type: REL<BR> [ 0c ]<BR> --VARIABLE LENGTH PARMS[1]--<BR> Cause Indicator:<BR> Coding Standard: 0<BR> Location: 4<BR> Cause Class: 1<BR> Cause Subclass: 15<BR> Cause: Normal, unspecified (31)<BR> [ 02 84 9f ]<BR>
Len = 12 [ eb 88 09 c5 93 40 ef 12 01 00 10 0 0 ]<BR>FSN: 8 FIB 1<BR>BSN: 107 BIB 1<BR>>[0] MSU<BR>[ eb 88 09 ]<BR> Network Indicator: 3 Priority: 0 User Part: ISUP (5)<BR> [ c5 ]<BR> OPC 3005 DPC 147 SLS 1<BR> [ 93 40 ef 12 ]<BR> CIC: 1<BR> [ 01 00 ]<BR> Message Type: RLC<BR> [ 10 ]<BR>
-- Hungup 'DAHDI/32-1'<BR> > [INSERT INTO cdr ("calldate","dst","dcontext","channel","duration","billsec","disposition","amaflags","uniqueid","start","end") VALUES ('2008-11-28 20:09:17','s','from-outside_c7','DAHDI/32-1',35,0,'NO ANSWER',3,'1227882257.117','2008-11-28 20:09:17','2008-11-28 20:09:52')]<BR> == Everyone is busy/congested at this time (1:0/0/1)<BR> <BR>[Kskyswitchmicroasterisk*CLI> <BR> -- Executing [s@macro-trunkdial:2] Goto("SIP/sky_ktm01-08c167e0", "s-CHANUNAVAIL,1") in new stack<BR> -- Goto (macro-trunkdial,s-CHANUNAVAIL,1)<BR> -- Executing [s-CHANUNAVAIL@macro-trunkdial:1] NoOp("SIP/sky_ktm01-08c167e0", "") in new stack<BR> -- Auto fallthrough, channel 'SIP/sky_ktm01-08c167e0' status is 'CHANUNAVAIL'<BR> <BR><--- Reliably Transmitting (no NAT) to 192.168.161.10:5060 ---><BR>SIP/2.0 503 Service Unavailable<BR>
Via: SIP/2.0/UDP 192.168.161.10:5060;branch=z9hG4bK1689032460;received=192.168.161.10;rport=5060<BR>
From: <sip:993211011@203.208.165.152:5060>;tag=1748521147<BR>
To: <sip:9851060166@203.208.165.152:5060>;tag=as63af2952<BR>
Call-ID: <A href="mailto:2177314594@192.168.161.10">2177314594@192.168.161.10</A><BR>
CSeq: 289 INVITE<BR>
Server: Asterisk PBX SVN-moy-mfcr2-r154142<BR>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<BR>
Supported: replaces, timer<BR>
Con tact: <sip:9851060166@203.208.165.152><BR>
Content-Length: 0<BR>
X-Asterisk-HangupCause: Normal, unspecified<BR>
X-Asterisk-HangupCauseCode: 31<BR>
<BR>
<BR><------------><BR>
<BR>
thanks,<BR>
<BR>
Rana<BR>
<RTE_TEXT></RTE_TEXT><BR><br /><hr />Access your email online and on the go with Windows Live Hotmail. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008' target='_new'>Sign up today.</a></body>
</html>