<p>Hi <a href="https://github.com/bogdan-iancu" class="user-mention">@bogdan-iancu</a>,</p>

<p>Yes, there was a connection attempt in both the failure and success cases. So more information:</p>

<p>a) Curl makes a webrequest. Webservice will block until a timeout say 4s. Hence we used async for scalability.</p>

<p><strong>Success Case:</strong></p>

<pre><code>osips[6987]: RequestRoute[RT_HANDLE_PSTN_REDIRECT]: Submitting web service get
osips[6987]: NOTICE:core:io_wait_loop_epoll: EPOLLIN(read) event: epollwait() set event EPOLLHUP - connection closed by the remote peer!
osips[6987]: ResumeRoute[RT_RESUME_AFTER_RESPONSE]: Async web service request returned

</code></pre>

<p><strong>Failure Case:</strong></p>

<pre><code>osips[6611]: RequestRoute[RT_HANDLE_PSTN_REDIRECT]: Submitting web service get request
osips[6611]: NOTICE:core:io_wait_loop_epoll: connection closed by the remote peer!
osips[6611]: ERROR:core:io_wait_loop_epoll: [UDP_worker] unexpected event 10 on 1/1, data=0x7f8bce9f3b50
osips[6611]: NOTICE:core:io_wait_loop_epoll: connection closed by the remote peer!
osips[6611]: ERROR:core:io_wait_loop_epoll: [UDP_worker] unexpected event 10 on 1/1, data=0x7f8bce9f3b50
</code></pre>

<p>In both the cases, I verified using wireshark that the tcp connection was made with the server and server replied back with a response:</p>

<p><code>{"result":"timeout"}</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/829#issuecomment-197551622">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AFOciTtjvmfZq94tM23tpWn67QFttMhYks5puHJ6gaJpZM4HxalU.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/829#issuecomment-197551622"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>