but i cant make any setup to play a message when a wrong numbre is dialed, can anyone make a sugestion?
i want somthing like play a message when a wrong number is dialed and then hangup...
obviously replace the 'what_to_do...' bit with your own commands, playbacks etc that you want to happen when someone messes up. Same rules apply to other 'exten =>' lines that you can have more priorities if needed.
The bit that seems to be missing... you need to 'include => [bogons]' in your context that has your phones in it
If you dont include, then it will never be recognised...
The way this thing seems to work is that the '_.' used for the pattern matching, is a 'catch all' match. In other words this will catch any extention dialed that hasnt been matched already ( a messed up dial ).
There are some rules that apply to the order that exten's and included context get applied that you need to watch out for - otherwise you will be catching everything with this new context and nothing will get dialed as you would expect.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum