mattlandis Posted January 25, 2011 Report Share Posted January 25, 2011 I'm not sure I'm getting my head around regular expressions. We would like to send a group of numbers (lets say about 15 of them) to a certain trunk. But since someone could type them in 3 different ways: 17177335300 or 7177335300 or 7335300 we would need 3 lines in dialplan looking something like: 7335300|7338001|7336700 7177335300|7177338001|7177336700 17177335300|17177338001|17177336700 We thought if we could just match the last 7 of what they dial. (instead of all the examples which match the beginning) How would we do this? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 26, 2011 Report Share Posted January 26, 2011 xxx7335300 should do the job (if you are using country code 1) or 7177335300|7177338001|7177336700 Quote Link to comment Share on other sites More sharing options...
mattlandis Posted January 27, 2011 Author Report Share Posted January 27, 2011 but now if some one dials just 7335300 it wont catch it. and i just tested.. neither will that rule catch if someone dial 17177335300. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 27, 2011 Report Share Posted January 27, 2011 but now if some one dials just 7335300 it wont catch it. and i just tested.. neither will that rule catch if someone dial 17177335300. Well then you should use something like "xxx7335300|7335300"? Also, make sure that you specify the country code so that 17177335300 (user input) gets translated into 7177335300. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.