<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Louis,<br>
<br>
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<br>
<br>
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 class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/blob/2.4/scripts/opensipsctl#L1895">https://github.com/OpenSIPS/opensips/blob/2.4/scripts/opensipsctl#L1895</a><br>
<br>
Regards,<br>
<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 08/06/2019 11:35 PM, Louis Rochon
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR09MB346799975C4C3EDB7DECE238E6D50@DM6PR09MB3467.namprd09.prod.outlook.com">
<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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
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;}
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;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{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]-->
<div class="WordSection1">
<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
style="mso-fareast-language:EN-CA" lang="EN-US">From:</span></b><span
style="mso-fareast-language:EN-CA" lang="EN-US"> Users
<a class="moz-txt-link-rfc2396E" 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 class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject:</b> [OpenSIPS-Users] opensipsctl ping
<a class="moz-txt-link-freetext" href="sip:1234">sip:1234</a> 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"><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"><br>
<br>
</span><o:p></o:p></p>
<div>
<p class="MsoNormal">opensipsctl ping <a href="sip:1234"
moz-do-not-send="true">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.
<o:p></o:p></span></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>