<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \,serif";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body bgcolor="white" lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<pre>Bogdan-Andrei,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks for your help. Now I can modify to make it fit my specific requirements.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Louis<o:p></o:p></pre>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-CA">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-CA"> Bogdan-Andrei Iancu <bogdan@opensips.org>
<br>
<b>Sent:</b> August 7, 2019 6:10 AM<br>
<b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org>; Louis Rochon <Louis.Rochon@comtechtel.com><br>
<b>Subject:</b> Re: [OpenSIPS-Users] opensipsctl ping sip:1234 at 1.2.3.4 ALWAYS returns “200 OK”<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <span style="mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:3.0pt"><strong><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:red;border:solid gray 3.0pt;padding:0cm;background:lightgrey">WARNING: External Email: Exercise Caution</span></strong><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi Louis,</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>The `opensipsctl ping` is actually triggering the `t_uac_dlg` MI command. The 200 OK you see is actually from the MI level, saying that the MI cmd was successfully ran. It is not from the SIP level</tt><br>
<br>
<tt>Now, opensipsctl may not be the smartest tool, so it display only the ret code from MI level. IF you want to see the full MI response (with the SIP payload also), remove the "head" filter here
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOpenSIPS%2Fopensips%2Fblob%2F2.4%2Fscripts%2Fopensipsctl%23L1895&data=02%7C01%7CLouis.Rochon%40comtechtel.com%7C8d522092903d415899a808d71b1f7bb9%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637007694356904558&sdata=KpLyk6QEz2XCVNU89HGp%2FFNvAA6lbS0jHZGmypFHHGk%3D&reserved=0">
https://github.com/OpenSIPS/opensips/blob/2.4/scripts/opensipsctl#L1895</a></tt><br>
<br>
<tt>Regards,</tt><br>
<tt> </tt><br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips-solutions.com&data=02%7C01%7CLouis.Rochon%40comtechtel.com%7C8d522092903d415899a808d71b1f7bb9%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637007694356914550&sdata=mjUpk0my5%2BDCg0X1%2FxN0j%2B7H%2Ftj76e5eEtjhgIB2nqY%3D&reserved=0">https://www.opensips-solutions.com</a><o:p></o:p></pre>
<pre>OpenSIPS Summit 2019<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2019Amsterdam%2F&data=02%7C01%7CLouis.Rochon%40comtechtel.com%7C8d522092903d415899a808d71b1f7bb9%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637007694356914550&sdata=pDOXZvSFYtDSakXPwnXPD86NIkAh4pH8xMQkmPie4XI%3D&reserved=0">https://www.opensips.org/events/Summit-2019Amsterdam/</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 08/06/2019 11:35 PM, Louis Rochon wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Just to add: I have completely reinstalled the OS and OpenSIPs 2.4.6.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Same problem….<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Anybody?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Louis<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-CA">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-CA"> Users
<a href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a>
<b>On Behalf Of </b>Louis Rochon<br>
<b>Sent:</b> August 5, 2019 9:08 AM<br>
<b>To:</b> OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org">
<users@lists.opensips.org></a><br>
<b>Subject:</b> [OpenSIPS-Users] opensipsctl ping <a href="sip:1234">sip:1234</a> at 1.2.3.4 ALWAYS returns “200 OK”</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:3.0pt"><strong><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:red;border:solid gray 3.0pt;padding:0cm;background:lightgrey">WARNING: External Email: Exercise Caution</span></strong><span style="font-size:12.0pt;font-family:"Times New Roman ,serif",serif"><br>
<br>
<br>
</span><o:p></o:p></p>
<div>
<p class="MsoNormal">opensipsctl ping <a href="sip:1234">sip:1234</a> at 1.2.3.4 ALWAYS returns “200 OK”.<o:p></o:p></p>
<p class="MsoNormal">I could point it to a dead IP and it still returns 200 OK.<o:p></o:p></p>
<p class="MsoNormal">Opensips 2.4.6 installed on CentOS 7.<o:p></o:p></p>
<p class="MsoNormal">In 2.4.2 and in 1.8, this returned “200” (no ok) or whatever cause-code the UA returned, and “408” for a time out. Now it’s always “200 OK”<o:p></o:p></p>
<p class="MsoNormal">Wireshark indicates that it does send SIP Options and receives appropriate response (if any).<o:p></o:p></p>
<p class="MsoNormal">Of course, I have googled this ad nauseum....<o:p></o:p></p>
<p class="MsoNormal">Help!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal">Louis<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA">NOTICE TO RECIPIENT: This email, including attachments, may contain information which is confidential, proprietary, attorney-client privileged and / or controlled under U.S. export laws and regulations
and may be restricted from disclosure by applicable State and Federal law. Nothing in this email shall create any legal binding agreement between the parties unless expressly stated herein and provided by an authorized representative of Comtech Telecommunications
Corp. or its subsidiaries. If you are not the intended recipient of this message, be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify us immediately
by return email and permanently delete all copies of the original email and any attached documentation from any computer or other media.
</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=02%7C01%7CLouis.Rochon%40comtechtel.com%7C8d522092903d415899a808d71b1f7bb9%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637007694356914550&sdata=%2F4Lqpfeet3zrkbtwke5vcMNzZLga6E%2BvvwPujT6rra0%3D&reserved=0">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>