Dynamic routes by number template

Good day.
I want to check the user number: if the number consists of 4 digits - send it to the IVR, if more - to the secretary.

I’m trying to do this with dynamic routes, but I can’t seem to figure out what the request and template should look like.
Please tell me how to implement this?

You would use an Asterisk command to evaluate and route. this could also be done with AGI, but the first approach seems simpler to me. If the result = 4 then make a route to the IVR, otherwise default route.

Dynamic Routes User Guide - PBX GUI - Documentation (freepbx.org)

Asterisk func callerid - VoIP-Info

Asterisk func len - VoIP-Info

Also take a look at this post. Different approach, but might be able to adapt to your needs.
Setting up Boss/Secretary using Dynamic Routes - FreePBX / Tips and Tricks - FreePBX Community Forums

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