<div dir="ltr"><div class="gmail_extra">
On 26 September 2017 at 13:43, Matthias Hohl <span dir="ltr"><<a href="mailto:matthias.hohl@telematica.at" target="_blank">matthias.hohl@telematica.at</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DE-AT"><div class="m_8575695811424319647WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hello Barry,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">can you explain your workarround more?</span></p></div></div></blockquote><div><br></div><div>It basically strips out any strange characters from the request user, which is what you asked for.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DE-AT"><div class="m_8575695811424319647WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Is this a valid method to do this?</span></p></div></div></blockquote><div><br></div><div>Valid, in that it works. <br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DE-AT"><div class="m_8575695811424319647WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">How does sipwise themself handle this problem? </span></p></div></div></blockquote><div><br></div><div>They don't which is why you have the problem you do. Generally this would get done on the UA side.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DE-AT"><div class="m_8575695811424319647WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Is this maybe also fixed in the new LTS mr5 release?</span></p></div></div></blockquote><div><br></div><div>I really don't know, sorry. <br></div><div><br></div><div>-Barry</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DE-AT"><div class="m_8575695811424319647WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thank you.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="DE">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="DE"> Barry Flanagan [mailto:<a href="mailto:barry@flanagan.ie" target="_blank">barry@flanagan.ie</a>] <br><b>Gesendet:</b> Dienstag, 26. September 2017 10:12<br><b>An:</b> Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at" target="_blank">matthias.hohl@telematica.at</a>><br><b>Cc:</b> Spce-user <<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>><br><b>Betreff:</b> Re: [Spce-user] Inbound Rewrite Rule for Callee - strip characters in dialed numbers<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal">On 26 September 2017 at 07:44, Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at" target="_blank">matthias.hohl@telematica.at</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">Hello...<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Has anyone an idea, how to solve this?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thank you<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>Am 13.09.2017 um 15:52 schrieb Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at" target="_blank">matthias.hohl@telematica.at</a>>:<u></u><u></u></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">we have sometimes the problem, that customers dial a number with letters or characters like „.“ Or „-„ or „/“ in it.<u></u><u></u></p><p class="MsoNormal">This stops rate-o-mat, so we need to rewrite the dialed number to strip out this characters.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><pre style="background:white">Like: <span style="font-size:9.0pt;font-family:Consolas;color:#333333">[^</span><span style="font-size:9.0pt;font-family:Consolas;color:#ad5100">0</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333">-</span><span style="font-size:9.0pt;font-family:Consolas;color:#ad5100">9</span><span style="font-size:9.0pt;font-family:Consolas;color:#333333">] => „“</span><u></u><u></u></pre></div></div></blockquote></div></blockquote><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">You could use something like:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> if(is_method("INVITE"))<br> {<br> $rU = $(rU{re.subst,/^(\+)?[:blank:]<wbr>?\(?([0-9]*)\)?[ -.]?\(?([0-9]*)\)?[ -.]?\(?([0-9]*)\)?[ -.]?\(?([0-9]*)\)?[ -.]?\(?([0-9]*)\)?$/\1\2\3\4\<wbr>5\6/});<br> xlog("L_NOTICE", "Consume spec chars in RURI - '$rU' - [% logreq_init -%]\n");<br> }<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">..in your templates/etc/kamailio/proxy/<wbr>kamailio.cfg.customtt.tt2<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hope this helps.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">-Barry Flanagan<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></blockquote></div><br></div></div>