<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Agalya!</tt></p>
<p><tt>We have not done any development in that direction, and I
assume it won't work out of the box, as we need to instruct
libcurl on where to find the CA certificate before we can expect
it to establish the TLS connection. As an alternative, we could
add the option of disabling host/peer verifications like here
[1]</tt><br>
</p>
<p><tt>[1]: <a class="moz-txt-link-freetext" href="https://curl.haxx.se/libcurl/c/https.html">https://curl.haxx.se/libcurl/c/https.html</a></tt><br>
</p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 31.10.2016 16:41, Ramachandran,
Agalya (Contractor) wrote:<br>
</div>
<blockquote
cite="mid:cc6d7905028e488cb44878af59fb4d8e@COPDCEX28.cable.comcast.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:blue">Hi team, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Have you tried
with </span><b><span style="color:red"><a
moz-do-not-send="true" href="https://url"><span
style="color:red">https://url</span></a></span></b><span
style="color:red">
</span><span style="color:blue">with async and does that work
without issue ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I try,
resume_async_http_req is called, but crash is occurring at
libcurl library. So helpless to debug further.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">async(rest_put</span><span
style="color:red">(<b><a class="moz-txt-link-rfc2396E" href="https://url">"https://url"</a>,
</b></span><span style="color:blue">"$fU,$tU,$ci ",
"application/json", "$var(body)", "$var(ct)",
"$var(rcode)"),resume);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">My question is
crash occring only in my scenario or OpenSIPS doesn’t
support async as https?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Here is my dump
just in case for reference.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span style="color:#A50021">#0
0x00007f567248da1e in Curl_raw_nequal () from
/lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#A50021">#1
0x00007f567245bd0f in Curl_checkheaders () from
/lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#A50021">#2
0x00007f567245d1e5 in Curl_http () from
/lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#A50021">#3
0x00007f567246db4b in Curl_do () from /lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#A50021">#4
0x00007f567247da1b in multi_runsingle () from
/lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#A50021">#5
0x00007f567247e121 in curl_multi_perform () from
/lib64/libcurl.so.4<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="color:blue">#6
0x00007f56726b75ca in resume_async_http_req (fd=9,
msg=0x7f56739c0640 <faked_req.10404>,
_param=0x7f56b3e354d0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> at
rest_methods.c:380<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#7
0x00007f56737771ff in t_resume_async (fd=0x7f56b3e26840,
param=0x7f567405c3e8) at async.c:125<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#8
0x0000000000509975 in handle_io (fm=0x7f56b3e26840, idx=1,
event_type=1) at net/net_udp.c:267<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#9
0x00000000005082b3 in io_wait_loop_epoll (h=0x806e00
<_worker_io>, t=1, repeat=0) at
net/../io_wait_loop.h:221<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#10
0x0000000000509c30 in udp_rcv_loop (si=0x7f56b3dd6808) at
net/net_udp.c:308<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#11
0x000000000050a1c8 in udp_start_processes (chd_rank=0x7d30e8
<chd_rank.10706>, startup_done=0x0) at
net/net_udp.c:372<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#12
0x0000000000492304 in main_loop () at main.c:671<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">#13
0x0000000000494d8f in main (argc=7, argv=0x7fff38a979f8) at
main.c:1261<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ramachandran, Agalya
(Contractor) <br>
<b>Sent:</b> Thursday, October 27, 2016 4:24 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>; 'Liviu Chircu'
<a class="moz-txt-link-rfc2396E" href="mailto:liviu@opensips.org"><liviu@opensips.org></a><br>
<b>Subject:</b> Support for https in async<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi team,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Just a quick
question.. Does async(), method supports https request?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I try to use
https, resume_async_http_req is called, but I never got the
response and rather OpenSIPS crashed at libcurl.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya<o:p></o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>