RichardDCG Posted October 22 Report Share Posted October 22 What expression do I use to match inbound numbers but strip a digit and prepend with another? PBX is V69.3.2 Inbound range example is 61299887600-05 Ext: 100-105 I want to match inbound calls to strip the '6' and replace with a '1' to match the ext. i.e. 61299887603 to dial 103 Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted October 22 Author Report Share Posted October 22 the Grandstream UCM I am replacing for this tenant had a simple strip 9 and prepend with 1. What is the expression for this? Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted Monday at 09:19 PM Author Report Share Posted Monday at 09:19 PM any ideas from routing gurus? remove the leading 9 digits from an inbound number and prepend 1 to the remaining 2 digits to send to an extension. Quote Link to comment Share on other sites More sharing options...
Vernon Posted Tuesday at 02:01 PM Report Share Posted Tuesday at 02:01 PM Are these inbound numbers hosted with you, or are they just being call forwarded to one generic number on your system? If the inbound numbers were static and assigned to you, you should be able to allocate them to the specific extension So 61299887600 is for ext 100, 7601 is for ext 101...etc But i'm assuming it's not going to be that easy. One neat trick i learned is with service flags and address book. There's a service flag condition called "Caller in Address Book". If the inbound numbers that you receive always show up as 61299887600-05 then you create an address book entry with a unique category for each one. I don't know if this is helpful to your case but just as an idea instead of messing with expression lists. Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted Wednesday at 01:08 AM Author Report Share Posted Wednesday at 01:08 AM These are numbers hosted by us. I have been given a couple of options to try - map accounts to ext. in DID assignments, and also an expression to test: !612998876([0-9]{2})$!1\1!u!700! Quote Link to comment Share on other sites More sharing options...
Scott1234 Posted Thursday at 12:44 AM Report Share Posted Thursday at 12:44 AM I would have thought something like this would work, but no luck. !^61299887([0-9]{2})$!1\1!u! Not sure why you would want to use an expression other than just map the DID? Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted Thursday at 01:13 AM Author Report Share Posted Thursday at 01:13 AM 25 minutes ago, Scott1234 said: Not sure why you would want to use an expression other than just map the DID? The expression did work for me (yours is missing a digit). I had 100 to do and the expression seemed to be the easier option. 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.