I haven’t configured anything myself for extension context … I dont recall seeing the screenshot you shared when i was creating my extensions (Applications / Extensions / Add new sip (chan_pjsip) extension )
I did noticed that freepbx added a section [ext-local] in /etc/asterisk/extensions_additional.conf … with a lot of lines for each of the extensions i had created …
[ext-local]
include => ext-local-custom
exten => *115,1,Set(CONNECTEDLINE(name-charset,i)=utf8)
exten => *115,n,Set(CONNECTEDLINE(name,i)=115 Voicemail)
exten => *115,n,Set(CONNECTEDLINE(num,i)=115)
exten => *115,n,Macro(vm,115,DIRECTDIAL,${IVR_RETVM})
exten => *115,n,Goto(vmret,1)
exten => *888,1,Set(CONNECTEDLINE(name-charset,i)=utf8)
exten => *888,n,Set(CONNECTEDLINE(name,i)=888 Voicemail)
exten => *888,n,Set(CONNECTEDLINE(num,i)=888)
exten => *888,n,Macro(vm,888,DIRECTDIAL,${IVR_RETVM})
exten => *888,n,Goto(vmret,1)
exten => *889,1,Set(CONNECTEDLINE(name-charset,i)=utf8)
exten => *889,n,Set(CONNECTEDLINE(name,i)=889 Voicemail)
exten => *889,n,Set(CONNECTEDLINE(num,i)=889)
exten => *889,n,Macro(vm,889,DIRECTDIAL,${IVR_RETVM})
exten => *889,n,Goto(vmret,1)
exten => 115,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/115/ringtimer)}" > "0"]?${DB(AMPUSER/115/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 115,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 115,n,Macro(exten-vm,115,115,0,0,0)
exten => 115,n(dest),Set(__PICKUPMARK=)
exten => 115,n,Macro(vm,115,${DIALSTATUS},${IVR_RETVM})
exten => 115,n,Goto(vmret,1)
exten => 115,hint,PJSIP/115,CustomPresence:115
exten => vmb115,1,Macro(vm,115,BUSY,${IVR_RETVM})
exten => vmb115,n,Goto(vmret,1)
exten => vmu115,1,Macro(vm,115,NOANSWER,${IVR_RETVM})
exten => vmu115,n,Goto(vmret,1)
exten => vms115,1,Macro(vm,115,NOMESSAGE,${IVR_RETVM})
exten => vms115,n,Goto(vmret,1)
exten => vmi115,1,Macro(vm,115,INSTRUCT,${IVR_RETVM})
exten => vmi115,n,Goto(vmret,1)
exten => 116,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/116/ringtimer)}" > "0"]?${DB(AMPUSER/116/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 116,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 116,n,Macro(exten-vm,novm,116,0,0,0)
exten => 116,n(dest),Set(__PICKUPMARK=)
exten => 116,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 116,hint,PJSIP/116,CustomPresence:116
exten => 181,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/181/ringtimer)}" > "0"]?${DB(AMPUSER/181/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 181,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 181,n,Macro(exten-vm,novm,181,0,0,0)
exten => 181,n(dest),Set(__PICKUPMARK=)
exten => 181,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 181,hint,PJSIP/181,CustomPresence:181
exten => 182,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/182/ringtimer)}" > "0"]?${DB(AMPUSER/182/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 182,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 182,n,Macro(exten-vm,novm,182,0,0,0)
exten => 182,n(dest),Set(__PICKUPMARK=)
exten => 182,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 182,hint,PJSIP/182,CustomPresence:182
exten => 183,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/183/ringtimer)}" > "0"]?${DB(AMPUSER/183/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 183,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 183,n,Macro(exten-vm,novm,183,0,0,0)
exten => 183,n(dest),Set(__PICKUPMARK=)
exten => 183,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 183,hint,PJSIP/183,CustomPresence:183
exten => 184,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/184/ringtimer)}" > "0"]?${DB(AMPUSER/184/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 184,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 184,n,Macro(exten-vm,novm,184,0,0,0)
exten => 184,n(dest),Set(__PICKUPMARK=)
exten => 184,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 184,hint,PJSIP/184,CustomPresence:184
exten => 185,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/185/ringtimer)}" > "0"]?${DB(AMPUSER/185/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 185,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 185,n,Macro(exten-vm,novm,185,0,0,0)
exten => 185,n(dest),Set(__PICKUPMARK=)
exten => 185,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 185,hint,PJSIP/185,CustomPresence:185
exten => 186,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/186/ringtimer)}" > "0"]?${DB(AMPUSER/186/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 186,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 186,n,Macro(exten-vm,novm,186,0,0,0)
exten => 186,n(dest),Set(__PICKUPMARK=)
exten => 186,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 186,hint,PJSIP/186,CustomPresence:186
exten => 187,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/187/ringtimer)}" > "0"]?${DB(AMPUSER/187/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 187,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 187,n,Macro(exten-vm,novm,187,0,0,0)
exten => 187,n(dest),Set(__PICKUPMARK=)
exten => 187,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 187,hint,PJSIP/187,CustomPresence:187
exten => 188,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/188/ringtimer)}" > "0"]?${DB(AMPUSER/188/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 188,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 188,n,Macro(exten-vm,novm,188,0,0,0)
exten => 188,n(dest),Set(__PICKUPMARK=)
exten => 188,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 188,hint,PJSIP/188,CustomPresence:188
exten => 198,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/198/ringtimer)}" > "0"]?${DB(AMPUSER/198/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 198,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 198,n,Macro(exten-vm,novm,198,0,0,0)
exten => 198,n(dest),Set(__PICKUPMARK=)
exten => 198,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 198,hint,PJSIP/198,CustomPresence:198
exten => 199,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/199/ringtimer)}" > "0"]?${DB(AMPUSER/199/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 199,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 199,n,Macro(exten-vm,novm,199,0,0,0)
exten => 199,n(dest),Set(__PICKUPMARK=)
exten => 199,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 199,hint,PJSIP/199,CustomPresence:199
exten => 888,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/888/ringtimer)}" > "0"]?${DB(AMPUSER/888/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 888,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 888,n,Macro(exten-vm,888,888,0,0,0)
exten => 888,n(dest),Set(__PICKUPMARK=)
exten => 888,n,Macro(vm,888,${DIALSTATUS},${IVR_RETVM})
exten => 888,n,Goto(vmret,1)
exten => 888,hint,PJSIP/888,CustomPresence:888
exten => vmb888,1,Macro(vm,888,BUSY,${IVR_RETVM})
exten => vmb888,n,Goto(vmret,1)
exten => vmu888,1,Macro(vm,888,NOANSWER,${IVR_RETVM})
exten => vmu888,n,Goto(vmret,1)
exten => vms888,1,Macro(vm,888,NOMESSAGE,${IVR_RETVM})
exten => vms888,n,Goto(vmret,1)
exten => vmi888,1,Macro(vm,888,INSTRUCT,${IVR_RETVM})
exten => vmi888,n,Goto(vmret,1)
exten => 889,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/889/ringtimer)}" > "0"]?${DB(AMPUSER/889/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 889,n,ExecIf($["${REGEX("from-queue" ${CHANNEL})}"="1" && "${CONTEXT}"="from-internal-xfer"]?Set(__CWIGNORE=))
exten => 889,n,Macro(exten-vm,889,889,0,0,0)
exten => 889,n(dest),Set(__PICKUPMARK=)
exten => 889,n,Macro(vm,889,${DIALSTATUS},${IVR_RETVM})
exten => 889,n,Goto(vmret,1)
exten => 889,hint,PJSIP/889,CustomPresence:889
exten => vmb889,1,Macro(vm,889,BUSY,${IVR_RETVM})
exten => vmb889,n,Goto(vmret,1)
exten => vmu889,1,Macro(vm,889,NOANSWER,${IVR_RETVM})
exten => vmu889,n,Goto(vmret,1)
exten => vms889,1,Macro(vm,889,NOMESSAGE,${IVR_RETVM})
exten => vms889,n,Goto(vmret,1)
exten => vmi889,1,Macro(vm,889,INSTRUCT,${IVR_RETVM})
exten => vmi889,n,Goto(vmret,1)
exten => vmret,1,GotoIf($["${IVR_RETVM}" = "RETURN" & "${IVR_CONTEXT}" != ""]?playret)
exten => vmret,n,Hangup()
exten => vmret,n(playret),Playback(exited-vm-will-be-transfered&silence/1)
exten => vmret,n,Goto(${IVR_CONTEXT},return,1)
exten => h,1,Macro(hangupcall,)
exten => _nointercomX.,hint,${DB(AMPUSER/${EXTEN:10}/hint)}
;--== end of [ext-local] ==--;