Have an issue whereby the redirected call presents its extension number rather than correct callerid for pstn.
Call comes in from PSTN and rings on reception phone. Reception phone redirects to internal extension this then redirects back out to PSTN.
Unfortunately the redirected extension doesnt change its callerid with the translation rules for some reason.
Is there a way to do this on the redirected call?
You can use voice translation rules for this:
This will change a 4 digit number into a 7 digit number preceded by 555
voice translation-rule 1
rule 1 /^\(...\)$/ /555\1/
voice translation-profile 1
translate redirect-called 1
translate redirect-target 1
dial-peer voice x voip
translation-profile out 1