<div dir="ltr"><div dir="ltr">On Thu, Feb 20, 2020 at 9:38 PM Patrick Wakano <<a href="mailto:pwakano@gmail.com">pwakano@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello list,</div><div>Hope you are all doing well!</div><div><br></div><div>I am facing a problem when compiling Asterisk 16.8.0 in a CentOS 6 box and I wonder if someone can put some light on it.<br></div><div>Log history short, install_prereq fails to install the packages (not sure how important they actually are....): <span style="font-family:monospace">speexdsp-devel, gmime-devel, uriparser-devel, iksemel-devel, uw-imap-devel, hoard</span><br>Then, I am running the following commands to build Asterisk:</div><div><span style="font-family:monospace">./configure --with-crypto --with-srtp --with-ssl</span></div><div><span style="font-family:monospace">make menuselect.makeopts</span></div><div><span style="font-family:monospace">menuselect/menuselect --enable DONT_OPTIMIZE --enable BETTER_BACKTRACES --enable MALLOC_DEBUG --disable BUILD_NATIVE --enable app_macro menuselect.makeopt</span></div><div><span style="font-family:monospace">make OPT=-fPIC</span></div><div><span style="font-family:monospace">make install</span></div><div><span style="font-family:monospace">make samples</span></div><div><br></div><div>After this, when I start Asterisk, I get the following error with pjsip modules:</div><div><span style="font-family:monospace">ERROR[6253]: loader.c:2396 load_modules: Error loading module 'chan_pjsip.so': /usr/lib/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects</span></div><div><span style="font-family:monospace">ERROR[6253]: loader.c:2396 load_modules: Error loading module 'res_pjsip.so': /usr/lib/asterisk/modules/res_pjsip.so: undefined symbol: pjsip_tls_transport_start2</span></div><div><span style="font-family:monospace">ERROR[6253]: loader.c:2396 load_modules: Error loading module 'res_pjsip_config_wizard.so': /usr/lib/asterisk/modules/res_pjsip_config_wizard.so: undefined symbol: ast_sip_get_sorcery</span><br></div><div><br></div><div>After a lot of investigation I found this post (<a href="https://asteriskfaqs.org/2018/09/25/asterisk-users/asterisk-1561-symbol-pjsip_tls_transport_start2-not-found.html" target="_blank">https://asteriskfaqs.org/2018/09/25/asterisk-users/asterisk-1561-symbol-pjsip_tls_transport_start2-not-found.html</a>) which pointed me to the with-ssl parameter.<br></div><div>So if I run all previous commands, but remove the "--with-ssl" options from the configure, then I don't have the pjsip errors when I start Asterisk.</div><div><br></div><div>My first question is, what will be the impact of removing the --with-ssl option? Will TLS and WSS still be possible?</div></div></blockquote><div><br></div><div>If Asterisk is able to autodetect, and find the appropriate encryption libraries then yes TLS and WSS should be available. I do not use those options when building and am able to still make secure calls.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I didn't have time to test these things, however I did compared the configure and make outputs and the only difference are below, so looks like nothing extra gets compiled when the with-ssl is used...<br></div><div>With --with-ssl:</div><div><span style="font-family:monospace">[pjproject]  Configuring with <b>--enable-ssl </b>--prefix=/opt/pjproject --disable-speex-codec --disable-speex-aec --disable-bcg729 --disable-gsm-codec --disable-ilbc-codec --disable-l16-codec --disable-g722-codec --disable-g7221-codec --disable-opencore-amr --disable-silk --disable-opus --disable-video --disable-v4l2 --disable-sound --disable-ext-sound --disable-sdl --disable-libyuv --disable-ffmpeg --disable-openh264 --disable-ipp --disable-libwebrtc --without-external-pa --without-external-srtp --disable-resample --disable-g711-codec --enable-epoll</span></div><div><span style="font-family:monospace">checking for mandatory modules:  PJPROJECT CRYPTO SRTP <b>OPENSSL</b>... ok</span></div><div>Without --with-ssl:</div><div><span style="font-family:monospace">[pjproject]  Configuring with --prefix=/opt/pjproject --disable-speex-codec --disable-speex-aec --disable-bcg729 --disable-gsm-codec --disable-ilbc-codec --disable-l16-codec --disable-g722-codec --disable-g7221-codec --disable-opencore-amr --disable-silk --disable-opus --disable-video --disable-v4l2 --disable-sound --disable-ext-sound --disable-sdl --disable-libyuv --disable-ffmpeg --disable-openh264 --disable-ipp --disable-libwebrtc --without-external-pa --without-external-srtp --disable-resample --disable-g711-codec --enable-epoll</span></div><div><span style="font-family:monospace">checking for mandatory modules:  PJPROJECT CRYPTO SRTP... ok</span><br></div><div><br></div><div>Also, why am I having the pjsip startup errors when the --with-ssl is used? I could not find a clear explanation for this problem and how to fix it....</div></div></blockquote><div><br></div><div>There appears to be a bug here. I configured, built, and ran with the same options mentioned (--with-ssl, etc...) and received similar pjsip module load errors. Please file a bug report on the Asterisk issue tracker [1].</div><div><br></div><div>[1] <a href="https://issues.asterisk.org/">https://issues.asterisk.org/</a></div><div><br></div><div>Thanks!</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Kevin Harwell<div>Software Developer</div><div>Sangoma Technologies<br><div>Check us out at: <a href="https://sangoma.com/" target="_blank">https://sangoma.com</a> & <a href="https://asterisk.org" target="_blank">https://asterisk.org</a></div></div></div></div></div></div></div></div></div></div>