[Spce-user] mr13.5.1 CE - RR Special Variables doesn't work?
spce at lard.at
spce at lard.at
Wed Oct 29 14:32:24 EDT 2025
Hi,
I'm experimenting with updating our current sipwise C5 to the new
mr13.5.1 CE LTS.
I am experiencing issues using the Rewrite Rules module:
String matching works, but the replacement breaks, when there's a
special variable in the replacement pattern. Is this an 13.5.1 issue?
Match Pattern ^0([1-9][0-9]+)$ & Replacement Pattern${caller_cc}\1
[sipwise-prod-mr13.5.1] root at spce:~#cat log | grep -A 5 callee-in
Oct 29 19:17:54.181594 spce proxy[1870]: NOTICE:
ROUTE_APPLY_REWRITE_RULE <script>: Applying callee-inusr/domain rewrite
rules on called party using dpid '2' -
R=«sip:08888888 at sip.innonet.at;transport=UDP»
ID=«NBqvbnVcDrqm5ZAmHU2yKg..» UA='Z 5.6.10 v2.10.20.10'
Oct 29 19:17:54.182874 spce proxy[1870]: NOTICE: ROUTE_FIND_CALLEE
<script>: Callee is not local -
R=«sip:08888888 at sip.innonet.at;transport=UDP»
ID=«NBqvbnVcDrqm5ZAmHU2yKg..» UA='Z 5.6.10 v2.10.20.10'
Match Pattern ^0([1-9][0-9]+)$ & Replacement Pattern\1
[sipwise-prod-mr13.5.1] root at spce:~#2 #cat lognocc | grep -A 5 callee-in
Oct 29 19:18:11.819274 spce proxy[1882]: NOTICE:
ROUTE_APPLY_REWRITE_RULE <script>: Applying callee-inusr/domain rewrite
rules on called party using dpid '2' -
R=«sip:08888888 at sip.innonet.at;transport=UDP»
ID=«iyeJWy_aXlgbkOZjW2eLfg..» UA='Z 5.6.10 v2.10.20.10'
Oct 29 19:18:11.819290 spce proxy[1882]: NOTICE:
ROUTE_APPLY_REWRITE_RULE <script>: Rewriting called party '«08888888»'
to '«8888888»' - R=«sip:08888888 at sip.innonet.at;transport=UDP»
ID=«iyeJWy_aXlgbkOZjW2eLfg..» UA='Z 5.6.10 v2.10.20.10'
Oct 29 19:18:11.820534 spce proxy[1882]: NOTICE: ROUTE_FIND_CALLEE
<script>: Callee is not local -
R=«sip:8888888 at sip.innonet.at;transport=UDP»
ID=«iyeJWy_aXlgbkOZjW2eLfg..» UA='Z 5.6.10 v2.10.20.10'
Rewrite Rules are applied as a domain setting.
Thx and BR,
Malte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20251029/4e448333/attachment.htm>
More information about the Spce-user
mailing list