# Share one trunk with multiple tenants

**URL:** <https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296>\
**Category:** Installation/Configuration\
**Created:** [July 23, 2023, 1:29pm UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296 "2023-07-23T13:29:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vageesh](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vageesh](https://wazo-platform.discourse.group/u/vageesh)\
**Post date:** [July 23, 2023, 1:29pm UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296/1 "2023-07-23T13:29:29Z")

</div>

Hi, is it possible to share the same trunk with multiple tenants in wazo? If yes, how to configure this from UI?

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [July 24, 2023, 1:12am UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296/2 "2023-07-24T01:12:46Z")

</div>

Hello, no it’s not possible with the UI. It’s not developed to do that.

---

<div class="post-metadata">

**Author:** ![vageesh](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vageesh](https://wazo-platform.discourse.group/u/vageesh)\
**Post date:** [July 24, 2023, 4:11pm UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296/3 "2023-07-24T16:11:59Z")

</div>

Thanks for the reply @quintana.

Is it possible to day via the API?

Although yesterday while experimenting, I found a workaround for this via UI by creating a PJSIP trunk on the master account and then creating a Custom trunk on the Tenants account and in the interface specify the full PJSIP string like PJSIP/trunkname, this works for outgoing calls.  
For Inbound calls we create an entry in the incalls with Custom action and give action as Goto(\<tenant’s incoming context\>, CALLERID(dnid), 1). This routes the call to the particular tenant’s incall context where we can handle it further.

---

<div class="post-metadata">

**Author:** ![vageesh](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vageesh](https://wazo-platform.discourse.group/u/vageesh)\
**Post date:** [July 24, 2023, 6:07pm UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296/4 "2023-07-24T18:07:17Z")

</div>

But there is an issue with above approach as I can only create one custom endpoint like PJSIP/trunkname, when I am trying to create another it is giving me an error that custom endpoint already exists.

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [August 14, 2023, 2:59pm UTC](https://wazo-platform.discourse.group/t/share-one-trunk-with-multiple-tenants/1296/5 "2023-08-14T14:59:01Z")

</div>

Answer here [Why is there a limitation that only unique Interface is allowed while creating custom trunks - #2 by quintana](https://wazo-platform.discourse.group/t/why-is-there-a-limitation-that-only-unique-interface-is-allowed-while-creating-custom-trunks/1302/2)
