{"action":"created","issue":{"url":"https://api.github.com/repos/SIPp/sipp/issues/282","repository_url":"https://api.github.com/repos/SIPp/sipp","labels_url":"https://api.github.com/repos/SIPp/sipp/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/SIPp/sipp/issues/282/comments","events_url":"https://api.github.com/repos/SIPp/sipp/issues/282/events","html_url":"https://github.com/SIPp/sipp/issues/282","id":202651236,"number":282,"title":"Run uas with TLS accept register","user":{"login":"davidcsi","id":902640,"avatar_url":"https://avatars0.githubusercontent.com/u/902640?v=4","gravatar_id":"","url":"https://api.github.com/users/davidcsi","html_url":"https://github.com/davidcsi","followers_url":"https://api.github.com/users/davidcsi/followers","following_url":"https://api.github.com/users/davidcsi/following{/other_user}","gists_url":"https://api.github.com/users/davidcsi/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcsi/subscriptions","organizations_url":"https://api.github.com/users/davidcsi/orgs","repos_url":"https://api.github.com/users/davidcsi/repos","events_url":"https://api.github.com/users/davidcsi/events{/privacy}","received_events_url":"https://api.github.com/users/davidcsi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-23T21:08:44Z","updated_at":"2017-09-12T05:07:41Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm trying to run SIPp with TLS, when it receives the TLS connect request I get:\r\n\r\n2017-01-23\t21:02:06.267088\t1485205326.267088: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 1. Retrying....\r\n2017-01-23\t21:02:06.467538\t1485205326.467538: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 2. Retrying....\r\n2017-01-23\t21:02:06.669083\t1485205326.669083: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 3. Retrying....\r\n2017-01-23\t21:02:06.869289\t1485205326.869289: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 4. Retrying....\r\n2017-01-23\t21:02:07.069584\t1485205327.069584: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 5. Retrying....\r\n2017-01-23\t21:02:07.269869\t1485205327.269869: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 6. Retrying....\r\n2017-01-23\t21:02:07.470058\t1485205327.470058: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 7. Retrying....\r\n2017-01-23\t21:02:07.670279\t1485205327.670279: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 8. Retrying....\r\n2017-01-23\t21:02:07.870604\t1485205327.870604: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 9. Retrying....\r\n2017-01-23\t21:02:08.070833\t1485205328.070833: SSL_accept failed with error: SSL_read returned SSL_ERROR_WANT_READ. Attempt 10. Retrying....\r\n2017-01-23\t21:02:08.271071\t1485205328.271071: Error in SSL_accept: SSL_read returned SSL_ERROR_WANT_READ\r\n\r\n\r\nI'm starting SIPp with:\r\n\r\nsipp -bind_local -i LOCAL_IP_ADDRESS -p 5061 -sf recv_register.xml -t l1 -trace_err -error_file log_err.log -trace_logs -trace_msg -tls_key cakey.pem -tls_cert cacert.pem\r\n\r\nThe client is setup with self-generated certs, it's zoiper. I can register via TLS with a fs server, so i know the client is setup properly.\r\n\r\nPlease help,\r\n\r\nThanks!!\r\n"},"comment":{"url":"https://api.github.com/repos/SIPp/sipp/issues/comments/328737264","html_url":"https://github.com/SIPp/sipp/issues/282#issuecomment-328737264","issue_url":"https://api.github.com/repos/SIPp/sipp/issues/282","id":328737264,"user":{"login":"ramkisuni","id":12180608,"avatar_url":"https://avatars3.githubusercontent.com/u/12180608?v=4","gravatar_id":"","url":"https://api.github.com/users/ramkisuni","html_url":"https://github.com/ramkisuni","followers_url":"https://api.github.com/users/ramkisuni/followers","following_url":"https://api.github.com/users/ramkisuni/following{/other_user}","gists_url":"https://api.github.com/users/ramkisuni/gists{/gist_id}","starred_url":"https://api.github.com/users/ramkisuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramkisuni/subscriptions","organizations_url":"https://api.github.com/users/ramkisuni/orgs","repos_url":"https://api.github.com/users/ramkisuni/repos","events_url":"https://api.github.com/users/ramkisuni/events{/privacy}","received_events_url":"https://api.github.com/users/ramkisuni/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T05:07:41Z","updated_at":"2017-09-12T05:07:41Z","author_association":"NONE","body":"in sipp-master version src/socket.cpp, I am thinking the object ret is set to int in 9 or 10th line, is this the problem here for SSL_accept to fail ? \r\n\r\n`**ret = new SIPpSocket(ss_ipv6, ss_transport, fd, 1);**\r\n    if (!ret) {\r\n        ::close(fd);\r\n        ERROR_NO(\"Could not allocate new socket!\");\r\n    }\r\n\r\n    /* We should connect back to the address which connected to us if we\r\n     * experience a TCP failure. */\r\n    memcpy(&ret->ss_dest, &remote_sockaddr, sizeof(ret->ss_dest));\r\n\r\n    if (ret->ss_transport == T_TLS) {\r\n#ifdef USE_OPENSSL\r\n        **int ret;**\r\n        int ii = 0;\r\n        while ((ret = SSL_accept(**ss_ssl**)) < 0) {` //it should be **ret->ss_ssl**  i think\r\n\r\n"}}
{"actor":{"display_login":"ramkisuni"}}