Effectue un appel sur dahdi channel 5 lorsque il est HS en faisant
'pri intense debug span 1' pastebin les traces et colle le lien ici.
Effectue un appel sur dahdi channel 5 lorsque il est HS en faisant
'pri intense debug span 1' pastebin les traces et colle le lien ici.
Dernière modification par Reaper ; 11/12/2011 à 19h05.
la commande intense n'est pas existante sur le core, je peux juste faire un
le problème est sur les appels entrant donc le channel 5 sera zapper pour passer sur le canal libre suivant.Code:pri set debug "0 1 2 on off file" span 1
je lance quand même la commande et je colle le résultat.
voici le résultat avecCode:pri set debug on span 1Code:< Protocol Discriminator: Q.931 (8) len=36 < TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent from originator) < Message Type: SETUP (5) < [a1] < Sending Complete (len= 1) < [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 a9 83 8a] < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 < ChanSel: As indicated in following octets < Ext: 1 Coding: 0 Number Specified Channel Type: 3 < Ext: 1 Channel: 10 Type: CPE] < [6c 0c 01 83 30 37 39 37 39 34 31 32 33 38] < Calling Number (len=14) [ Ext: 0 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) < Presentation: Presentation allowed of network provided number (3) '0797941238' ] < [70 04 81 31 32 32] < Called Number (len= 6) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '122' ] -- Making new call for cref 2107 Received message for call 0x2aaac8768ab0 on 0x1ef475b0 TEI/SAPI 0/0, call->pri is 0x1ef475b0 TEI/SAPI 0/0 -- Processing Q.931 Call Setup -- Processing IE 161 (cs0, Sending Complete) -- Processing IE 4 (cs0, Bearer Capability) -- Processing IE 24 (cs0, Channel Identification) -- Processing IE 108 (cs0, Calling Party Number) -- Processing IE 112 (cs0, Called Party Number) q931.c:6966 post_handle_q931_message: Call 2107 enters state 6 (Call Present). Hold state: Idle q931.c:4594 q931_call_proceeding: Call 2107 enters state 9 (Incoming Call Proceeding). Hold state: Idle > DL-DATA request > Protocol Discriminator: Q.931 (8) len=10 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: CALL PROCEEDING (2) TEI=0 Transmitting N(S)=16, window is open V(A)=16 K=7
Code:> Protocol Discriminator: Q.931 (8) len=10 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: CALL PROCEEDING (2) > [18 03 a9 83 8a] > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 > ChanSel: As indicated in following octets > Ext: 1 Coding: 0 Number Specified Channel Type: 3 > Ext: 1 Channel: 10 Type: CPE] -- Accepting call from '0797941238' to '122' on channel 0/10, span 1 -- Executing [122@from-pstn:1] Set("DAHDI/10-1", "__FROM_DID=122") in new stack -- Executing [122@from-pstn:2] Gosub("DAHDI/10-1", "app-blacklist-check,s,1") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/10-1", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("DAHDI/10-1", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("DAHDI/10-1", "") in new stack -- Executing [122@from-pstn:3] ExecIf("DAHDI/10-1", "1 ?Set(CALLERID(name)=0797941238)") in new stack -- Executing [122@from-pstn:4] Set("DAHDI/10-1", "__CALLINGPRES_SV=allowed") in new stack -- Executing [122@from-pstn:5] Set("DAHDI/10-1", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [122@from-pstn:6] Goto("DAHDI/10-1", "from-did-direct,122,1") in new stack -- Goto (from-did-direct,122,1) -- Executing [122@from-did-direct:1] ExecIf("DAHDI/10-1", "0?Set(__RINGTIMER=0)") in new stack -- Executing [122@from-did-direct:2] Macro("DAHDI/10-1", "exten-vm,novm,122,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("DAHDI/10-1", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("DAHDI/10-1", "AMPUSER=0797941238") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/10-1", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/10-1", "1?Set(REALCALLERIDNUM=0797941238)") in new stack -- Executing [s@macro-user-callerid:4] Set("DAHDI/10-1", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:5] Set("DAHDI/10-1", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/10-1", "1?report") in new stack -- Goto (macro-user-callerid,s,12) -- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/10-1", "0?continue") in new stack -- Executing [s@macro-user-callerid:13] Set("DAHDI/10-1", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:14] GotoIf("DAHDI/10-1", "1?continue") in new stack -- Goto (macro-user-callerid,s,25) -- Executing [s@macro-user-callerid:25] Set("DAHDI/10-1", "CALLERID(number)=0797941238") in new stack -- Executing [s@macro-user-callerid:26] Set("DAHDI/10-1", "CALLERID(name)=0797941238") in new stack -- Executing [s@macro-exten-vm:2] Set("DAHDI/10-1", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("DAHDI/10-1", "__EXTTOCALL=122") in new stack -- Executing [s@macro-exten-vm:4] Set("DAHDI/10-1", "__PICKUPMARK=122") in new stack -- Executing [s@macro-exten-vm:5] Set("DAHDI/10-1", "RT=") in new stack -- Executing [s@macro-exten-vm:6] Macro("DAHDI/10-1", "record-enable,122,IN") in new stack -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/10-1", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] ExecIf("DAHDI/10-1", "0?MacroExit()") in new stack -- Executing [s@macro-record-enable:5] GotoIf("DAHDI/10-1", "0?Group:OUT") in new stack -- Goto (macro-record-enable,s,14) -- Executing [s@macro-record-enable:14] GotoIf("DAHDI/10-1", "1?IN") in new stack -- Goto (macro-record-enable,s,18) -- Executing [s@macro-record-enable:18] ExecIf("DAHDI/10-1", "1?MacroExit()") in new stack -- Executing [s@macro-exten-vm:7] Macro("DAHDI/10-1", "dial-one,,tr,122") in new stack -- Executing [s@macro-dial-one:1] Set("DAHDI/10-1", "DEXTEN=122") in new stack -- Executing [s@macro-dial-one:2] Set("DAHDI/10-1", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:3] GosubIf("DAHDI/10-1", "0?screen,1") in new stack -- Executing [s@macro-dial-one:4] GosubIf("DAHDI/10-1", "0?cf,1") in new stack -- Executing [s@macro-dial-one:5] GotoIf("DAHDI/10-1", "1?skip1") in new stack -- Goto (macro-dial-one,s,8)
Code:-- Executing [s@macro-dial-one:8] GotoIf("DAHDI/10-1", "0?nodial") in new stack -- Executing [s@macro-dial-one:9] GotoIf("DAHDI/10-1", "0?continue") in new stack -- Executing [s@macro-dial-one:10] Set("DAHDI/10-1", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:11] GotoIf("DAHDI/10-1", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [s@macro-dial-one:23] GotoIf("DAHDI/10-1", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] ExecIf("DAHDI/10-1", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [s@macro-dial-one:25] GotoIf("DAHDI/10-1", "0?nodial") in new stack -- Executing [s@macro-dial-one:26] GosubIf("DAHDI/10-1", "1?dstring,1:dlocal,1") in new stack -- Executing [dstring@macro-dial-one:1] Set("DAHDI/10-1", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("DAHDI/10-1", "DEVICES=122") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("DAHDI/10-1", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("DAHDI/10-1", "0?Set(DEVICES=22)") in new stack -- Executing [dstring@macro-dial-one:5] Set("DAHDI/10-1", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("DAHDI/10-1", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("DAHDI/10-1", "THISDIAL=SIP/122") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("DAHDI/10-1", "1?zap2dahdi,1") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("DAHDI/10-1", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("DAHDI/10-1", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("DAHDI/10-1", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("DAHDI/10-1", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("DAHDI/10-1", "THISPART2=SIP/122") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("DAHDI/10-1", "0?Set(THISPART2=DAHDI/122)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("DAHDI/10-1", "NEWDIAL=SIP/122&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("DAHDI/10-1", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("DAHDI/10-1", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("DAHDI/10-1", "THISDIAL=SIP/122") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("DAHDI/10-1", "") in new stack -- Executing [dstring@macro-dial-one:9] Set("DAHDI/10-1", "DSTRING=SIP/122&") in new stack -- Executing [dstring@macro-dial-one:10] Set("DAHDI/10-1", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:11] GotoIf("DAHDI/10-1", "0?begin") in new stack -- Executing [dstring@macro-dial-one:12] Set("DAHDI/10-1", "DSTRING=SIP/122") in new stack -- Executing [dstring@macro-dial-one:13] Return("DAHDI/10-1", "") in new stack -- Executing [s@macro-dial-one:27] GotoIf("DAHDI/10-1", "0?nodial") in new stack -- Executing [s@macro-dial-one:28] GotoIf("DAHDI/10-1", "1?skiptrace") in new stack -- Goto (macro-dial-one,s,30) -- Executing [s@macro-dial-one:30] Set("DAHDI/10-1", "D_OPTIONS=tr") in new stack -- Executing [s@macro-dial-one:31] ExecIf("DAHDI/10-1", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [s@macro-dial-one:32] ExecIf("DAHDI/10-1", "0?SIPAddHeader()") in new stack -- Executing [s@macro-dial-one:33] ExecIf("DAHDI/10-1", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [s@macro-dial-one:34] GosubIf("DAHDI/10-1", "0?qwait,1") in new stack -- Executing [s@macro-dial-one:35] Set("DAHDI/10-1", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:36] Set("DAHDI/10-1", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:37] GotoIf("DAHDI/10-1", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:38] Dial("DAHDI/10-1", "SIP/122,,tr") in new stack
Code:== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Everyone is busy/congested at this time (1:0/0/1) -- Executing [s@macro-dial-one:39] ExecIf("DAHDI/10-1", "0?Set(DIALSTATUS=)") in new stack -- Executing [s@macro-dial-one:40] GosubIf("DAHDI/10-1", "0?s-CHANUNAVAIL,1") in new stack -- Executing [s@macro-dial-one:41] MacroExit("DAHDI/10-1", "") in new stack -- Executing [s@macro-exten-vm:8] GotoIf("DAHDI/10-1", "0?exit") in new stack -- Executing [s@macro-exten-vm:9] Set("DAHDI/10-1", "SV_DIALSTATUS=CHANUNAVAIL") in new stack -- Executing [s@macro-exten-vm:10] GosubIf("DAHDI/10-1", "0?docfu,1") in new stack -- Executing [s@macro-exten-vm:11] GosubIf("DAHDI/10-1", "0?docfb,1") in new stack -- Executing [s@macro-exten-vm:12] Set("DAHDI/10-1", "DIALSTATUS=CHANUNAVAIL") in new stack -- Executing [s@macro-exten-vm:13] ExecIf("DAHDI/10-1", "0?MacroExit()") in new stack -- Executing [s@macro-exten-vm:14] GotoIf("DAHDI/10-1", "1?s-CHANUNAVAIL,1") in new stack -- Goto (macro-exten-vm,s-CHANUNAVAIL,1) -- Executing [s-CHANUNAVAIL@macro-exten-vm:1] GotoIf("DAHDI/10-1", "0?exit,1") in new stack -- Executing [s-CHANUNAVAIL@macro-exten-vm:2] PlayTones("DAHDI/10-1", "congestion") in new stack -- Executing [s-CHANUNAVAIL@macro-exten-vm:3] Congestion("DAHDI/10-1", "10") in new stack > DL-DATA request > Protocol Discriminator: Q.931 (8) len=13 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: PROGRESS (3) TEI=0 Transmitting N(S)=17, window is open V(A)=16 K=7 > Protocol Discriminator: Q.931 (8) len=13 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: PROGRESS (3) > [08 02 81 94] > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) > Ext: 1 Cause: Unknown (20), class = Normal Event (1) ] > [1e 02 81 88] > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1) > Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ] -- Registered IAX2 '110' (AUTHENTICATED) at 127.0.0.1:45909 -- Registered IAX2 '112' (AUTHENTICATED) at 127.0.0.1:39399 -- Registered IAX2 '117' (AUTHENTICATED) at 127.0.0.1:44868 -- Registered IAX2 '115' (AUTHENTICATED) at 127.0.0.1:57559 -- Registered IAX2 '113' (AUTHENTICATED) at 127.0.0.1:59283 == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on 'DAHDI/10-1' in macro 'exten-vm' == Spawn extension (from-did-direct, 122, 2) exited non-zero on 'DAHDI/10-1' -- Executing [h@from-did-direct:1] Macro("DAHDI/10-1", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/10-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall:3] Hangup("DAHDI/10-1", "") in new stack == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'DAHDI/10-1' in macro 'hangupcall' == Spawn extension (from-did-direct, h, 1) exited non-zero on 'DAHDI/10-1' q931_hangup: other hangup NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Incoming Call Proceeding, peerstate Outgoing Call Proceeding, hold-state Idle q931.c:4845 q931_disconnect: Call 2107 enters state 11 (Disconnect Request). Hold state: Idle
Code:> DL-DATA request > Protocol Discriminator: Q.931 (8) len=9 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: DISCONNECT (69) TEI=0 Transmitting N(S)=18, window is open V(A)=18 K=7 > Protocol Discriminator: Q.931 (8) len=9 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: DISCONNECT (69) > [08 02 81 94] > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) > Ext: 1 Cause: Unknown (20), class = Normal Event (1) ] -- Hungup 'DAHDI/10-1' < Protocol Discriminator: Q.931 (8) len=5 < TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent from originator) < Message Type: RELEASE (77) Received message for call 0x2aaac8768ab0 on 0x1ef475b0 TEI/SAPI 0/0, call->pri is 0x1ef475b0 TEI/SAPI 0/0 q931.c:7237 post_handle_q931_message: Call 2107 enters state 0 (Null). Hold state: Idle q931_hangup: other hangup NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request, hold-state Idle > DL-DATA request > Protocol Discriminator: Q.931 (8) len=9 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to originator) > Message Type: RELEASE COMPLETE (90) TEI=0 Transmitting N(S)=19, window is open V(A)=19 K=7 > Protocol Discriminator: Q.931 (8) len=9 > TEI=0 Call Ref: len= 2 (reference 2107/0x83B) (Sent to 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) ] q931_hangup: other hangup NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
Dans ce cas fais la chose suivante, fais en sorte que l'ensemble de channels ne fonctionne pas, lance un appel entrant, effectue un debug, et montre moi encore une fois "dahdi show channel x" de n'importe quel channel. Par ce que la je ne vois pas de problème pour l'instant.
Voici le résultat après avoir appeler 30 fois sur le même numéro.
par contre je ne sais pas si ma fréquence d'appel est suffisante car le temps que je fasse le 31 ème appel pour voir si cela me donnais un busy now le canal est pris après étais dahdi 2/1
Code:dahdi show channel 31 Channel: 31 File Descriptor: 41 Span: 1 Extension: Dialing: no Context: from-pstn Caller ID: Calling TON: 1 Caller ID name: Mailbox: none Destroy: 0 InAlarm: 0 Signalling Type: ISDN PRI Radio: 0 Owner: <None> Real: <None> Callwait: <None> Threeway: <None> Confno: -1 Propagated Conference: -1 Real in conference: 0 DSP: no Busy Detection: no TDD: no Relax DTMF: no Dialing/CallwaitCAS: 0/0 Default law: alaw Fax Handled: no Pulse phone: no DND: no Echo Cancellation: 1 taps (unless TDM bridged) currently OFF Wait for dialtone: 0ms PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook
C'est normal asterisk prends les canaux un par un en rotation, donc ça c'est l’état de channel lorsque aucun appel entrant ne passe pas ?fréquence d'appel est suffisante car le temps que je fasse le 31 ème appel pour voir si cela me donnais un busy now le canal est pris après étais dahdi 2/1