[Home]

Summary:ASTERISK-20439: Do not fail load of chan_sip if res_http_websocket is not loaded
Reporter:Shaun Ruffell (sruffell)Labels:
Date Opened:2012-09-18 13:34:01Date Closed:2012-09-27 12:09:27
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:Channels/chan_sip/WebSocket
Versions:11.0.0-beta1 Frequency of
Occurrence
Constant
Related
Issues:
causesASTERISK-20631 Unable to connect via WebRTC
Environment:Attachments:( 0) 0001-chan_sip-websocket-support-is-an-optional-API.patch
( 1) 0001-loader-Ensure-dependent-modules-are-properly-initial.patch
Description:If res_http_websocket isn't loaded before chan_sip Asterisk will crash.

This is a regression since After updating to Asterisk-11 beta1, the following /etc/asterisk/modules.conf will cause Asterisk to abort load:

{noformat}
[modules]
autoload=no
load => pbx_config.so
noload => res_timing_dahdi.so
load => res_timing_timerfd.so
load => chan_dahdi.so
load => chan_sip.so
load => app_dial.so
{noformat}
Comments:By: Shaun Ruffell (sruffell) 2012-09-18 13:34:39.284-0500

Attaching a patch that resolves the issue by making the http_websocket interface optional.

By: Shaun Ruffell (sruffell) 2012-09-25 13:16:15.024-0500

Adding 0001-loader-Ensure-dependent-modules-are-properly-initial.patch which fixes a bug in the module loader.

I did not see this was required before since I had been running "module load chan_sip" from the command line when testing Asterisk 11.