History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XCF-1123
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Damian Krzeminski
Votes: 0
Watchers: 0
Available Workflow Actions

Resolve
Request Information
Operations

If you were logged in you would be able to see more operations.
sipXconfig

dial plan should allow is stripping digits

Created: 2006-07-05 08:41   Updated: 2008-08-26 11:07
Component/s: dial plan
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
dial plan should allow is stripping digits and either keeping the stripped digits or portion that is left. Kind of equivalent of a substring.

Use case example: I own a block of DIDs and I want to force all calls to those DIDs to go to a particular destination, leaving only last 4 digits of a number. DIDs are:
781-555-14xx
781-555-16xx
781-555-18xx

Right now I have to create a separate dial plan for each match and then use 14+vdigits, 16+vdigits and 18+vdigits in each plan. This could have been done with just one dial plan if I could program it to only keep last 4 digits of a number. One customer I have is setting up a toll bypass with several dozens DID ranges.

[This issue is created from Alex's comments to XCF-926]

I am actually not sure if this is sipXconfig or sipXregistrar problem but I do not want it to remain untracked.

 All   Comments   Work Log   Change History      Sort Order:
Damian Krzeminski - 2006-08-09 16:55
I do not think that mappingrules regular expression allow for implmementing stripping yet but since XCF-1142 is fixed you can create a single rule:

from 7815551[468] - 2 digits => 1 + "variable part of matched number"