Need Help Please

Good Afternoon

I am in urgent need of help

Okay my current setup is as follows

I have an Grand-stream GXW410 PSTN Gateway

I have my 4 analog lines coming in the Gateway to trunks on my FreePBX

3 of the 4 lines work perfectly if I phone the 4th line it rings and immediately goes to hold.

On the Gateway it looks like it gets called and then it dials out with 1 of the remaining numbers

On the FreePBX side i can’t understand the logs completely so i need help to get all 4 lines working
the line number in question is 0123615149
Outgoing is 100% works perfect some reason its the incoming calls

Logs attached

2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] Macro("SIP/6000-00000037", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] Set("SIP/6000-00000037", "TOUCH_MONITOR=1510745474.58") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Set("SIP/6000-00000037", "AMPUSER=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6000-00000037", "0?report") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:4] ExecIf("SIP/6000-00000037", "1?Set(REALCALLERIDNUM=6000)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:5] Set("SIP/6000-00000037", "AMPUSER=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:6] GotoIf("SIP/6000-00000037", "0?limit") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:7] Set("SIP/6000-00000037", "AMPUSERCIDNAME=GXWT1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:8] GotoIf("SIP/6000-00000037", "0?report") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:9] Set("SIP/6000-00000037", "AMPUSERCID=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:10] Set("SIP/6000-00000037", "__DIAL_OPTIONS=trw") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:11] Set("SIP/6000-00000037", "CALLERID(all)="GXWT1" <6000>") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:12] GotoIf("SIP/6000-00000037", "0?limit") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:13] ExecIf("SIP/6000-00000037", "1?Set(GROUP(concurrency_limit)=6000)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:14] GosubIf("SIP/6000-00000037", "7?sub-ccss,s,1(from-internal,0123615149)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/6000-00000037", "0?Return()") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Set("SIP/6000-00000037", "CCSS_SETUP=TRUE") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] GosubIf("SIP/6000-00000037", "0?monitor_config,1(from-internal,0123615149):monitor_default,1(from-internal,0123615149)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/6000-00000037", "0?is_exten") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] StackPop("SIP/6000-00000037", "") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] Return("SIP/6000-00000037", "FALSE") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/6000-00000037", "0?Set(CHANNEL(language)=)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:16] GotoIf("SIP/6000-00000037", "1?continue") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (macro-user-callerid,s,30)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:30] Set("SIP/6000-00000037", "CALLERID(number)=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:31] Set("SIP/6000-00000037", "CALLERID(name)=GXWT1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:32] Set("SIP/6000-00000037", "CDR(cnum)=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:33] Set("SIP/6000-00000037", "CDR(cnam)=GXWT1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:34] Set("SIP/6000-00000037", "CHANNEL(language)=en") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Gosub("SIP/6000-00000037", "sub-record-check,s,1(out,0123615149,dontcare)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/6000-00000037", "0?initialized") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Set("SIP/6000-00000037", "__REC_STATUS=INITIALIZED") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] Set("SIP/6000-00000037", "NOW=1510745474") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:4] Set("SIP/6000-00000037", "__DAY=15") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:5] Set("SIP/6000-00000037", "__MONTH=11") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:6] Set("SIP/6000-00000037", "__YEAR=2017") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:7] Set("SIP/6000-00000037", "__TIMESTR=20171115-133114") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:8] Set("SIP/6000-00000037", "__FROMEXTEN=6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:9] Set("SIP/6000-00000037", "__MON_FMT=wav") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:10] NoOp("SIP/6000-00000037", "Recordings initialized") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:11] ExecIf("SIP/6000-00000037", "0?Set(ARG3=dontcare)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:12] Set("SIP/6000-00000037", "REC_POLICY_MODE_SAVE=") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:13] ExecIf("SIP/6000-00000037", "0?Set(REC_STATUS=NO)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:14] GotoIf("SIP/6000-00000037", "3?checkaction") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (sub-record-check,s,17)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:17] GotoIf("SIP/6000-00000037", "1?sub-record-check,out,1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (sub-record-check,out,1)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] NoOp("SIP/6000-00000037", "Outbound Recording Check from 6000 to 0123615149") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Set("SIP/6000-00000037", "RECMODE=dontcare") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/6000-00000037", "1?Goto(routewins)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (sub-record-check,out,7)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:7] Gosub("SIP/6000-00000037", "recordcheck,1(dontcare,out,0123615149)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] NoOp("SIP/6000-00000037", "Starting recording check against dontcare") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] Goto("SIP/6000-00000037", "dontcare") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (sub-record-check,recordcheck,3)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] Return("SIP/6000-00000037", "") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:8] Return("SIP/6000-00000037", "") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/6000-00000037", "0 ?Set(CDR(accountcode)=)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:4] Set("SIP/6000-00000037", "MOHCLASS=default") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:5] Set("SIP/6000-00000037", "_NODEST=") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:6] Macro("SIP/6000-00000037", "dialout-trunk,8,0123615149,,off") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] Set("SIP/6000-00000037", "DIAL_TRUNK=8") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] GosubIf("SIP/6000-00000037", "0?sub-pincheck,s,1()") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6000-00000037", "0?disabletrunk,1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:4] Set("SIP/6000-00000037", "DIAL_NUMBER=0123615149") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:5] Set("SIP/6000-00000037", "DIAL_TRUNK_OPTIONS=trw") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:6] Set("SIP/6000-00000037", "OUTBOUND_GROUP=OUT_8") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:7] GotoIf("SIP/6000-00000037", "1?nomax") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:9] GotoIf("SIP/6000-00000037", "0?skipoutcid") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:10] Set("SIP/6000-00000037", "DIAL_TRUNK_OPTIONS=Tt") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:11] Macro("SIP/6000-00000037", "outbound-callerid,8") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/6000-00000037", "0?Set(CALLERPRES()=)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] ExecIf("SIP/6000-00000037", "0?Set(REALCALLERIDNUM=6000)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6000-00000037", "1?normcid") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:6] Set("SIP/6000-00000037", "USEROUTCID=") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:7] Set("SIP/6000-00000037", "EMERGENCYCID=") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:8] Set("SIP/6000-00000037", "TRUNKOUTCID=0123615151") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:9] GotoIf("SIP/6000-00000037", "1?trunkcid") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Goto (macro-outbound-callerid,s,14)
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:14] ExecIf("SIP/6000-00000037", "1?Set(CALLERID(all)=0123615151)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/6000-00000037", "0?Set(CALLERID(all)=)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:16] ExecIf("SIP/6000-00000037", "0?Set(CALLERID(all)=)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:17] ExecIf("SIP/6000-00000037", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:18] Set("SIP/6000-00000037", "CDR(outbound_cnum)=0123615151") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:19] Set("SIP/6000-00000037", "CDR(outbound_cnam)=") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:12] GosubIf("SIP/6000-00000037", "0?sub-flp-8,s,1()") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:13] Set("SIP/6000-00000037", "OUTNUM=0123615149") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:14] Set("SIP/6000-00000037", "custom=SIP/6000") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/6000-00000037", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:16] ExecIf("SIP/6000-00000037", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:17] Macro("SIP/6000-00000037", "dialout-trunk-predial-hook,") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] MacroExit("SIP/6000-00000037", "") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:18] GotoIf("SIP/6000-00000037", "0?bypass,1") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:19] ExecIf("SIP/6000-00000037", "1?Set(CONNECTEDLINE(num,i)=0123615149)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:20] ExecIf("SIP/6000-00000037", "1?Set(CONNECTEDLINE(name,i)=CID:0123615151)") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:21] GotoIf("SIP/6000-00000037", "0?customtrunk") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:22] Dial("SIP/6000-00000037", "SIP/6000/0123615149,300,Tt") in new stack
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] netsock2.c: == Using SIP RTP TOS bits 184
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] netsock2.c: == Using SIP RTP CoS mark 5
[2017-11-15 13:31:14] VERBOSE[5160][C-00000011] app_dial.c: -- Called SIP/6000/0123615149
[2017-11-15 13:31:16] VERBOSE[5160][C-00000011] app_dial.c: -- SIP/6000-00000038 is ringing
[2017-11-15 13:31:17] VERBOSE[5160][C-00000011] app_dial.c: -- SIP/6000-00000038 answered SIP/6000-00000037
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] Macro("SIP/6000-00000037", "hangupcall,") in new stack
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/6000-00000037", "0?Set(CDR(recordingfile)=.wav)") in new stack
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:2] GotoIf("SIP/6000-00000037", "1?theend") in new stack
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: -- Goto (macro-hangupcall,s,4)
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: -- Executing [[email protected]:4] Hangup("SIP/6000-00000037", "") in new stack
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/6000-00000037' in macro 'hangupcall'
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/6000-00000037'
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/6000-00000037' in macro 'dialout-trunk'
[2017-11-15 13:31:19] VERBOSE[5160][C-00000011] pbx.c: == Spawn extension (from-internal, 0123615149, 6) exited non-zero on 'SIP/6000-00000037'

If these log lines represent an inbound call, the problem is in line 1

Executing [[email protected]:1] 

The call arrives in context from-internal but the context should be from-trunk for inbound calls.

i am not sure what happened now the line in question is working and having same problem with 1 of the other lines