why not Alerting msg in libpri?<br>
<br>
<br>
<br>
pri call to ...<br>
<br>
>> SETUP<br>
<br>
<< CALL PROCEEDING<br>
<br>
<<CONNECT<br>
<br>
>> CONNECT ACKNOWLEDGE<br>
<br>
<< DISCONNECT<br>
<br>
>> RELEASE <br>
<br>
<br>
<< RELEASE COMPLETE<br>
<br>
<br>
[root@dev root]# asterisk -r<br>
Asterisk 1.2.4, Copyright (C) 1999 - 2006 Digium, Inc. and others.<br>
Created by Mark Spencer <<a href="mailto:markster@digium.com">markster@digium.com</a>><br>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.<br>
This is free software, with components licensed under the GNU General Public<br>
License version 2 and other licenses; you are welcome to redistribute it under<br>
certain conditions. Type 'show license' for details.<br>
=========================================================================<br>
Connected to Asterisk 1.2.4 currently running on dev (pid = 1741)<br>
Verbosity is at least 3<br>
dev*CLI> pri debug span <br>
1 2 3 4 <br>
dev*CLI> pri debug span 1<br>
Enabled debugging on span 1<br>
Testing now!1 Testing now!1 -- Registered SIP '2008' at <a href="http://192.168.139.59">192.168.139.59</a> port 7915 expires 120<br>
Testing now!1 Testing now!1 Testing now!1 -- Executing Ringing("SIP/2008-f941", "") in new stack<br>
-- Executing Dial("SIP/2008-f941", "Zap/g1/2001") in new stack<br>
-- Making new call for cr 32770<br>
-- Requested transfer capability: 0x00 - SPEECH<br>
> Protocol Discriminator: Q.931 (8) len=36<br>
> Call Ref: len= 2 (reference 2/0x2) (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>
>
Ext: 1 User information layer 1: A-Law (35)<br>
> [18 03 -- Executing Playback("Zap/95-1", "demo-thanks") in new stack<br>
-- Accepting call from '2008' to '2001' on channel 0/2, span 4<br>
a1 83 82]<br>
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Preferred Dchan: 0<br>
>
ChanSel: Reserved<br>
>
Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
>
Ext: 1 Channel: 2 ]<br>
> [28 03 64 65 76]<br>
> Display (len= 3) ?÷ê@, ?@′÷ê@???@8uJ@, ?@′÷ê@j??@8uJ@€w?@>[ dev ]<br>
> [6c 06 21 80 32 30 30 38]<br>
> Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)<br>
>
Presentation: Presentation permitted, user number not screened (0)
'2008' ]<br>
> [70 05 80 32 30 30 31]<br>
> Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '2001' ]<br>
> [a1]I> <br>
> Sending Complete (len= 1)<br>
< Protocol Discriminator: Q.931 (8) len=10<br>
< Call Ref: len= 2 (reference 2/0x2) (Terminator)<br>
< Message type: CALL PROCEEDING (2)<br>
< [18 03 a9 83 82]<br>
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0<br>
<
ChanSel: Reserved<br>
<
Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
<
Ext: 1 Channel: 2 ]<br>
-- Processing IE 24 (cs0, Channel Identification)<br>
-- Called g1/2001<br>
< Protocol Discriminator: Q.931 (8) len=14<br>
< Call Ref: len= 2 (reference 2/0x2) (Terminator)<br>
< Message type: CONNECT (7)<br>
< [18 03 a9 83 82]<br>
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0<br>
<
ChanSel: Reserved<br>
<
Ext: 1 Coding: 0 Number Specified Channel
Type: 3<br>
<
Ext: 1 Channel: 2 ]<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>
-- Processing IE 24 (cs0, Channel Identification)<br>
-- Processing IE 30 (cs0, Progress Indicator)<br>
> Protocol Discriminator: Q.931 (8) len=5<br>
> Call Ref: len= 2 (reference 2/0x2) (Originator)<br>
> Message type: CONNECT ACKNOWLEDGE (15)<br>
-- Zap/2-1 is proceeding passing it to SIP/2008-f941<br>
-- Zap/2-1 answered SIP/2008-f941<br>
-- Playing 'demo-thanks' (language 'en')<br>
Apr 17 21:00:47 WARNING[2063]: pbx.c:2403 __ast_pbx_run: Timeout, but no rule 't' in context 'default'<br>
Testing now!1 -- Hungup 'Zap/95-1'<br>
< Protocol Discriminator: Q.931 (8) len=9<br>
< Call Ref: len= 2 (reference 2/0x2) (Terminator)<br>
< Message type: DISCONNECT (69)<br>
< [08 02 81 90]<br>
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0:
0 Location: Private network serving the local user (1)<br>
<
Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]<br>
-- Processing IE 8 (cs0, Cause)<br>
-- Channel 0/2, span 1 got hangup request<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request<br>
> Protocol Discriminator: Q.931 (8) len=9<br>
> Call Ref: len= 2 (reference 2/0x2) (Originator)<br>
> Message type: RELEASE (77)<br>
> [08 02 81 90]<br>
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0:
0 Location: Private network serving the local user (1)<br>
>
Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]<br>
-- Hungup 'Zap/2-1'<br>
== Spawn extension (default, 200, 2) exited non-zero on 'SIP/2008-f941'<br>
Testing now!1 < Protocol Discriminator: Q.931 (8) len=9<br>
< Call Ref: len= 2 (reference 2/0x2) (Terminator)<br>
< Message type: RELEASE COMPLETE (90)<br>
< [08 02 81 90]<br>
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0:
0 Location: Private network serving the local user (1)<br>
<
Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]<br>
-- Processing IE 8 (cs0, Cause)<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null<br>
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null<br>
dev*CLI> <br>