# Dst rewrite rule with two prefixes and one Dst rewrite result (Customer AUTH)

**URL:** <https://community.yeti-switch.org/t/dst-rewrite-rule-with-two-prefixes-and-one-dst-rewrite-result-customer-auth/739>\
**Category:** Yeti-Switch\
**Created:** [March 7, 2024, 7:56pm UTC](https://community.yeti-switch.org/t/dst-rewrite-rule-with-two-prefixes-and-one-dst-rewrite-result-customer-auth/739 "2024-03-07T19:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![limbo](https://community.yeti-switch.org/letter_avatar/limbo/32/6_449c533f586939b6e5f246632a46421f.png) [@limbo](https://community.yeti-switch.org/u/limbo)\
**Post date:** [March 7, 2024, 7:56pm UTC](https://community.yeti-switch.org/t/dst-rewrite-rule-with-two-prefixes-and-one-dst-rewrite-result-customer-auth/739/1 "2024-03-07T19:56:24Z")

</div>

Hello Team,

I’m trying to configure a number rewrite rule in Customer AUTH with two prefixes in the DST Prefix option and a single Dst rewrite result. My goal is to populate the opening digits in Number list items and optimize the use of rates in destinations and dial peers.

Current Configuration:

```
DST Prefix: 749724, 890746
Dst rewrite rule: ^749724011(.*)$∣^890746011(.*)$
Dst rewrite result: 55\1

```

The rule only functions for the first prefix (749724). The second prefix (890746) is not rewritten correctly. It’s rewrite to 55.

Is it possible to achieve what I’m trying to do, or am I making a mistake in the configuration?

I’ve reviewed the official documentation and forum for Customer AUTH and Number Translation but haven’t encountered similar situations.

Any help or suggestions to resolve this issue would be greatly appreciated.

Thanks&Regards,  
Gustavo

---

<div class="post-metadata">

**Author:** ![dmitry.s](https://community.yeti-switch.org/user_avatar/community.yeti-switch.org/dmitry.s/32/179_2.png) [@dmitry.s](https://community.yeti-switch.org/u/dmitry.s)\
**Post date:** [March 9, 2024, 9:03am UTC](https://community.yeti-switch.org/t/dst-rewrite-rule-with-two-prefixes-and-one-dst-rewrite-result-customer-auth/739/2 "2024-03-09T09:03:53Z")

</div>

> [@limbo](#):
>
> `^749724011(.*)$∣^890746011(.*)$`

try

```auto
^749724011∣890746011(.*)$

```

---

<div class="post-metadata">

**Author:** ![limbo](https://community.yeti-switch.org/letter_avatar/limbo/32/6_449c533f586939b6e5f246632a46421f.png) [@limbo](https://community.yeti-switch.org/u/limbo)\
**Post date:** [March 13, 2024, 8:19pm UTC](https://community.yeti-switch.org/t/dst-rewrite-rule-with-two-prefixes-and-one-dst-rewrite-result-customer-auth/739/3 "2024-03-13T20:19:36Z")

</div>

Thanks dmitry.s! It’s working like a charm.

Gustavo.
