# Set priorities in an SMS trunk group

Priority controls the order in which the trunks in an SMS trunk group are used
for message delivery. After creating a trunk group, you can set the
**Priority** of each member trunk from the **SMS Trunks** list. The trunk with
the highest number in the **Priority** field is attempted first.

## Before you begin

- An active DIDWW account is required. [Sign in to DIDWW](https://my.didww.com/users/sign_in).
- An SMS trunk group with two or more member trunks is required. If you do not
  have one, see [Create an SMS trunk group](create-sms-trunk-group.html). To
  add trunks to an existing group, see [Edit an SMS trunk
group](manage-sms-trunk-groups.html#user-panel-sms-trunk-group-edit).

## Step 1: Set trunk priorities

Set the priorities in the **SMS Trunks** list or in the settings of each
member trunk.

In the SMS Trunks list

1. In the DIDWW User Panel, go to **SMS > SMS Trunks**.
2. Click the plus icon next to the trunk group to expand it. The member
   trunks are displayed, each with a **Priority** field.
3. Enter a new value from `0` to `32767` in the **Priority** field
   of a member trunk, or use the arrows in the field to change it. A
   higher value represents a higher priority.

The new value is saved when you leave the field, and the **Trunk
updated successfully** message appears.

[![SMS Trunks list with an expanded SMS trunk group and the Priority fields of its member trunks highlighted](../../../../_images/fig34.webp)](../../../../_images/fig34.webp)


**Fig. 1.** Edit member trunk priorities


In the trunk settings

1. In the DIDWW User Panel, go to **SMS > SMS Trunks**.
2. Click the name of the member trunk to open its edit form.
3. In the **Trunk Group Configuration** section, change the
   **Priority** value from `0` to `32767`.
4. Click **Submit**.

[![Edit SMS to Email Trunk page with the Trunk Group Configuration section and the Submit button highlighted](../../../../_images/fig_trunk_priority.webp)](../../../../_images/fig_trunk_priority.webp)


**Fig. 2.** Set the priority in the trunk settings

## Step 2: Check the routing order

1. In the **SMS Trunks** list, review the **Priority** values of the member
   trunks in the expanded trunk group.
2. Make sure that the trunk you want DIDWW to attempt first has the highest
   value.

DIDWW attempts the member trunks from the highest to the lowest **Priority**
value. For example, if trunks have priorities `2`, `1`, and `0`, DIDWW
attempts the trunk with priority `2` first. If it fails, DIDWW tries
priority `1`, followed by priority `0`. Member trunks with the same
**Priority** value are attempted in random order. For more information, see
[Priority and failover](../sms-trunk-groups.html#sms-trunk-group-priority-failover).

## Related resources

- [SMS trunk groups](../sms-trunk-groups.html) - Understand how priorities
  and failover affect message delivery.
- [SMS trunk group reference](../sms-trunk-group-reference.html) - Look up
  group fields, supported trunk types, and priority settings.
- [Manage SMS trunk groups](manage-sms-trunk-groups.html) - Update the name
  or modify the members of a trunk group, or delete it.
- [Assign an SMS trunk](../../../../phone-numbers/my-numbers/how-to-guides/assign-sms-trunk.html#assigning-sms-trunk) - Assign the trunk group to
  DID numbers to receive inbound messages.
