I've had to setup an analogue phone on an FXS port, part of the setup is to restrict what numbers are available to be dialled from the phone.
So far I've come up with this, which just aint doing the trick, people can still dial any number outbound from the analogue phone.
(numbers have been changed to protect the innocent)
voice translation-rule 3000
rule 1 /0408111111/ /00408111111/
rule 2 /^000$/ /0000/
rule 3 /0427111111/ /00427111111/
rule 4 reject //
translate called 3000
translate calling 3000
timeouts interdigit 5
timeouts ringing infinity
So basically trying to allow 2 numbers beginning with 0427 & 0408, and then also allowing emergency services on 000, a zero is also appended to the beginning of the number, every other number should be rejected.
Any help much appreciated !
Message was edited by: [email protected]