[Home]

Summary:ASTERISK-27735: iostream.c:507 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1)
Reporter:jo kantor (jokantor)Labels:
Date Opened:2018-03-12 06:08:47Date Closed:2020-01-14 11:13:35.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/TCP-TLS
Versions:15.3.0 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:debian 9, centos 7Attachments:
Description:Following documentation I have spend last few days trying enable encryption on sip protocols, so far no luck. all errors and briefly describe the problems. Any logs and additional informations available on request.
https://community.asterisk.org/t/sip-tls-error-ssl-connection-error-00000001-lib-0-func-0-reason-1/73821/2
Comments:By: Asterisk Team (asteriskteam) 2018-03-12 06:08:48.939-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2018-03-12 08:30:35.621-0500

You're going to need to provide further information such as the full configuration, the console output, packet capture, and also whether the same thing works under a previous version of Asterisk or not.

By: jo kantor (jokantor) 2018-03-12 08:42:28.126-0500

Hi Josh
Thank you for early reply.
this is the specs of the first testing machine:
System:
Linux a-wedot 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
running on virtualbox
installed packages
libseccomp2:amd64                               install
libselinux1:amd64                               install
libsemanage-common                              install
libsemanage1:amd64                              install
libsepol1:amd64                                 install
libserf-1-1:amd64                               install
libsigc++-2.0-0v5:amd64                         install
libsigsegv2:amd64                               install
libslang2:amd64                                 install
libslang2-dev:amd64                             install
libsm6:amd64                                    install
libsmartcols1:amd64                             install
libsndfile1:amd64                               install
libsndio6.1:amd64                               install
libsox-fmt-alsa:amd64                           install
libsox-fmt-base:amd64                           install
libsox2:amd64                                   install
libspandsp-dev:amd64                            install
libspandsp2:amd64                               install
libsqlite0                                      install
libsqlite3-0:amd64                              install
libsqlite3-dev:amd64                            install
libsrtp0                                        install
libsrtp0-dev                                    install
libss2:amd64                                    install
libssh2-1:amd64                                 install
libssl-dev:amd64                                install
libssl-doc                                      install
libssl1.0.2:amd64                               install
libssl1.1:amd64                                 install
libstdc++-6-dev:amd64                           install
libstdc++6:amd64                                install
libsub-name-perl                                install
libsvn1:amd64                                   install
libswitch-perl                                  install
libsystemd0:amd64                               install
libtalloc2:amd64                                install
libtasn1-6:amd64                                install
libtdb1:amd64                                   install
libtevent0:amd64                                install
libtext-charwidth-perl                          install
libtext-iconv-perl                              install
libtext-wrapi18n-perl                           install
libtiff5:amd64                                  install
libtiff5-dev:amd64                              install
libtiffxx5:amd64                                install
libtimedate-perl                                install
libtinfo-dev:amd64                              install
libtinfo5:amd64                                 install
libtool                                         install
libtool-bin                                     install
libtsan0:amd64                                  install
libubsan0:amd64                                 install
libudev1:amd64                                  install
libunistring0:amd64                             install
liburi-perl                                     install
libusb-0.1-4:amd64                              install
libusb-1.0-0:amd64                              install
libustr-1.0-1:amd64                             install
libuuid1:amd64                                  install
libvorbis-dev:amd64                             install
libvorbis0a:amd64                               install
libvorbisenc2:amd64                             install
libvorbisfile3:amd64                            install
libwavpack1:amd64                               install
libwbclient0:amd64                              install
libwrap0:amd64                                  install
libx11-6:amd64                                  install
libx11-data                                     install
libx11-xcb1:amd64                               install
libxapian30:amd64                               install
libxau6:amd64                                   install
libxcb1:amd64                                   install
libxdmcp6:amd64                                 install
libxext6:amd64                                  install
libxi6:amd64                                    install
libxml2:amd64                                   install
libxml2-dev:amd64                               install
libxmuu1:amd64                                  install
libxt6:amd64                                    install
libxtables12:amd64                              install
libxtst6:amd64                                  install
linux-base                                      install
linux-compiler-gcc-6-x86                        install
linux-headers-4.9.0-4-amd64                     install
linux-headers-4.9.0-4-common                    install
linux-image-4.9.0-4-amd64                       install
linux-image-amd64                               install
linux-kbuild-4.9                                install
linux-libc-dev:amd64                            install
locales                                         install
login                                           install
logrotate                                       install
lsb-base                                        install
lsb-release                                     install
lsof                                            install
m4                                              install
mailutils                                       install
mailutils-common                                install
make                                            install
man-db                                          install
manpages                                        install
manpages-dev                                    install
mawk                                            install
mc                                              install
mc-data                                         install
mime-support                                    install
mount                                           install
mpg123                                          install
multiarch-support                               install
mysql-common                                    install
nano                                            install
ncurses-base                                    install
ncurses-bin                                     install
ncurses-term                                    install
net-tools                                       install
netbase                                         install
netcat-traditional                              install
nodejs                                          install
odbcinst                                        install
odbcinst1debian2:amd64                          install
openssh-client                                  install
openssh-server                                  install
openssh-sftp-server                             install
openssl                                         install
os-prober                                       install
passwd                                          install
patch                                           install
pciutils                                        install
perl                                            install
perl-base                                       install
perl-modules-5.24                               install
pinentry-curses                                 install
pkg-config                                      install
powermgmt-base                                  install
procps                                          install
psmisc                                          install
python                                          install
python-apt-common                               install
python-crypto                                   install
python-dev                                      install
python-dnspython                                install
python-ldb                                      install
python-minimal                                  install
python-samba                                    install
python-talloc                                   install
python-tdb                                      install
python2.7                                       install
python2.7-dev                                   install
python2.7-minimal                               install
python3                                         install
python3-apt                                     install
python3-chardet                                 install
python3-debian                                  install
python3-debianbts                               install
python3-httplib2                                install
python3-minimal                                 install
python3-pkg-resources                           install
python3-pycurl                                  install
python3-pysimplesoap                            install
python3-reportbug                               install
python3-requests                                install
python3-six                                     install
python3-urllib3                                 install
python3.5                                       install
python3.5-minimal                               install
readline-common                                 install
rename                                          install
reportbug                                       install
rsync                                           install
rsyslog                                         install
samba                                           install
samba-common                                    install
samba-common-bin                                install
samba-dsdb-modules                              install
samba-libs:amd64                                install
samba-vfs-modules                               install
sed                                             install
sensible-utils                                  install
sgml-base                                       install
shared-mime-info                                install
sox                                             install
sqlite                                          install
sqlite3                                         install
subversion                                      install
sudo                                            install
systemd                                         install
systemd-sysv                                    install
sysvinit-utils                                  install
tar                                             install
task-english                                    install
task-ssh-server                                 install
tasksel                                         install
tasksel-data                                    install
tcpd                                            install
tdb-tools                                       install
telnet                                          install
traceroute                                      install
tzdata                                          install
ucf                                             install
udev                                            install
unixodbc-dev                                    install
unzip                                           install
update-inetd                                    install
usbutils                                        install
util-linux                                      install
util-linux-locales                              install
uuid                                            install
uuid-dev:amd64                                  install
vim-common                                      install
vim-tiny                                        install
wamerican                                       install
wget                                            install
whiptail                                        install
x11-common                                      install
xauth                                           install
xdg-user-dirs                                   install
xkb-data                                        install
xml-core                                        install
xxd                                             install
xz-utils                                        install
zlib1g:amd64                                    install
zlib1g-dev:amd64                                install


By: jo kantor (jokantor) 2018-03-12 08:57:39.253-0500

I forgot to add the asterisk conf:

PBX Core settings
-----------------
 Version:                     15.3.0-rc2
 Build Options:               BUILD_NATIVE, OPTIONAL_API
 Maximum calls:               Not set
 Maximum open file handles:   1024
 Root console verbosity:      0
 Current console verbosity:   3
 Debug level:                 0
 Maximum load average:        0.000000
 Minimum free memory:         0 MB
 Startup time:                13:54:35
 Last reload time:            13:54:35
 System:                      Linux/4.9.0-4-amd64 built by root on x86_64 2018-03-12 08:30:37 UTC
 System name:
 Entity ID:                   08:00:27:a0:ac:c6
 PBX UUID:                    7fe97cbb-ec43-478d-9aa1-e7fdc12a0908
 Default language:            en
 Language prefix:             Enabled
 User name and group:         /
 Executable includes:         Disabled
 Transcode via SLIN:          Enabled
 Transmit silence during rec: Disabled
 Generic PLC:                 Enabled
 Min DTMF duration::          80
 Cache media frames:          Enabled
 RTP use dynamic payloads:    1
 RTP dynamic payload types:   35-63,96-127

* Subsystems
 -------------
 Manager (AMI):               Enabled
 Web Manager (AMI/HTTP):      Disabled
 Call data records:           Enabled
 Realtime Architecture (ARA): Disabled

* Directories
 -------------
 Configuration file:          /etc/asterisk/asterisk.conf
 Configuration directory:     /etc/asterisk
 Module directory:            /usr/lib/asterisk/modules
 Spool directory:             /var/spool/asterisk
 Log directory:               /var/log/asterisk
 Run/Sockets directory:       /var/run/asterisk
 PID file:                    /var/run/asterisk/asterisk.pid
 VarLib directory:            /var/lib/asterisk
 Data directory:              /var/lib/asterisk
 ASTDB:                       /var/lib/asterisk/astdb
 IAX2 Keys directory:         /var/lib/asterisk/keys
 AGI Scripts directory:       /var/lib/asterisk/agi-bin


By: Asterisk Team (asteriskteam) 2018-03-26 12:00:00.718-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines