Handling invalid outbound route

Status
Not open for further replies.

Summer

New Member
Oct 22, 2021
13
0
1
34
What is the best way to handle when a user types a number in wrong which is not covered by the existing outbound routes?

I was thinking to set a catch all (.*) route but that doesn't appear to work if I set the order to something higher than everything else. I may not understand the "Order" property for a dialplan.

Any advise would help a lot :)
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
You shouldn't need to do anything, by default the system will respond with "Temporarily Unavailable".
 

Summer

New Member
Oct 22, 2021
13
0
1
34
When I dial a invalid number it replies with "Not found".

However what I would really like is a recorded message to let the user know that the number is invalid.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
Ok, so in the dialplan manager you should be able to set a catch all, the regex would be something like ^[0-9]+$ (see the attached image). Screenshot from 2022-08-12 18-20-49.png
Make sure you set the dialplan order to something like 999 so it will not interfere with other dialplan rules.
 

Summer

New Member
Oct 22, 2021
13
0
1
34
Ah excellent to hear and thx for the contribution to this thread. I havn't tackled this in the last few days. I'll set aside some time tomorrow and investigate more into it.
 
Status
Not open for further replies.