Problems using + in outbound dialing rules

I want to add a prefix to outbound calls when the user only dials a seven digit number. In order to test this I created a new outbound rule and put this rule in it.

07+5551212

So when I dial 5551212 I want it to add 07 in front of it.

This does not work. If I put 555|1212 it does strip the 555 but I can’t ever get it to add the 07.

This is what the entry in the extensions_additional.conf looks like.

[outrt-003-Local Numbers]
include => outrt-003-Local Numbers-custom
exten => _07+5551212,1,Macro(dialout-trunk,2,${EXTEN},)
exten => _07+5551212,n,Macro(outisbusy,)

So what is going on with the plus sign here?

outbound dialing rules do not currently support adding numbers, just removing. Only trunks support that feature. It is something that will be addressed when the routing/trunking code is overhauled.

Thank you. I will move that code to the trunks themselves. All of them :frowning: