[Home]

Summary:ASTERISK-20631: Unable to connect via WebRTC
Reporter:Dan Jenkins (danjenkins)Labels:
Date Opened:2012-10-30 17:15:56Date Closed:2012-10-31 13:02:14
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_http_websocket
Versions:11.0.0 Frequency of
Occurrence
Constant
Related
Issues:
is caused byASTERISK-20439 Do not fail load of chan_sip if res_http_websocket is not loaded
Environment:debian Linux asterisk-beta 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/LinuxAttachments:( 0) extensions.conf
( 1) sip.conf
( 2) webrtc_issue.log
Description:When trying to connect to Asterisk 11 from Debian, I get no connection.

I could connect in beta 2 but couldnt in RC1 and can't in released 11.

Using Chrome Canary on Mac and http://sipml5.org/call.htm?svn=12 and get the error Failed to connet to the server

Comments:By: Dan Jenkins (danjenkins) 2012-10-30 17:16:38.389-0500

Adding in sip.conf, extensions.conf and the log from trying to connect.

By: Dan Jenkins (danjenkins) 2012-10-30 17:17:22.530-0500

Also, I spoke to Josh Colp and he suggested moving some things around in modules.conf but that didn't help at all.

Let me know if you need any more info or if I've missed something ridiculously obvious

By: Joshua C. Colp (jcolp) 2012-10-30 17:18:11.043-0500

Further details:

Issue appears to be in the optional API support. The stubs which are supposed to be used when res_http_websocket is not loaded appear to be getting used *always*. This causes protocol handlers to not get registered as expected.

By: Shaun Ruffell (sruffell) 2012-10-31 09:38:03.315-0500

Dan, what version of gcc is this system using?

By: Shaun Ruffell (sruffell) 2012-10-31 09:50:45.973-0500

Linking to ASTERISK-20439 since that was the change that most likely caused the change in behavior from beta2 to RC1. The patches from that issue went onto the 11 branch in commits ([r373911 "loader: Ensure dependent modules are properly initialized."|http://svnview.digium.com/svn/asterisk?view=revision&revision=373911]) and ([r373914 "Make res_http_websocket an optional dependency on supported platforms for chan_sip."|http://svnview.digium.com/svn/asterisk?view=revision&revision=373914]).

By: Dan Jenkins (danjenkins) 2012-10-31 09:51:28.401-0500

Hi Shaun, here's the output of gcc -v

gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)

By: Joshua C. Colp (jcolp) 2012-10-31 13:02:14.317-0500

Fixed in 11 as of revision 375559 and trunk as of revision 375560.