这是执行 pri debug span 的 log
-- Executing [0916840931@from-exten-sip:1] NoOp("SIP/8001-b7d00598", "make call from 8001 to 0916840931") in new stack
-- Executing [0916840931@from-exten-sip:2] Set("SIP/8001-b7d00598", "CHANNEL(language)=cn") in new stack
-- Executing [0916840931@from-exten-sip:3] Set("SIP/8001-b7d00598", "FRI2_ROUTERLINE=1") in new stack
-- Executing [0916840931@from-exten-sip:4] Set("SIP/8001-b7d00598", "__FRI2_EFET_ONETOUCHMONITOR=1") in new stack
-- Executing [0916840931@from-exten-sip:5] AGI("SIP/8001-b7d00598", "agi://127.0.0.1/router?routerline=1&callednum=0916840931") in new stack
-- AGI Script Executing Application: (set) Options: (FRI2_SESSIONID=1269163084832181)
-- AGI Script Executing Application: (set) Options: (__FRI2_SESSIONID=1269163084832181)
-- AGI Script Executing Application: (set) Options: (CDR(userfield)=1269163084832181)
-- AGI Script Executing Application: (AGI) Options: (agi://127.0.0.1/sysautomon?type=caller&number=8001)
-- AGI Script agi://127.0.0.1/sysautomon?type=caller&number=8001 completed, returning 0
-- AGI Script Executing Application: (set) Options: (FRI2_AGISTATUS=1)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_MODE=2)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_DEFINED=5)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_EXTENSION=0916840931)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_CALLERIDNUM=8001)
-- AGI Script agi://127.0.0.1/router?routerline=1&callednum=0916840931 completed, returning 0
-- Executing [0916840931@from-exten-sip:6] ExecIf("SIP/8001-b7d00598", "0|Macro|REASON|NOVALID") in new stack
-- Executing [0916840931@from-exten-sip:7] ExecIf("SIP/8001-b7d00598", "0|Hangup") in new stack
-- Executing [0916840931@from-exten-sip:8] Set("SIP/8001-b7d00598", "CALLERID(all)=8001 <8001>") in new stack
-- Executing [0916840931@from-exten-sip:9] ExecIf("SIP/8001-b7d00598", "0|AGI|agi://127.0.0.1/dial_local?callednum=0916840931&typeof=5") in new stack
-- Executing [0916840931@from-exten-sip:10] ExecIf("SIP/8001-b7d00598", "1|AGI|agi://127.0.0.1/dial_outbound?callednum=0916840931&trunkid=5") in new stack
-- AGI Script Executing Application: (dial) Options: (DAHDI/R0/0916840931|60|tTkK)
-- Making new call for cr 32770
-- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (
len=37
> Call Ref: len= 2 (reference 2/0x2) (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 a1 83 9f]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Preferred Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 31 ]
> [6c 06 00 81 38 30 30 31]
> Calling Number (len=
[ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0)
> Presentation: Presentation permitted, user number passed network screening (1) '8001' ]
> [70 0b 80 30 39 31 36 38 34 30 39 33 31]
> Called Number (len=13) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '0916840931' ]
> [a1]
> Sending Complete (len= 1)
q931.c:3134 q931_setup: call 32770 on channel 31 enters state 1 (Call Initiated)
-- Called R0/0916840931
< Protocol Discriminator: Q.931 (
len=10
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 9f]
< 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: 31 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3683 q931_receive: call 32770 on channel 31 enters state 3 (Outgoing call Proceeding)
-- DAHDI/62-1 is proceeding passing it to SIP/8001-b7d00598
< Protocol Discriminator: Q.931 (
len=9
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: ALERTING (1)
< [1e 02 84 88]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the remote user (4)
< Ext: 1 Progress Description: Inband information or appropriate pattern now available. (
]
-- Processing IE 30 (cs0, Progress Indicator)
q931.c:3596 q931_receive: call 32770 on channel 31 enters state 4 (Call Delivered)
[Mar 21 17:18:11] WARNING[20142]: chan_dahdi.c:1774 dahdi_enable_ec: Unable to enable echo cancellation on channel 62 (No such device)
-- DAHDI/62-1 is ringing
-- DAHDI/62-1 is busy
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Delivered, peerstate Call Received
q931.c:3015 q931_disconnect: call 32770 on channel 31 enters state 11 (Disconnect Request)
> Protocol Discriminator: Q.931 (
len=9
> Call Ref: len= 2 (reference 2/0x2) (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) ]
-- Hungup 'DAHDI/62-1'
== Everyone is busy/congested at this time (1:1/0/0)
-- AGI Script agi://127.0.0.1/dial_outbound?callednum=0916840931&trunkid=5 completed, returning 0
-- Executing [0916840931@from-exten-sip:11] Hangup("SIP/8001-b7d00598", "") in new stack
== Spawn extension (from-exten-sip, 0916840931, 11) exited non-zero on 'SIP/8001-b7d00598'
< Protocol Discriminator: Q.931 (
len=5
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: RELEASE (77)
q931.c:3801 q931_receive: call 32770 on channel 31 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request
> Protocol Discriminator: Q.931 (
len=9
> Call Ref: len= 2 (reference 2/0x2) (Originator)
> Message type: RELEASE COMPLETE (90)
> [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: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
谢谢