<div dir="ltr">Hi All,<div><br></div><div>I am looking for examples on the scenario below</div><div><br></div><div><div>*********************</div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal">I am trying to configure the system to implement tech prefixes for different products. This is essentially a routing implementation.</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;min-height:14px"><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal">Scenario:</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;min-height:14px"><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal">I have 3 flavors of products that can be accessed using peer-specific prefixes, eg 99222 to product 1, 99555 to product 2 and 99888 to product 3</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;min-height:14px"><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal">A call comes in from Peer A with 99222e164 number, the incoming filter for the peer has a line item to accept this call, a fee is applied to this call then routed to another Peer B for termination. Before it is sent off to Peer B, the product prefix is stripped off then sent to the terminating Peer B (who does not know anything about the 99222 prefix but it may also request a prefix as well) e.g. change 99222e164 to 2114e164 before sending it to Peer B or just send e164 to Peer B — I will like to have the configuration example for both scenarios for sending to Peer B.</p><p></p>********************</div><div><br></div><div><div>I know the Rewrite Rule Sets can help me do the number manipulations but the examples they have are just too overly permissive for me e.g. ^([0-9]+)$ masks for ALL numbers.... </div><div><br></div><div>I tried using ^(99888[0-9]+)$ to mask for that particular prefix but do not know how to strip the first 5 numbers before sending it out. The only example I have is how to ADD numbers before sending it out like Replacement pattern "XXXXX\1" adds XXXXX to the front of the number and sends out.. If I wanted to add the XXXXX to the end of the e164 I do not know how to do that or if I wanted to strip 99888 from the number then add XXXXX to the front, I don't know how to do that..</div><div><br></div></div><div>I also tried ^(99888)([0-9]+)$ with a Replacement pattern of "\2" with no success, also tried replacement pattern of "99888\2" with no success as well.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-----</div>Ekunwe<br>Tel: 601.497.3932<br></div></div></div></div>