FreePBX | Register | Issues | Wiki | Portal | Support

Custom dialplan for privacy how to remove the *67


(MK) #1

dear community,

my dialplan are the following:
exten => _*67X.,1,Answer
exten => _*67X.,n,Wait(1)
exten => _*67X.,n,NoOp(${EXTEN:3:11}) ;; removing the *67 from extension
exten => _*67X.,n,Set(CALLERID(num)=${SIP_HEADER(cid)})
exten => _*67X.,n,SIPAddHeader(“Privacy:id”)

i must remove the *67 from the called number. you can see on line 3 it removes it perfect,
but how i can replace them with the called number?

currently my number looks like +4967NUMBER. how i can replace my line 3? for +49NUMBER

has anybody a idea? i only set the header for privacy, and it works, but i must remove the *67 from the called number.

thank you very much.