CLI restriction with From and RPID headers

Hi! I would like to restrict CLI for an outgoing call. Peer requires A number to be set in From header, and to set privacy flag in RPID header. Is it possible without getting Anonymous in From? I’m using Asterisk and when setting CALLERID(number) and CALLERID(name) to for example 12345, together with any of prohib* setting in CALLERPRES() (or CALLERID(num-pres)), there is Anonymous in From header. The number is present in RPID header with privacy=full, but Anonymous appears in From… Could anyone advise, please?