Dial Plan - Dropping extra digits

Having issue with dialing out from FreePBX using a full vanity phone number that exceeds 10 digits.

Need Dial plan syntax to drop characters after 10 digits are dialed.

Exaggerated Example: 800MYLONGPHONENUMBER

Need it to drop everything after 800MYLONGP …

You can do it with a predial hook

In this case I would do with a small block of dialplan:

[from-internal-custom]
exten => _1NXXNXXXXXX.,1,NoOp(Entering user defined context from-internal-custom in extensions_custom.conf)
exten => _1NXXNXXXXXX.,n,GoTo(outbound-allroutes,${EXTEN:0:11},1)

exten => _NXXNXXXXXX.,1,NoOp(Entering user defined context from-internal-custom in extensions_custom.conf)
exten => _NXXNXXXXXX.,n,GoTo(outbound-allroutes,${EXTEN:0:10},1)

didn’t test, will probably work

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.