Hello,
I have an issue in my freepbx device.Issue with outbound calls. Randomly all ciruits are busy and need to restart asterisk and dhadi and after it works for approx 2 hours.During this No issue with inbound calls.
PRI debug log for better understand
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [0568178775@from-internal:1] Macro(“SIP/7003-00000045”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/7003-00000045”, “TOUCH_MONITOR=1506668421.155”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/7003-00000045”, “AMPUSER=7003”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/7003-00000045”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/7003-00000045”, “1?Set(REALCALLERIDNUM=7003)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/7003-00000045”, “AMPUSER=7003”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/7003-00000045”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/7003-00000045”, “AMPUSERCIDNAME=7003”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/7003-00000045”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/7003-00000045”, “AMPUSERCID=7003”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/7003-00000045”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/7003-00000045”, “CALLERID(all)=“7003” <7003>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/7003-00000045”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/7003-00000045”, “1?Set(GROUP(concurrency_limit)=7003)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/7003-00000045”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/7003-00000045”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“SIP/7003-00000045”, “CALLERID(number)=7003”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/7003-00000045”, “CALLERID(name)=7003”) in new stack
– Executing [s@macro-user-callerid:31] GotoIf(“SIP/7003-00000045”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/7003-00000045”, “CDR(cnam)=7003”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/7003-00000045”, “CDR(cnum)=7003”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/7003-00000045”, “CHANNEL(language)=en”) in new stack
– Executing [0568178775@from-internal:2] Gosub(“SIP/7003-00000045”, “sub-record-check,s,1(out,0568178775,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/7003-00000045”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/7003-00000045”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/7003-00000045”, “NOW=1506668421”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/7003-00000045”, “__DAY=29”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/7003-00000045”, “__MONTH=09”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/7003-00000045”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/7003-00000045”, “__TIMESTR=20170929-110021”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/7003-00000045”, “__FROMEXTEN=7003”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/7003-00000045”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/7003-00000045”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/7003-00000045”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/7003-00000045”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/7003-00000045”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/7003-00000045”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/7003-00000045”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/7003-00000045”, “Outbound Recording Check from 7003 to 0568178775”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/7003-00000045”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/7003-00000045”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/7003-00000045”, “recordcheck,1(dontcare,out,0568178775)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/7003-00000045”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/7003-00000045”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/7003-00000045”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/7003-00000045”, “”) in new stack
– Executing [0568178775@from-internal:3] ExecIf(“SIP/7003-00000045”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [0568178775@from-internal:4] Set(“SIP/7003-00000045”, “MOHCLASS=default”) in new stack
– Executing [0568178775@from-internal:5] ExecIf(“SIP/7003-00000045”, “1?Set(TRUNKCIDOVERRIDE=7000)”) in new stack
– Executing [0568178775@from-internal:6] Set(“SIP/7003-00000045”, “_NODEST=”) in new stack
– Executing [0568178775@from-internal:7] Macro(“SIP/7003-00000045”, “dialout-trunk,2,0568178775,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/7003-00000045”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/7003-00000045”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/7003-00000045”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/7003-00000045”, “DIAL_NUMBER=0568178775”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/7003-00000045”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/7003-00000045”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/7003-00000045”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/7003-00000045”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/7003-00000045”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/7003-00000045”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/7003-00000045”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/7003-00000045”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/7003-00000045”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“SIP/7003-00000045”, “0?Set(REALCALLERIDNUM=7003)”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/7003-00000045”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“SIP/7003-00000045”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/7003-00000045”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] Set(“SIP/7003-00000045”, “TRUNKOUTCID=7000”) in new stack
– Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/7003-00000045”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/7003-00000045”, “1?Set(CALLERID(all)=7000)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/7003-00000045”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/7003-00000045”, “1?Set(CALLERID(all)=7000)”) in new stack
– Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/7003-00000045”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/7003-00000045”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:20] Set(“SIP/7003-00000045”, “CDR(outbound_cnum)=7000”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“SIP/7003-00000045”, “CDR(outbound_cnam)=”) in new stack
[2017-09-29 11:00:21] WARNING[3792]: func_cdr.c:377 cdr_write_callback: CDR requires a value (CDR(variable)=value)
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/7003-00000045”, “1?sub-flp-2,s,1()”) in new stack
– Executing [s@sub-flp-2:1] ExecIf(“SIP/7003-00000045”, “1?Return()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/7003-00000045”, “OUTNUM=0568178775”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/7003-00000045”, “custom=DAHDI/r0”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/7003-00000045”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/7003-00000045”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/7003-00000045”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/7003-00000045”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/7003-00000045”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/7003-00000045”, “1?Set(CONNECTEDLINE(num,i)=0568178775)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/7003-00000045”, “1?Set(CONNECTEDLINE(name,i)=CID:7000)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/7003-00000045”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7000)”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/7003-00000045”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:23] Dial(“SIP/7003-00000045”, “DAHDI/r0/0568178775,300,T”) in new stack
PRI Span: 1 – Making new call for cref 32797
– Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=40
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 29/0x1D) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=17, window is open V(A)=17 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=40
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 29/0x1D) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 9e]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 30 Type: CPE]
PRI Span: 1 > [1e 02 80 83]
PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
PRI Span: 1 > [6c 06 21 80 37 30 30 30]
PRI Span: 1 > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation permitted, user number not screened (0) ‘7000’ ]
PRI Span: 1 > [70 0b 80 30 35 36 38 31 37 38 37 37 35]
PRI Span: 1 > Called Number (len=13) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) ‘0568178775’ ]
PRI Span: 1 q931.c:6036 q931_setup: Call 32797 enters state 1 (Call Initiated). Hold state: Idle
– Called DAHDI/r0/0568178775
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 29/0x1D) (Sent to originator)
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
PRI Span: 1 < [08 02 82 a2]
PRI Span: 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Cause: Circuit/channel congestion (34), class = Network Congestion (resource unavailable) (2) ]
PRI Span: 1 Received message for call 0x7fc91c007ef0 on link 0x3268360 TEI/SAPI 0/0
PRI Span: 1 – Processing IE 8 (cs0, Cause)
PRI Span: 1 q931.c:8567 post_handle_q931_message: Call 32797 enters state 0 (Null). Hold state: Idle
Span 1: Processing event PRI_EVENT_HANGUP(6)
– Span 1: Channel 0/30 got hangup, cause 34
– DAHDI/i1/0568178775-57 is circuit-busy
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:32797
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0x7fc91c007ef0, ourstate Null, peerstate Null, hold-state Idle
– Hungup ‘DAHDI/i1/0568178775-57’
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:24] NoOp(“SIP/7003-00000045”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [s@macro-dialout-trunk:25] GotoIf(“SIP/7003-00000045”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/7003-00000045”, “RC=34”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/7003-00000045”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [34@macro-dialout-trunk:1] Goto(“SIP/7003-00000045”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/7003-00000045”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“SIP/7003-00000045”, “1?Set(CALLERID(number)=7003)”) in new stack
– Executing [0568178775@from-internal:8] Macro(“SIP/7003-00000045”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/7003-00000045”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/7003-00000045”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/7003-00000045”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/7003-00000045”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <SIP/7003-00000045> Playing ‘all-circuits-busy-now.alaw’ (language ‘en’)
– <SIP/7003-00000045> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [s@macro-outisbusy:5] Congestion(“SIP/7003-00000045”, “20”) in new stack
[2017-09-29 11:00:25] WARNING[1867][C-00000056]: channel.c:4910 ast_prod: Prodding channel ‘SIP/7003-00000045’ failed
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/7003-00000045’ in macro ‘outisbusy’
== Spawn extension (from-internal, 0568178775, 8) exited non-zero on ‘SIP/7003-00000045’
– Executing [h@from-internal:1] Macro(“SIP/7003-00000045”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/7003-00000045”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/7003-00000045”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/7003-00000045”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/7003-00000045’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/7003-00000045’