Jump to content

like to send a group of numbers to a certain trunk


mattlandis
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...