<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Matthias,<br>
yes, i think that should work. What does this command return:<br>
<br>
grep match_dynamic /etc/kamailio/proxy/kamailio.cfg<br>
? Also could you post the rule as it's stored in the
kamailio.dialplan table?<br>
<br>
Thanks.<br>
Andrew<br>
<br>
<br>
On 10/11/2018 01:07 PM, Hohl Matthias wrote:<br>
</div>
<blockquote type="cite"
cite="mid:766165780.2056625.1539256043126.JavaMail.zimbra@mx.telematica.at">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">i want to strip away the
${caller_cc} and ${caller_ac} number of a callee.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I need this for a fritzbox
case…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So the callee number
should not be transported as 43 720 123456 it should be just
transported as 123456<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I thought about to create
a regex match pattern like this: </span><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;background:#E0EAF3"
lang="EN-US">(${caller_cc}${caller_ac})([1-9][0-9]+)$</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And Replacement Pattern:
\2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But this doesn’t work_:<o:p></o:p></span></p>
<pre style="background:white"><span class="pln"><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US">INFO</span></span><span class="pun"><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US">:</span></span><span class="pln"><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US"> </span></span><span class="str"><span style="font-size:9.0pt;font-family:Consolas;color:#C42B44" lang="EN-US"><script></span></span><span class="pun"><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US">:</span></span><span class="pln"><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US"> </span></span><span style="font-size:9.0pt;font-family:Consolas;color:#106E23" lang="EN-US">No</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US"> matching rewrite rules </span><span style="font-size:9.0pt;font-family:Consolas;color:#205081" lang="EN-US">for</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US"> </span><span style="font-size:9.0pt;font-family:Consolas;color:#C42B44" lang="EN-US">'43720123456'</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333" lang="EN-US"> found</span><span style="font-size:9.0pt;font-family:Consolas;color:#CCCCCC" lang="EN-US"><o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is this even possible in
this way?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you.</span></p>
</blockquote>
<p><br>
</p>
</body>
</html>