Автор: Denis

Создание TLS соединения на Asterisk

SIP /etc/asterisk/sip.conf: [general] transport=tls encryption=yes tlsenable=yes externip=1.1.1.1 tlsbindaddr=0.0.0.0:5061 tlscertfile=/path/certificate.pem tlscafile=/path/cabundle.pem tlsprivatekey=/path/private.pem tlscipher=ALL tlsclientmethod=tlsv1 tlsdontverifyserver=yes nat=yes /etc/asterisk/users.conf: [tmp-tls](!) cid_number= vmsecret=no nat=yes

Читать далее

Получить доступ к document в iframe на JavaScript

Поиск элемента в iframe var elem = document.querySelectorAll(‘.section.map iframe’)[0].contentWindow.document.querySelectorAll(‘.ymaps-2-1-78-zoom__icon.ymaps-2-1-78-float-button-icon’)[0]; Кроссбраузерный вариант: var iframe = document.querySelector(‘iframe’); var iframeDocument = iframe.contentDocument ||

Читать далее