[OpenSIPS-Users] opensipsctl ping sip:1234 at 1.2.3.4 ALWAYS returns “200 OK”

Louis Rochon Louis.Rochon at comtechtel.com
Wed Aug 7 10:17:26 EDT 2019


Bogdan-Andrei,



Thanks for your help. Now I can modify to make it fit my specific requirements.



Regards,



Louis

From: Bogdan-Andrei Iancu <bogdan at opensips.org>
Sent: August 7, 2019 6:10 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>; Louis Rochon <Louis.Rochon at comtechtel.com>
Subject: Re: [OpenSIPS-Users] opensipsctl ping sip:1234 at 1.2.3.4 ALWAYS returns “200 OK”


WARNING: External Email: Exercise Caution

Hi Louis,

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

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 https://github.com/OpenSIPS/opensips/blob/2.4/scripts/opensipsctl#L1895<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>

Regards,



Bogdan-Andrei Iancu



OpenSIPS Founder and Developer

  https://www.opensips-solutions.com<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>

OpenSIPS Summit 2019

  https://www.opensips.org/events/Summit-2019Amsterdam/<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>
On 08/06/2019 11:35 PM, Louis Rochon wrote:
Just to add: I have completely reinstalled the OS and OpenSIPs 2.4.6.

Same problem….

Anybody?

Louis

From: Users <users-bounces at lists.opensips.org><mailto:users-bounces at lists.opensips.org> On Behalf Of Louis Rochon
Sent: August 5, 2019 9:08 AM
To: OpenSIPS users mailling list <users at lists.opensips.org><mailto:users at lists.opensips.org>
Subject: [OpenSIPS-Users] opensipsctl ping sip:1234 at 1.2.3.4 ALWAYS returns “200 OK”


WARNING: External Email: Exercise Caution


opensipsctl ping sip:1234 at 1.2.3.4 ALWAYS returns “200 OK”.
I could point it to a dead IP and it still returns 200 OK.
Opensips 2.4.6 installed on CentOS 7.
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”
Wireshark indicates that it does send SIP Options and receives appropriate response (if any).
Of course, I have googled this ad nauseum....
Help!

Thanks in advance,
Louis
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.




_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190807/5928cf18/attachment.html>


More information about the Users mailing list