Phone cant reach another extension

I am using 2 7945g and 1 softphone for testing I get this while using the softphone to call the hardphones

Log for 502

  == Setting global variable 'SIPDOMAIN' to '192.168.4.64'
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000006", "1?ext-local,502,1:followme-check,502,1") in new stack
    -- Goto (ext-local,502,1)
    -- Executing [[email protected]:1] Set("PJSIP/501-00000006", "__RINGTIMER=15") in new stack
    -- Executing [[email protected]:2] Macro("PJSIP/501-00000006", "exten-vm,novm,502,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("PJSIP/501-00000006", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/501-00000006", "TOUCH_MONITOR=1524852263.6") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "AMPUSER=501") in new stack
    -- Executing [[email protected]:3] GotoIf("PJSIP/501-00000006", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/501-00000006", "1?Set(REALCALLERIDNUM=501)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000006", "AMPUSER=501") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/501-00000006", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000006", "AMPUSERCIDNAME=501") in new stack
    -- Executing [[email protected]:8] ExecIf("PJSIP/501-00000006", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/501-00000006", "0?report") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/501-00000006", "AMPUSERCID=501") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/501-00000006", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/501-00000006", "CALLERID(all)="501" <501>") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/501-00000006", "0?limit") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/501-00000006", "0?Set(GROUP(concurrency_limit)=501)") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/501-00000006", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:16] NoOp("PJSIP/501-00000006", "Macro Depth is 2") in new stack
    -- Executing [[email protected]:17] GotoIf("PJSIP/501-00000006", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [[email protected]:19] GotoIf("PJSIP/501-00000006", "0?continue") in new stack
    -- Executing [[email protected]:20] Set("PJSIP/501-00000006", "__TTL=64") in new stack
    -- Executing [[email protected]:21] GotoIf("PJSIP/501-00000006", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,37)
    -- Executing [[email protected]:37] Set("PJSIP/501-00000006", "CALLERID(number)=501") in new stack
    -- Executing [[email protected]:38] Set("PJSIP/501-00000006", "CALLERID(name)=501") in new stack
    -- Executing [[email protected]:39] GotoIf("PJSIP/501-00000006", "0?cnum") in new stack
    -- Executing [[email protected]:40] Set("PJSIP/501-00000006", "CDR(cnam)=501") in new stack
    -- Executing [[email protected]:41] Set("PJSIP/501-00000006", "CDR(cnum)=501") in new stack
    -- Executing [[email protected]:42] Set("PJSIP/501-00000006", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/501-00000006", "__EXTTOCALL=502") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000006", "__PICKUPMARK=502") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000006", "RT=") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:6] ExecIf("PJSIP/501-00000006", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:7] ExecIf("PJSIP/501-00000006", "0?MacroExit()") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:8] ExecIf("PJSIP/501-00000006", "0?Gosub(ext-intercom,*80502,1())") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:9] ExecIf("PJSIP/501-00000006", "0?MacroExit()") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:10] ExecIf("PJSIP/501-00000006", "0?ChanSpy(PJSIP/502,q)") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:11] ExecIf("PJSIP/501-00000006", "0?MacroExit()") in new stack
[2018-04-27 18:04:23] WARNING[2167][C-00000006]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:12] Gosub("PJSIP/501-00000006", "sub-record-check,s,1(exten,502,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000006", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/501-00000006", "NOW=1524852263") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000006", "__DAY=27") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000006", "__MONTH=04") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/501-00000006", "__YEAR=2018") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000006", "__TIMESTR=20180427-180423") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/501-00000006", "__FROMEXTEN=501") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/501-00000006", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/501-00000006", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/501-00000006", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/501-00000006", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/501-00000006", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/501-00000006", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/501-00000006", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("PJSIP/501-00000006", "Exten Recording Check between 501 and 502") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/501-00000006", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000006", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("PJSIP/501-00000006", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/501-00000006", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/501-00000006", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("PJSIP/501-00000006", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/501-00000006", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/501-00000006", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:16] Gosub("PJSIP/501-00000006", "recordcheck,1(dontcare,internal,502)") in new stack
    -- Executing [[email protected]:1] NoOp("PJSIP/501-00000006", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("PJSIP/501-00000006", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("PJSIP/501-00000006", "") in new stack
    -- Executing [[email protected]check:17] Return("PJSIP/501-00000006", "") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/501-00000006", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,19)
    -- Executing [[email protected]:19] GosubIf("PJSIP/501-00000006", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:20] Macro("PJSIP/501-00000006", "dial-one,,HhTtr,502") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/501-00000006", "DEXTEN=502") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "__CRM_SOURCE=501") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/501-00000006", "0?Set(EXTTOCALL=502)") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000006", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:5] GosubIf("PJSIP/501-00000006", "0?screen,1()") in new stack
    -- Executing [[email protected]:6] GosubIf("PJSIP/501-00000006", "0?cf,1()") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/501-00000006", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [[email protected]:10] GotoIf("PJSIP/501-00000006", "0?nodial") in new stack
    -- Executing [[email protected]:11] GotoIf("PJSIP/501-00000006", "0?continue") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/501-00000006", "EXTHASCW=ENABLED") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/501-00000006", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("PJSIP/501-00000006", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [[email protected]:27] GotoIf("PJSIP/501-00000006", "0?nodial") in new stack
    -- Executing [[email protected]:28] GosubIf("PJSIP/501-00000006", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/501-00000006", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "DEVICES=502") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/501-00000006", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/501-00000006", "0?Set(DEVICES=02)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000006", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/501-00000006", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000006", "THISDIAL=PJSIP/502") in new stack
    -- Executing [[email protected]:8] GosubIf("PJSIP/501-00000006", "1?zap2dahdi,1()") in new stack
    -- Executing [[email protected]:1] ExecIf("PJSIP/501-00000006", "0?Return()") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000006", "NEWDIAL=") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/501-00000006", "LOOPCNT2=1") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000006", "ITER2=1") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000006", "THISPART2=PJSIP/502") in new stack
    -- Executing [[email protected]:6] ExecIf("PJSIP/501-00000006", "0?Set(THISPART2=DAHDIIP/502)") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000006", "NEWDIAL=PJSIP/502&") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/501-00000006", "ITER2=2") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/501-00000006", "0?begin2") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/501-00000006", "THISDIAL=PJSIP/502") in new stack
    -- Executing [[email protected]:11] Return("PJSIP/501-00000006", "") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/501-00000006", "0?docheck") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/501-00000006", "Debug: Found PJSIP Destination PJSIP/502") in new stack
    -- Executing [[email protected]:11] GotoIf("PJSIP/501-00000006", "0?doset") in new stack
    -- Executing [[email protected]:12] NoOp("PJSIP/501-00000006", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [[email protected]:13] Set("PJSIP/501-00000006", "THISDIAL=") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/501-00000006", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [[email protected]:16] Set("PJSIP/501-00000006", "ITER=2") in new stack
    -- Executing [[email protected]:17] GotoIf("PJSIP/501-00000006", "0?begin") in new stack
    -- Executing [[email protected]:18] ExecIf("PJSIP/501-00000006", "1?Return()") in new stack
    -- Executing [[email protected]:29] GotoIf("PJSIP/501-00000006", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,58)
    -- Executing [[email protected]:58] NoOp("PJSIP/501-00000006", "") in new stack
    -- Executing [[email protected]:59] ExecIf("PJSIP/501-00000006", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [[email protected]:60] NoOp("PJSIP/501-00000006", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [[email protected]:61] MacroExit("PJSIP/501-00000006", "") in new stack
    -- Executing [[email protected]:21] Set("PJSIP/501-00000006", "SV_DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:22] GosubIf("PJSIP/501-00000006", "0?docfu,1()") in new stack
    -- Executing [[email protected]:23] GosubIf("PJSIP/501-00000006", "0?docfb,1()") in new stack
    -- Executing [[email protected]:24] Set("PJSIP/501-00000006", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:25] ExecIf("PJSIP/501-00000006", "0?MacroExit()") in new stack
    -- Executing [[email protected]:26] GotoIf("PJSIP/501-00000006", "1?s-NOANSWER,1") in new stack
    -- Goto (macro-exten-vm,s-NOANSWER,1)
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000006", "0?exit,1") in new stack
    -- Executing [[email protected]:2] PlayTones("PJSIP/501-00000006", "congestion") in new stack
    -- Executing [[email protected]:3] Congestion("PJSIP/501-00000006", "10") in new stack
  == Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on 'PJSIP/501-00000006' in macro 'exten-vm'
  == Spawn extension (ext-local, 502, 2) exited non-zero on 'PJSIP/501-00000006'
    -- Executing [[email protected]:1] Macro("PJSIP/501-00000006", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000006", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("PJSIP/501-00000006", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] NoOp("PJSIP/501-00000006", " monior file= ") in new stack
    -- Executing [[email protected]:5] AGI("PJSIP/501-00000006", "attendedtransfer-rec-restart.php,,") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
    -- <PJSIP/501-00000006>AGI Script attendedtransfer-rec-restart.php completed, returning 0
    -- Executing [[email protected]:6] Hangup("PJSIP/501-00000006", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/501-00000006' in macro 'hangupcall'
  == Spawn extension (ext-local, h, 1) exited non-zero on 'PJSIP/501-00000006'

And for 503

= Setting global variable 'SIPDOMAIN' to '192.168.4.64'
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000008", "1?ext-local,503,1:followme-check,503,1") in new stack
    -- Goto (ext-local,503,1)
    -- Executing [[email protected]:1] Set("PJSIP/501-00000008", "__RINGTIMER=15") in new stack
    -- Executing [[email protected]:2] Macro("PJSIP/501-00000008", "exten-vm,503,503,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("PJSIP/501-00000008", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("PJSIP/501-00000008", "TOUCH_MONITOR=1524852389.8") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000008", "AMPUSER=501") in new stack
    -- Executing [[email protected]:3] GotoIf("PJSIP/501-00000008", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("PJSIP/501-00000008", "1?Set(REALCALLERIDNUM=501)") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000008", "AMPUSER=501") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/501-00000008", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000008", "AMPUSERCIDNAME=501") in new stack
    -- Executing [[email protected]:8] ExecIf("PJSIP/501-00000008", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [[email protected]:9] GotoIf("PJSIP/501-00000008", "0?report") in new stack
    -- Executing [[email protected]:10] Set("PJSIP/501-00000008", "AMPUSERCID=501") in new stack
    -- Executing [[email protected]:11] Set("PJSIP/501-00000008", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/501-00000008", "CALLERID(all)="501" <501>") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/501-00000008", "0?limit") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/501-00000008", "0?Set(GROUP(concurrency_limit)=501)") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/501-00000008", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:16] NoOp("PJSIP/501-00000008", "Macro Depth is 2") in new stack
    -- Executing [[email protected]:17] GotoIf("PJSIP/501-00000008", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [[email protected]:19] GotoIf("PJSIP/501-00000008", "0?continue") in new stack
    -- Executing [[email protected]:20] Set("PJSIP/501-00000008", "__TTL=64") in new stack
    -- Executing [[email protected]:21] GotoIf("PJSIP/501-00000008", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,37)
    -- Executing [[email protected]:37] Set("PJSIP/501-00000008", "CALLERID(number)=501") in new stack
    -- Executing [[email protected]:38] Set("PJSIP/501-00000008", "CALLERID(name)=501") in new stack
    -- Executing [[email protected]:39] GotoIf("PJSIP/501-00000008", "0?cnum") in new stack
    -- Executing [[email protected]:40] Set("PJSIP/501-00000008", "CDR(cnam)=501") in new stack
    -- Executing [[email protected]:41] Set("PJSIP/501-00000008", "CDR(cnum)=501") in new stack
    -- Executing [[email protected]:42] Set("PJSIP/501-00000008", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000008", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/501-00000008", "__EXTTOCALL=503") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000008", "__PICKUPMARK=503") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000008", "RT=15") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:6] ExecIf("PJSIP/501-00000008", "0?Macro(vm,503,DIRECTDIAL,)") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:7] ExecIf("PJSIP/501-00000008", "0?MacroExit()") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:8] ExecIf("PJSIP/501-00000008", "0?Gosub(ext-intercom,*80503,1())") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:9] ExecIf("PJSIP/501-00000008", "0?MacroExit()") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:10] ExecIf("PJSIP/501-00000008", "0?ChanSpy(PJSIP/503,q)") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:11] ExecIf("PJSIP/501-00000008", "0?MacroExit()") in new stack
[2018-04-27 18:06:29] WARNING[2397][C-00000008]: chan_sip.c:22959 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:12] Gosub("PJSIP/501-00000008", "sub-record-check,s,1(exten,503,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("PJSIP/501-00000008", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000008", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/501-00000008", "NOW=1524852389") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000008", "__DAY=27") in new stack
    -- Executing [[email protected]:5] Set("PJSIP/501-00000008", "__MONTH=04") in new stack
    -- Executing [[email protected]:6] Set("PJSIP/501-00000008", "__YEAR=2018") in new stack
    -- Executing [[email protected]:7] Set("PJSIP/501-00000008", "__TIMESTR=20180427-180629") in new stack
    -- Executing [[email protected]:8] Set("PJSIP/501-00000008", "__FROMEXTEN=501") in new stack
    -- Executing [[email protected]:9] Set("PJSIP/501-00000008", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("PJSIP/501-00000008", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("PJSIP/501-00000008", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("PJSIP/501-00000008", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("PJSIP/501-00000008", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("PJSIP/501-00000008", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("PJSIP/501-00000008", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("PJSIP/501-00000008", "Exten Recording Check between 501 and 503") in new stack
    -- Executing [[email protected]:2] Set("PJSIP/501-00000008", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/501-00000008", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/501-00000008", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("PJSIP/501-00000008", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("PJSIP/501-00000008", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("PJSIP/501-00000008", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("PJSIP/501-00000008", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:14] ExecIf("PJSIP/501-00000008", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:15] ExecIf("PJSIP/501-00000008", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:16] Gosub("PJSIP/501-00000008", "recordcheck,1(dontcare,internal,503)") in new stack
    -- Executing [recordc[email protected]:1] NoOp("PJSIP/501-00000008", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("PJSIP/501-00000008", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("PJSIP/501-00000008", "") in new stack
    -- Executing [[email protected]:17] Return("PJSIP/501-00000008", "") in new stack
    -- Executing [[email protected]:13] GotoIf("PJSIP/501-00000008", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,19)
    -- Executing [[email protected]:19] GosubIf("PJSIP/501-00000008", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:20] Macro("PJSIP/501-00000008", "dial-one,15,HhTtr,503") in new stack


Any ideas? Please feel free to point me to the right direction ive been reading the logs but I cant pintpointhe exact cause

Are all extensions using pjsip? Can you post the extension config in freepbx?

-- Executing [[email protected]:12] NoOp("PJSIP/501-00000006", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
-- Executing [[email protected]:13] Set("PJSIP/501-00000006", "THISDIAL=") in new stack

This is telling you that there are no registered contacts for extension 502. Your phone is is not registering to Asterisk.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.