No inter-extension calling

Hi,

i installed freepbx on ubuntu and after creating extensions, i am not able to call between extensions with following trace showing up. (i changed sip traffic to chan_sip in advanced settings):

  • Executing [[email protected]:1] GotoIf(“SIP/1003-00000007”, “1?ext-local,1004,1:followme-check,1004,1”) in new stack
    – Goto (ext-local,1004,1)
    – Executing [[email protected]:1] Set(“SIP/1003-00000007”, “__RINGTIMER=15”) in new stack
    – Executing [[email protected]:2] Macro(“SIP/1003-00000007”, “exten-vm,novm,1004,0,0,0”) in new stack
    – Executing [[email protected]:1] Macro(“SIP/1003-00000007”, “user-callerid,”) in new stack
    – Executing [[email protected]:1] Set(“SIP/1003-00000007”, “TOUCH_MONITOR=1500487240.7”) in new stack
    – Executing [[email protected]:2] Set(“SIP/1003-00000007”, “AMPUSER=1003”) in new stack
    – Executing [[email protected]:3] GotoIf(“SIP/1003-00000007”, “0?report”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/1003-00000007”, “1?Set(REALCALLERIDNUM=1003)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/1003-00000007”, “AMPUSER=”) in new stack
    – Executing [[email protected]:6] GotoIf(“SIP/1003-00000007”, “0?limit”) in new stack
    – Executing [[email protected]:7] Set(“SIP/1003-00000007”, “AMPUSERCIDNAME=”) in new stack
    – Executing [[email protected]:8] GotoIf(“SIP/1003-00000007”, “1?report”) in new stack
    – Goto (macro-user-callerid,s,14)
    – Executing [[email protected]:14] GotoIf(“SIP/1003-00000007”, “0?continue”) in new stack
    – Executing [[email protected]:15] Set(“SIP/1003-00000007”, “__TTL=64”) in new stack
    – Executing [[email protected]:16] GotoIf(“SIP/1003-00000007”, “1?continue”) in new stack
    – Goto (macro-user-callerid,s,27)
    – Executing [[email protected]:27] Set(“SIP/1003-00000007”, “CALLERID(number)=1003”) in new stack
    – Executing [[email protected]:28] Set(“SIP/1003-00000007”, “CALLERID(name)=1003”) in new stack
    – Executing [[email protected]:29] GotoIf(“SIP/1003-00000007”, “0?cnum”) in new stack
    – Executing [[email protected]:30] Set(“SIP/1003-00000007”, “CDR(cnam)=1003”) in new stack
    – Executing [[email protected]:31] Set(“SIP/1003-00000007”, “CDR(cnum)=1003”) in new stack
    – Executing [[email protected]:32] Set(“SIP/1003-00000007”, “CHANNEL(language)=en”) in new stack
    – Executing [[email protected]:2] Set(“SIP/1003-00000007”, “RingGroupMethod=none”) in new stack
    – Executing [[email protected]:3] Set(“SIP/1003-00000007”, “__EXTTOCALL=1004”) in new stack
    – Executing [[email protected]:4] Set(“SIP/1003-00000007”, “__PICKUPMARK=1004”) in new stack
    – Executing [[email protected]:5] Set(“SIP/1003-00000007”, “RT=”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    – Executing [[email protected]:6] ExecIf(“SIP/1003-00000007”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    – Executing [[email protected]:7] ExecIf(“SIP/1003-00000007”, “0?MacroExit()”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    – Executing [[email protected]:8] ExecIf(“SIP/1003-00000007”, “0?Gosub(ext-intercom,*801004,1())”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    – Executing [[email protected]:9] ExecIf(“SIP/1003-00000007”, “0?MacroExit()”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] WARNING[4440][C-00000007]: pbx_functions.c:460 func_args: Can’t find trailing parenthesis for function ‘DB(DEVICE/1004/dial’?
    – Executing [[email protected]:10] ExecIf(“SIP/1003-00000007”, “0?ChanSpy(,q)”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    [2017-07-19 18:00:40] WARNING[4440][C-00000007]: pbx_functions.c:460 func_args: Can’t find trailing parenthesis for function ‘DB(DEVICE/1004/dial’?
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:608 ast_func_read: Function PJSIP_HEADER not registered
    – Executing [[email protected]:11] ExecIf(“SIP/1003-00000007”, “0?MacroExit()”) in new stack
    [2017-07-19 18:00:40] ERROR[4440][C-00000007]: pbx_functions.c:651 ast_func_read2: Function PJSIP_HEADER not registered
    – Executing [[email protected]:12] Gosub(“SIP/1003-00000007”, “sub-record-check,s,1(exten,1004,dontcare)”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/1003-00000007”, “0?initialized”) in new stack
    – Executing [[email protected]:2] Set(“SIP/1003-00000007”, “__REC_STATUS=INITIALIZED”) in new stack
    – Executing [[email protected]:3] Set(“SIP/1003-00000007”, “NOW=1500487240”) in new stack
    – Executing [[email protected]:4] Set(“SIP/1003-00000007”, “__DAY=19”) in new stack
    – Executing [[email protected]:5] Set(“SIP/1003-00000007”, “__MONTH=07”) in new stack
    – Executing [[email protected]:6] Set(“SIP/1003-00000007”, “__YEAR=2017”) in new stack
    – Executing [[email protected]:7] Set(“SIP/1003-00000007”, “__TIMESTR=20170719-180040”) in new stack
    – Executing [[email protected]:8] Set(“SIP/1003-00000007”, “__FROMEXTEN=1003”) in new stack
    – Executing [[email protected]:9] Set(“SIP/1003-00000007”, “__MON_FMT=wav”) in new stack
    – Executing [[email protected]:10] NoOp(“SIP/1003-00000007”, “Recordings initialized”) in new stack
    – Executing [[email protected]:11] ExecIf(“SIP/1003-00000007”, “0?Set(ARG3=dontcare)”) in new stack
    – Executing [[email protected]:12] Set(“SIP/1003-00000007”, “REC_POLICY_MODE_SAVE=”) in new stack
    – Executing [[email protected]:13] ExecIf(“SIP/1003-00000007”, “0?Set(REC_STATUS=NO)”) in new stack
    – Executing [[email protected]:14] GotoIf(“SIP/1003-00000007”, “5?checkaction”) in new stack
    – Goto (sub-record-check,s,17)
    – Executing [[email protected]:17] GotoIf(“SIP/1003-00000007”, “1?sub-record-check,exten,1”) in new stack
    – Goto (sub-record-check,exten,1)
    – Executing [[email protected]:1] NoOp(“SIP/1003-00000007”, “Exten Recording Check between 1003 and 1004”) in new stack
    – Executing [[email protected]:2] Set(“SIP/1003-00000007”, “CALLTYPE=internal”) in new stack
    – Executing [[email protected]:3] ExecIf(“SIP/1003-00000007”, “0?Set(CALLTYPE=)”) in new stack
    – Executing [[email protected]:4] Set(“SIP/1003-00000007”, “CALLEE=”) in new stack
    – Executing [[email protected]:5] ExecIf(“SIP/1003-00000007”, “1?Set(CALLEE=dontcare)”) in new stack
    – Executing [[email protected]:6] GotoIf(“SIP/1003-00000007”, “0?callee”) in new stack
    – Executing [[email protected]:7] GotoIf(“SIP/1003-00000007”, “1?caller”) in new stack
    – Goto (sub-record-check,exten,13)
    – Executing [[email protected]:13] Set(“SIP/1003-00000007”, “RECMODE=”) in new stack
    – Executing [[email protected]:14] ExecIf(“SIP/1003-00000007”, “1?Set(RECMODE=dontcare)”) in new stack
    – Executing [[email protected]:15] ExecIf(“SIP/1003-00000007”, “1?Set(RECMODE=dontcare)”) in new stack
    – Executing [[email protected]:16] Gosub(“SIP/1003-00000007”, “recordcheck,1(dontcare,internal,1004)”) in new stack
    – Executing [[email protected]:1] NoOp(“SIP/1003-00000007”, “Starting recording check against dontcare”) in new stack
    – Executing [[email protected]:2] Goto(“SIP/1003-00000007”, “dontcare”) in new stack
    – Goto (sub-record-check,recordcheck,3)
    – Executing [[email protected]:3] Return(“SIP/1003-00000007”, “”) in new stack
    – Executing [[email protected]:17] Return(“SIP/1003-00000007”, “”) in new stack
    – Executing [[email protected]:13] GotoIf(“SIP/1003-00000007”, “1?macrodial”) in new stack
    – Goto (macro-exten-vm,s,19)
    – Executing [[email protected]:19] GosubIf(“SIP/1003-00000007”, “0?clrheader,1()”) in new stack
    – Executing [[email protected]:20] Macro(“SIP/1003-00000007”, “dial-one,Ttr,1004”) in new stack
    – Executing [[email protected]:1] Set(“SIP/1003-00000007”, “DEXTEN=1004”) in new stack
    – Executing [[email protected]:2] ExecIf(“SIP/1003-00000007”, “0?Set(EXTTOCALL=1004)”) in new stack
    – Executing [[email protected]:3] Set(“SIP/1003-00000007”, “DIALSTATUS_CW=”) in new stack
    – Executing [[email protected]:4] GosubIf(“SIP/1003-00000007”, “0?screen,1()”) in new stack
    – Executing [[email protected]:5] GosubIf(“SIP/1003-00000007”, “0?cf,1()”) in new stack
    – Executing [[email protected]:6] GotoIf(“SIP/1003-00000007”, “1?skip1”) in new stack
    – Goto (macro-dial-one,s,9)
    – Executing [[email protected]:9] GotoIf(“SIP/1003-00000007”, “0?nodial”) in new stack
    – Executing [[email protected]:10] GotoIf(“SIP/1003-00000007”, “0?continue”) in new stack
    – Executing [[email protected]:11] Set(“SIP/1003-00000007”, “EXTHASCW=”) in new stack
    – Executing [[email protected]:12] GotoIf(“SIP/1003-00000007”, “1?next1:cwinusebusy”) in new stack
    – Goto (macro-dial-one,s,13)
    – Executing [[email protected]:13] GotoIf(“SIP/1003-00000007”, “0?docfu:skip3”) in new stack
    – Goto (macro-dial-one,s,17)
    – Executing [[email protected]:17] GotoIf(“SIP/1003-00000007”, “1?next2:continue”) in new stack
    – Goto (macro-dial-one,s,18)
    – Executing [[email protected]:18] GotoIf(“SIP/1003-00000007”, “1?continue”) in new stack
    – Goto (macro-dial-one,s,26)
    – Executing [[email protected]:26] GotoIf(“SIP/1003-00000007”, “0?nodial”) in new stack
    – Executing [[email protected]:27] GosubIf(“SIP/1003-00000007”, “1?dstring,1():dlocal,1()”) in new stack
    – Executing [[email protected]:1] Set(“SIP/1003-00000007”, “DSTRING=”) in new stack
    – Executing [[email protected]:2] Set(“SIP/1003-00000007”, “DEVICES=”) in new stack
    – Executing [[email protected]:3] ExecIf(“SIP/1003-00000007”, “1?Return()”) in new stack
    – Executing [[email protected]:28] GotoIf(“SIP/1003-00000007”, “1?nodial”) in new stack
    – Goto (macro-dial-one,s,56)
    – Executing [[email protected]:56] ExecIf(“SIP/1003-00000007”, “1?Set(DIALSTATUS=NOANSWER)”) in new stack
    – Executing [[email protected]:57] NoOp(“SIP/1003-00000007”, “Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
    – Executing [[email protected]:58] MacroExit(“SIP/1003-00000007”, “”) in new stack
    – Executing [[email protected]:21] Set(“SIP/1003-00000007”, “SV_DIALSTATUS=NOANSWER”) in new stack
    – Executing [[email protected]:22] GosubIf(“SIP/1003-00000007”, “0?docfu,1()”) in new stack
    – Executing [[email protected]:23] GosubIf(“SIP/1003-00000007”, “0?docfb,1()”) in new stack
    – Executing [[email protected]:24] Set(“SIP/1003-00000007”, “DIALSTATUS=NOANSWER”) in new stack
    – Executing [[email protected]:25] ExecIf(“SIP/1003-00000007”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:26] GotoIf(“SIP/1003-00000007”, “1?s-NOANSWER,1”) in new stack
    – Goto (macro-exten-vm,s-NOANSWER,1)
    – Executing [[email protected]:1] GotoIf(“SIP/1003-00000007”, “0?exit,1”) in new stack
    – Executing [[email protected]:2] PlayTones(“SIP/1003-00000007”, “congestion”) in new stack
    – Executing [[email protected]:3] Congestion(“SIP/1003-00000007”, “10”) in new stack
    == Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on ‘SIP/1003-00000007’ in macro ‘exten-vm’
    == Spawn extension (ext-local, 1004, 2) exited non-zero on ‘SIP/1003-00000007’
    – Executing [[email protected]:1] Macro(“SIP/1003-00000007”, “hangupcall,”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/1003-00000007”, “1?theend”) in new stack
    – Goto (macro-hangupcall,s,3)
    – Executing [[email protected]:3] ExecIf(“SIP/1003-00000007”, “0?Set(CDR(recordingfile)=)”) in new stack
    – Executing [[email protected]:4] Hangup(“SIP/1003-00000007”, “”) in new stack
    == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/1003-00000007’ in macro ‘hangupcall’
    == Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/1003-00000007’