On 04/24/2018 09:08 AM, Matt Fredrickson wrote:> On Tue, Apr 24, 2018 at 10:54 AM, Bruce Ferrell <bferrell at baywinds.org> wrote: >> A while back (last year maybe?), there was a Digium blog post on setting up >> WebRTC. >> >> I was never able to get that working. >> >> I was working with Asterisk 15 on a RHEL derived distro and had no idea of >> where to go to shoot the failure. >> >> Has anyone got a tutorial with trouble shooting? > Great question! I'm assuming you're talking about the SFU blog post - > http://blogs.asterisk.org/2017/09/20/asterisk-15-multi-stream-media-sfu/ > ? > > I'd be curious as to what difficulties you ran into. We actually need > to try to consolidate the information in that post with the webrtc > setup page on the wiki - > https://wiki.asterisk.org/wiki/display/AST/Asterisk+WebRTC+Support > > You might try those two pages if you haven't yet. If you have > already, perhaps posting your specific challenges that you encountered > here might be helpful. > > Thanks! >OK, I've gone back and refreshed myself;? When I try to access cybermega in /var/lib/asterisk/static-http at port 8088 the asterisk debug shows: [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP opening session.? Top level [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP Request URI is /cyber/index.html [Apr 24 20:34:48] DEBUG[17170] http.c: Requested URI [/cyber/index.html] has no handler [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP keeping session open. status_code:404 When I serve it from apache, the web ui appears, but never connects. Using the firefox dev tools/console I see firefox can't establish a connection the server at wss://<IP address>:8089/ws The asterisk debug log shows: [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP opening session.? Top level [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP Request URI is /ws [Apr 24 20:39:21] DEBUG[19041] http.c: Requested URI [/ws] has no handler [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP keeping session open. status_code:404 Suggestions?
On Wed, Apr 25, 2018, at 12:40 AM, Bruce Ferrell wrote: <snip>> OK, I've gone back and refreshed myself;? When I try to access cybermega > in /var/lib/asterisk/static-http at port 8088 the asterisk debug shows: > > [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP opening session.? Top level > [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP Request URI is /cyber/ > index.html > [Apr 24 20:34:48] DEBUG[17170] http.c: Requested URI [/cyber/index.html] > has no handler > [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP keeping session open. > status_code:404When using static-http you have to have /static at the front so the path would be: /static/cyber/index.html> > When I serve it from apache, the web ui appears, but never connects. > > Using the firefox dev tools/console I see firefox can't establish a > connection the server at wss://<IP address>:8089/ws > > The asterisk debug log shows: > > [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP opening session.? Top level > [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP Request URI is /ws > [Apr 24 20:39:21] DEBUG[19041] http.c: Requested URI [/ws] has no > handler > [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP keeping session open. > status_code:404 > > Suggestions?Is there anything in the console at startup stating that stuff didn't load? The module which does websockets is res_http_websocket, and you can see if all that is needed is loaded using: "module show like websocket" on the CLI. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
On 4/25/18 6:05 AM, Joshua Colp wrote:> On Wed, Apr 25, 2018, at 12:40 AM, Bruce Ferrell wrote: > > <snip> > >> OK, I've gone back and refreshed myself;? When I try to access cybermega >> in /var/lib/asterisk/static-http at port 8088 the asterisk debug shows: >> >> [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP opening session.? Top level >> [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP Request URI is /cyber/ >> index.html >> [Apr 24 20:34:48] DEBUG[17170] http.c: Requested URI [/cyber/index.html] >> has no handler >> [Apr 24 20:34:48] DEBUG[17170] http.c: HTTP keeping session open. >> status_code:404 > When using static-http you have to have /static at the front so the path would be: > /static/cyber/index.html > >> When I serve it from apache, the web ui appears, but never connects. >> >> Using the firefox dev tools/console I see firefox can't establish a >> connection the server at wss://<IP address>:8089/ws >> >> The asterisk debug log shows: >> >> [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP opening session.? Top level >> [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP Request URI is /ws >> [Apr 24 20:39:21] DEBUG[19041] http.c: Requested URI [/ws] has no >> handler >> [Apr 24 20:39:21] DEBUG[19041] http.c: HTTP keeping session open. >> status_code:404 >> >> Suggestions? > Is there anything in the console at startup stating that stuff didn't load? The module which does websockets is res_http_websocket, and you can see if all that is needed is loaded using: > > "module show like websocket" > > on the CLI. >That's a step closer!? The URI has to be /asterisk/static/cyber/index.html. I should make the asterisk part go away, but for now... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180425/82788be6/attachment.html>