IVR to read back the calling extension

This block of code in extensions_custom.conf will read back your callerid number:

[from-internal-saycid]
exten => s,1,Noop(entering user defined context from-internal-saycid)
exten => s,n,Macro(user-callerid)
exten => s,n,Playback(calling&from&number)     ; remove this line if necessary
exten => s,n,Answer
exten => s,n,SayDigits(${CALLERID(number)})
exten => s,n,Return

Once you’ve added the dialplan, you can reference it by creating a custom destination with a target of from-internal-saycid,s,1. Enable the return option and submit. From there you can reference this dialplan anywhere in fpbx to create a call flow.