[Spce-user] Outbound Rewrite Rule with Match Pattern special variable

Matthias Hohl matthias.hohl at telematica.at
Sat Jun 19 13:47:26 EDT 2021


Hello,

 

is it possible to create an OUTBOUND REWRITE RULE FOR CALLER for a subscriber with a special variable in the Match pattern?

 

What I want:

Match pattern: ^${caller_cc}([1-9][0-9]+)$

Replacement Pattern: 0\1

Description: E.164 to National

 

Does this work, or does the special variables just work for the Replacement Pattern?

It would be nice if this would work, so I can create random Rewrite Rule Sets without creating a separate one for German or Austrian Subscribers. (^43(1-9][0-9]+)$ or ^49(1-9][0-9]+)$

 

So there is just one rewrite rule set and this works for german and Austrian subscribers 😊 so a “Match Pattern” detection for “caller_cc” would be a nice feature 😊

Maybe also an extension for the Rewrite rules would be nice, where you can define a Callee/Caller Pattern like Peering Rules.

 

 

Mit freundlichen Grüßen,

Matthias Hohl

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20210619/d6f33d0e/attachment.html>


More information about the Spce-user mailing list