[Spce-user] rewrite rules

Sylvester Nielsen sn at fest.dk
Tue Mar 5 08:47:19 EST 2013


As far as I know you can't add or subtract in the replacement pattern or do any math for that matter.
However, you can create some clever match/replace to achieve a rewrite as you describe.
Personally I don't see the use of it though.

Med venlig hilsen

   Sylvester Nielsen

---------------------------------------------------------------

Fest Data A/S
Generatorvej 8D, 1.th
2730 Herlev

e-mail : sn at fest.dk<mailto:sn at fest.dk>

Tlf:     +45 4582 7389
Fax:   +45 4582 7387
Dir:    +45 6996 2011

http://www.festdata.dk

[Beskrivelse: Description: Description: Beskrivelse: Beskrivelse: Beskrivelse: Beskrivelse: Beskrivelse: Beskrivelse: Beskrivelse: cid:image003.jpg at 01CBCE06.BAABD4A0]




From: spce-user-bounces at lists.sipwise.com [mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Matthew Ogden
Sent: 5. marts 2013 14:34
To: spce-user at lists.sipwise.com
Subject: [Spce-user] rewrite rules

Hi

Its easy enough with a rewrite rule to replace something, but does it support "adding" one number to another

For example a replace for 555-555-55XX can make 3201 become 555-555-5501. But what if you wanted 3201 to become 555-555-5506 and 3202 to become 555-555-5507?

Regards

[cid:image007.jpg at 01CE19B0.75ABB990]

Matthew Ogden
Management
TenacIT



Strategic IT Consulting * Advanced Networking * Virtualisation
Custom Development * Hosting * Syspro Support  * MS Licensing
National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email: matthew at tenacit.net<mailto:matthew at tenacit.net>
CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web: http://www.tenacit.net<http://www.tenacit.net/>

[cid:image008.jpg at 01CE19B0.75ABB990] [cid:image009.png at 01CE19B0.75ABB990]  [cid:image010.jpg at 01CE19B0.75ABB990]  [cid:image011.jpg at 01CE19B0.75ABB990]


________________________________
Denne mail er blevet scannet af fest.dk ApS<http://www.fest.dk/> og indeholder ikke virus!
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 11834 bytes
Desc: image006.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.jpg
Type: image/jpeg
Size: 6077 bytes
Desc: image007.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 1240 bytes
Desc: image008.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 4650 bytes
Desc: image009.png
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.jpg
Type: image/jpeg
Size: 1232 bytes
Desc: image010.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.jpg
Type: image/jpeg
Size: 2254 bytes
Desc: image011.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130305/c1578e8e/attachment-0009.jpg>


More information about the Spce-user mailing list