Hi guys,
I have the freepbx 14 and grandstream phones and im unable to get the call forwarding working.
I have a pots line connected to dahdi and that is where im failing to get the call forwarding working. i have some debugs below, appreciate your help.
Regards,
-- Now forwarding DAHDI/1-1 to 'Local/9559082534@from-internal' (thanks to PJSIP/6491-00000132)
[2020-05-29 13:52:51] NOTICE[1867][C-0000012d]: app_dial.c:1000 do_forward: Not accepting call completion offers from call-forward recipient Local/9559082534@from-internal-00000170;1
– Executing [9559082534@from-internal:1] Macro(“Local/9559082534@from-internal-00000170;2”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“Local/9559082534@from-internal-00000170;2”, “TOUCH_MONITOR=1590760371.1302”) in new stack
– Executing [s@macro-user-callerid:2] Set(“Local/9559082534@from-internal-00000170;2”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:3] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESCKCHAN=9559082534@from-internal-00000170;2”) in new stack
– Executing [s@macro-user-callerid:4] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESKEXTEN=9559082534@from”) in new stack
– Executing [s@macro-user-callerid:5] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“Local/9559082534@from-internal-00000170;2”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“Local/9559082534@from-internal-00000170;2”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] NoOp(“Local/9559082534@from-internal-00000170;2”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:29] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [s@macro-user-callerid:30] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,49)
– Executing [s@macro-user-callerid:49] Set(“Local/9559082534@from-internal-00000170;2”, “CALLERID(number)=”) in new stack
– Executing [s@macro-user-callerid:50] Set(“Local/9559082534@from-internal-00000170;2”, “CALLERID(name)=”) in new stack
– Executing [s@macro-user-callerid:51] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?cnum”) in new stack
– Goto (macro-user-callerid,s,53)
– Executing [s@macro-user-callerid:53] Set(“Local/9559082534@from-internal-00000170;2”, “CDR(cnum)=”) in new stack
– Executing [s@macro-user-callerid:54] Set(“Local/9559082534@from-internal-00000170;2”, “CHANNEL(language)=en”) in new stack
– Executing [9559082534@from-internal:2] Gosub(“Local/9559082534@from-internal-00000170;2”, “sub-record-check,s,1(out,9559082534,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“Local/9559082534@from-internal-00000170;2”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“Local/9559082534@from-internal-00000170;2”, “NOW=1590760371”) in new stack
– Executing [s@sub-record-check:4] Set(“Local/9559082534@from-internal-00000170;2”, “__DAY=29”) in new stack
– Executing [s@sub-record-check:5] Set(“Local/9559082534@from-internal-00000170;2”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“Local/9559082534@from-internal-00000170;2”, “__YEAR=2020”) in new stack
– Executing [s@sub-record-check:7] Set(“Local/9559082534@from-internal-00000170;2”, “__TIMESTR=20200529-135251”) in new stack
– Executing [s@sub-record-check:8] Set(“Local/9559082534@from-internal-00000170;2”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“Local/9559082534@from-internal-00000170;2”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“Local/9559082534@from-internal-00000170;2”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“Local/9559082534@from-internal-00000170;2”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“Local/9559082534@from-internal-00000170;2”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“Local/9559082534@from-internal-00000170;2”, “Outbound Recording Check from unknown to 9559082534”) in new stack
– Executing [out@sub-record-check:2] Set(“Local/9559082534@from-internal-00000170;2”, “RECMODE=”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“Local/9559082534@from-internal-00000170;2”, “recordcheck,1(dontcare,out,9559082534)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“Local/9559082534@from-internal-00000170;2”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“Local/9559082534@from-internal-00000170;2”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“Local/9559082534@from-internal-00000170;2”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“Local/9559082534@from-internal-00000170;2”, “”) in new stack
– Executing [9559082534@from-internal:3] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [9559082534@from-internal:4] Set(“Local/9559082534@from-internal-00000170;2”, “MOHCLASS=default”) in new stack
– Executing [9559082534@from-internal:5] Set(“Local/9559082534@from-internal-00000170;2”, “_NODEST=”) in new stack
– Executing [9559082534@from-internal:6] Macro(“Local/9559082534@from-internal-00000170;2”, “dialout-trunk,2,559082534,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“Local/9559082534@from-internal-00000170;2”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“Local/9559082534@from-internal-00000170;2”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(num)=)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“Local/9559082534@from-internal-00000170;2”, “DIAL_NUMBER=559082534”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“Local/9559082534@from-internal-00000170;2”, “DIAL_TRUNK_OPTIONS=Hhtr”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“Local/9559082534@from-internal-00000170;2”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“Local/9559082534@from-internal-00000170;2”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“Local/9559082534@from-internal-00000170;2”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“Local/9559082534@from-internal-00000170;2”, “”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“Local/9559082534@from-internal-00000170;2”, “TRUE”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“Local/9559082534@from-internal-00000170;2”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [s@macro-outbound-callerid:6] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESCKCHAN=9559082534@from-internal-00000170;2”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESKEXTEN=9559082534@from”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“Local/9559082534@from-internal-00000170;2”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-outbound-callerid:9] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-outbound-callerid:10] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“Local/9559082534@from-internal-00000170;2”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [s@macro-outbound-callerid:12] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Hangup()”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(AMPUSER=unknown)”) in new stack
– Executing [s@macro-outbound-callerid:16] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] Set(“Local/9559082534@from-internal-00000170;2”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“Local/9559082534@from-internal-00000170;2”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [s@macro-outbound-callerid:23] Set(“Local/9559082534@from-internal-00000170;2”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:24] GotoIf(“Local/9559082534@from-internal-00000170;2”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [s@macro-outbound-callerid:30] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:31] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:32] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:33] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:34] Set(“Local/9559082534@from-internal-00000170;2”, “TIOHIDE=no”) in new stack
– Executing [s@macro-outbound-callerid:35] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:36] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:37] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:38] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:39] Set(“Local/9559082534@from-internal-00000170;2”, “CDR(outbound_cnum)=”) in new stack
– Executing [s@macro-outbound-callerid:40] Set(“Local/9559082534@from-internal-00000170;2”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“Local/9559082534@from-internal-00000170;2”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“Local/9559082534@from-internal-00000170;2”, “OUTNUM=559082534”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“Local/9559082534@from-internal-00000170;2”, “custom=DAHDI/r0”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] Macro(“Local/9559082534@from-internal-00000170;2”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“Local/9559082534@from-internal-00000170;2”, “”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CONNECTEDLINE(num,i)=559082534)”) in new stack
– Executing [s@macro-dialout-trunk:22] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CONNECTEDLINE(name,i)=CID:)”) in new stack
– Executing [s@macro-dialout-trunk:23] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden))”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:25] ExecIf(“Local/9559082534@from-internal-00000170;2”, “1?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:26] Dial(“Local/9559082534@from-internal-00000170;2”, “DAHDI/r0/559082534,300,b(func-apply-sipheaders^s^1,(2))”) in new stack
[2020-05-29 13:52:51] WARNING[1879][C-0000012d]: app_dial.c:2525 dial_exec_full: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:27] NoOp(“Local/9559082534@from-internal-00000170;2”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [s@macro-dialout-trunk:28] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“Local/9559082534@from-internal-00000170;2”, “RC=34”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“Local/9559082534@from-internal-00000170;2”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [34@macro-dialout-trunk:1] Goto(“Local/9559082534@from-internal-00000170;2”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“Local/9559082534@from-internal-00000170;2”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“Local/9559082534@from-internal-00000170;2”, “0?Set(CALLERID(number)=)”) in new stack
– Executing [9559082534@from-internal:7] Macro(“Local/9559082534@from-internal-00000170;2”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“Local/9559082534@from-internal-00000170;2”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“Local/9559082534@from-internal-00000170;2”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“Local/9559082534@from-internal-00000170;2”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <Local/9559082534@from-internal-00000170;2> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
– Local/9559082534@from-internal-00000170;1 is making progress passing it to DAHDI/1-1