From joel@gogii.net Mon Aug 7 22:35:06 2017 From: Joel Serrano To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Issue in Dialplan Module Date: Mon, 07 Aug 2017 13:34:37 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1053575766==" --===============1053575766== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, (Sorry, my previous reply got blocked due to email size). Can you enable debug logs and try again, then send the logs? I tried the regex with the number 000919629897172 and it worked for me.. We must be missing something.. On Sun, Aug 6, 2017 at 11:19 PM, Logeshwaran G wrote: > I mean to say by applying the Rule mentioned from Joel is also not worked. > > > Rules: > =3D=3D=3D=3D=3D=3D > dpid: 1 > pr: 1 > match_op: 1 > match_exp: ^000[0-9]+$ <<<<<<< This will trigger a match on any number > that will start with three zeros. > match_len: 0 > subst_exp: ^000([0-9]+)$ <<<<<<< If the match_exp is found, then create > a group with the desired part of the number, in this case, everything after > the three zeros. > repl_exp: \1 <<<<<<< \1 is a back reference to group 1, in this case > the number you selected in subst_exp, without the three zeros. > attrs: > > > > > On Mon, Aug 7, 2017 at 11:43 AM, Logeshwaran G > wrote: > >> Please find the below output >> >> 5(12951) ERROR: