Prefix for n-digits in outbound routes

Hi there. There is a situation I have which is related to outbound routes in freepbx. I need that some calls that will be made, using a prefix number, will be routed no matter the length of the digits. Here’s an example, in my outbound routes/extensions_custom.conf :
120 | X
120 | XX
120 | XXX

That is, for any digit that will be after the “120”. Any ideas?

Try:
120 | X.

If this is a custom outbound route then this syntax is completely wrong.

[custom-outbound]
exten => _120X.,1,NoOP(Do someting)
same => n,Dial(Dial Someplace)

That will do it.

1 Like

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