This is how we did this. We use 0 the get a outbound line or +46.
Original from FreePBX (extensions_additional.conf):
[outrt-009-MA_Hemma]
include => outrt-009-MA_Hemma-custom
exten => _0.,1,Set(MOHCLASS=${IF($[“x${MOHCLASS}”=“x”]?Aman:${MOHCLASS})})
exten => _0.,n,Macro(user-callerid,SKIPTTL,)
exten => _0.,n,Set(_NODEST=)
exten => _0.,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _0.,n,Macro(dialout-trunk,5,${EXTEN:1},)
exten => _0.,n,Macro(outisbusy,)
; This is what we added
exten => _[+]46.,1,Set(MOHCLASS=${IF($[“x${MOHCLASS}”=“x”]?Aman:${MOHCLASS})})
exten => _[+]46.,n,Macro(user-callerid,SKIPTTL,)
exten => _[+]46.,n,Set(_NODEST=)
exten => _[+]46.,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _[+]46.,n,Macro(dialout-trunk,5,${EXTEN},)
exten => _[+]46.,n,Macro(outisbusy,)
This case only handle one country (+46) because the rest will go through another trunk…