# WebRTC with Asterisk 13

**URL:** <https://community.asterisk.org/t/webrtc-with-asterisk-13/73758>\
**Category:** Asterisk Support\
**Created:** [March 5, 2018, 10:38am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758 "2018-03-05T10:38:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [March 5, 2018, 10:38am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/1 "2018-03-05T10:38:15Z")

</div>

Hi,

I am unable to setup webRTC in asterisk 13 and when ever trying to register a sip getting the below error on my server  
[Mar 5 10:35:13] DEBUG[28581]: http.c:1946 httpd\_helper\_thread: HTTP opening session. Top level  
[Mar 5 10:35:13] DEBUG[28581]: tcptls.c:246 tcptls\_stream\_read: TLS transport or SSL error reading data: error:00000005:lib(0):func(0):DH lib, System call EOF  
[Mar 5 10:35:13] DEBUG[28581]: http.c:1993 httpd\_helper\_thread: HTTP idle timeout or peer closed connection.  
[Mar 5 10:35:13] DEBUG[28581]: http.c:2014 httpd\_helper\_thread: HTTP closing session. Top level

I am very new to webRTC concept, please guide or suggest some good article.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 5, 2018, 1:54pm UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/2 "2018-03-05T13:54:41Z")

</div>

The problem appears to be with the HTTPS server itself. Did you generate your certificate itself? What browser are you using? Can you visit the Asterisk HTTPS address in the browser?

---

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [March 6, 2018, 6:00am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/3 "2018-03-06T06:00:14Z")

</div>

Hi @jcolp,

Yes, I have already generated the certificate on linux server and yes I can visit the HTTPS in the browser by manually add exception and confirm certificate.

Thanks

---

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [March 6, 2018, 6:49am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/4 "2018-03-06T06:49:16Z")

</div>

Hi,

Found the issue as I was just opening the https in the browser without the port and wss but after puting the port in the https in browser and got below different error now

[Mar 6 07:02:37] DEBUG[6767]: threadpool.c:1137 worker\_idle: Worker thread idle timeout reached. Dying.  
[Mar 6 07:02:37] DEBUG[2897]: threadpool.c:996 worker\_thread\_destroy: Destroying worker thread 4020  
[Mar 6 07:02:40] DEBUG[3189]: res\_odbc.c:865 \_ast\_odbc\_request\_obj2: Reusing ODBC handle 0x7f18ec026930 from class ‘asterisk’  
[Mar 6 07:02:40] DEBUG[3189]: res\_config\_odbc.c:116 custom\_prepare: Skip: 0; SQL: SELECT \* FROM ps\_contacts WHERE expiration\_time \<= ? ORDER BY expiration\_time  
[Mar 6 07:02:40] DEBUG[3189]: res\_config\_odbc.c:132 custom\_prepare: Parameter 1 (‘expiration\_time \<=’) = ‘1520319760’  
[Mar 6 07:02:40] DEBUG[3189]: res\_odbc.c:714 ast\_odbc\_release\_obj: Releasing ODBC handle 0x7f18ec026930 into pool  
[Mar 6 07:02:40] DEBUG[3189]: res\_pjsip\_registrar\_expire.c:85 check\_expiration\_thread: Expiring 0 contacts

Thanks

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 6, 2018, 10:54am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/5 "2018-03-06T10:54:50Z")

</div>

Those are debug messages, not errors. If you aren’t a developer you shouldn’t have them on as they will cause you to think there are errors when there are not.

What precisely is happening now?

---

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [March 6, 2018, 10:59am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/6 "2018-03-06T10:59:10Z")

</div>

Hi,

I am using sipML5 to test if my ext is getting registered but no error is coming and not registering too so what else steps should I take to debug more? Any suggestions?  
Thanks

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 6, 2018, 11:04am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/7 "2018-03-06T11:04:20Z")

</div>

If you are using chan\_pjsip then use “pjsip set logger on” to look at the incoming traffic. If you are using chan\_sip then use “sip set debug on”. If you don’t see any messages then it’s the sipml5 side. If you see messages but the registration fails, then it’s likely your configuration in Asterisk.

I should also add my normal WebRTC disclaimer - if you are planning to deploy WebRTC or use it heavily you MUST learn about how it works and the fundamentals. It WILL NOT work 100% of the time.

---

<div class="post-metadata">

**Author:** ![Simplesunny](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/simplesunny/32/3721_2.png) [@Simplesunny](https://community.asterisk.org/u/Simplesunny)\
**Post date:** [March 6, 2018, 11:49am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/8 "2018-03-06T11:49:40Z")

</div>

Yes, I am learning actually and need good documentation for the same.

And yes there is an issue with sipML5 so I used another and it is working fine atleast registration has been done successfully but no number coming but anyways, I will look into it.

Thanks for you help Josh 🙂

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 6, 2018, 11:52am UTC](https://community.asterisk.org/t/webrtc-with-asterisk-13/73758/9 "2018-03-06T11:52:01Z")

</div>

There’s tons of documentation about the fundamentals of WebRTC across the internet, as it’s not a specific technology to Asterisk.
