# How to assign a phone number to one of your agents

You can restrict an agent or group to only access certain numbers, making them able to receive and make calls only with the numbers they have access to.

**First, we can set the inbound flow (incoming calls) by following the steps:**

1\. Go to the [IVR menu](https://app.toky.co/business/ivr) under Telephony:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-5134078c2e4cc8a47ae67b27386e07933842cb20%2F11945470269457?alt=media" alt=""><figcaption></figcaption></figure>

2\. There, select the IVR linked to the number you will like to assign to the agent or group by clicking the pencil icon next to the IVR:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-e58cad1bfad6fbbcab9d23e74d6d160f8b7de96c%2F11945491459985?alt=media" alt=""><figcaption></figcaption></figure>

3\. The IVR settings will show up and you can see the Number assigned to it, this means that the IVR will handle every single inbound call to this number, simply select the default option to send the call to either an agent or group and hit Save Changes, You'll get a confirmation message:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-1486683a5182af54e37641dc9cc8bead01afdb6b%2F11945614707345?alt=media" alt=""><figcaption></figcaption></figure>

**Now that the inbound part is done, we can proceed with the outbound part.**

1\. Go to the [Phone Numbers](https://app.toky.co/business/phone_numbers) section under Telephony:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-a511a19d1c4ae30ef049d8848bef2b1b289c6baf%2F11945031591185?alt=media" alt=""><figcaption></figcaption></figure>

2\. There, select the number you'd like to restrict your agents to by clicking on the Edit button, which is a pencil icon or the word "Edit" depending on the view of numbers you have:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-9bb99bbe30f63cc6ff16c88d7d939f9c6c98d1d3%2F11945128138897?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-b89d70741cc6e97a8825b0b18f39de70fe16bdae%2F11945129225233?alt=media" alt=""><figcaption></figcaption></figure>

3\. After hitting the Edit button (or pencil icon) this window will show up, simply navigate to the Agents Restrictions to select the agents by enabling the toggle:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-a3350bb02b877fca313247540048afed4d11f32c%2F11945247367697?alt=media" alt=""><figcaption></figcaption></figure>

4\. After that, hit Save Changes and you'll get a confirmation message:

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-2dfe5fcd8717988d98b35e196cedb3b86dc719ed%2F11945274891025?alt=media" alt=""><figcaption></figcaption></figure>

Now your agent will make and receive calls only with the assigned numbers.
