# How do I add a WebSocket transport protocol to Wazo

**URL:** <https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883>\
**Category:** Installation/Configuration\
**Created:** [September 1, 2021, 4:52pm UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883 "2021-09-01T16:52:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayowa](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mayowa](https://wazo-platform.discourse.group/u/mayowa)\
**Post date:** [September 1, 2021, 4:52pm UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/1 "2021-09-01T16:52:42Z")

</div>

Hello,

I am trying to setup a SIP connection over WebSocket, but I can’t find how to enable WebSocket transport.

Is this something that is possible?

Thanks

---

<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:** [September 4, 2021, 11:17am UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/2 "2021-09-04T11:17:49Z")

</div>

Hello, it’s enable by default on [https://wazo/api/asterisk/ws](https://wazo/api/asterisk/ws)

> <https://github.com/wazo-platform/xivo-config/blob/master/etc/nginx/locations/https-available/asterisk>

Sylvain

---

<div class="post-metadata">

**Author:** ![mayowa](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mayowa](https://wazo-platform.discourse.group/u/mayowa)\
**Post date:** [September 4, 2021, 11:33am UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/3 "2021-09-04T11:33:44Z")

</div>

Thanks Sylvain.

The WebSocket I see on the documentation is for listening to events.

Is this WebSocket on [https://wazo/api/asterisk/ws](https://wazo/api/asterisk/ws) useful for SIP clients (webrtc) to connect? By acting as a proxy or gateway.

So just to give more context, we are building a mobile app sip client. We can’t connect to the pbx directly, but can do so using this public sip server [https://tryit.jssip.net](https://tryit.jssip.net), which forwards register requests to our Wazo pbx.

I am hoping Wazo has its own component for proxy/gateway. I hope my context makes sense?

---

<div class="post-metadata">

**Author:** ![mayowa](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mayowa](https://wazo-platform.discourse.group/u/mayowa)\
**Post date:** [September 4, 2021, 11:50am UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/4 "2021-09-04T11:50:32Z")

</div>

Never mind. I just noticed the SIP client is able to connect directly to the WebSocket or use a proxy. The earlier url you provided as the WebSocket url worked.

I appreciate very much.

---

<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:** [September 4, 2021, 12:26pm UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/5 "2021-09-04T12:26:58Z")

</div>

We have also a SDK for help people to create webrtc application. Please note we are using asterisk and it’s a b2bua not a proxy. If you want a proxy use kamailio for example.  
Our sdk have sip.js not jssip.

---

<div class="post-metadata">

**Author:** ![mayowa](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mayowa](https://wazo-platform.discourse.group/u/mayowa)\
**Post date:** [September 4, 2021, 1:17pm UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/6 "2021-09-04T13:17:30Z")

</div>

Thank you very much Sylvain. I will keep this in mind when we are building the web application.

We are currently working on the mobile app, using Google Flutter. Perhaps a port of sip.js to Flutter in the future?

---

<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:** [September 5, 2021, 5:03am UTC](https://wazo-platform.discourse.group/t/how-do-i-add-a-websocket-transport-protocol-to-wazo/883/7 "2021-09-05T05:03:52Z")

</div>

For the moment this is not in our plan, we only support react-native.
