[Home]

Summary:ASTERISK-30065: pjsip: Open Websocket connection is not reused for outgoing requests
Reporter:LA (learbia)Labels:patch
Date Opened:2022-05-16 07:12:44Date Closed:2022-05-18 19:31:40
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:pjproject/pjsip Resources/res_pjsip_transport_websocket
Versions:18.12.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ASTERISK-30065.diff
( 1) log_wss_TRANSPORT_ERROR.log
( 2) log_wss_work.log
( 3) pjsip.conf
Description:The new version stoped to work the incomming call in Endpoint WSS. In console debug we receive TRANSPORT ERROR.

Attachment 2 files.

1) Log with asterisk version 18.11.3 with call work

2) Log with asterisk version 18.12.0 - Transport ERROR
Comments:By: Asterisk Team (asteriskteam) 2022-05-16 07:12:46.429-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Joshua C. Colp (jcolp) 2022-05-17 07:47:52.644-0500

Attached is a patch which resolves this issue and is currently up for review. It can be applied to Asterisk using:

patch -p1 < ASTERISK-30065.diff

By downloading the patch file and placing it into the Asterisk source directory, as well as executing the command from within the source directory.

By: LA (learbia) 2022-05-18 15:20:52.193-0500

Works Fine. Great.

By: Friendly Automation (friendly-automation) 2022-05-18 19:31:41.744-0500

Change 18549 merged by Friendly Automation:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18549|https://gerrit.asterisk.org/c/asterisk/+/18549]

By: Friendly Automation (friendly-automation) 2022-05-18 19:32:33.963-0500

Change 18548 merged by Friendly Automation:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18548|https://gerrit.asterisk.org/c/asterisk/+/18548]

By: Friendly Automation (friendly-automation) 2022-05-18 19:33:08.049-0500

Change 18568 merged by Friendly Automation:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18568|https://gerrit.asterisk.org/c/asterisk/+/18568]

By: Friendly Automation (friendly-automation) 2022-05-19 03:39:55.741-0500

Change 18550 merged by Joshua Colp:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18550|https://gerrit.asterisk.org/c/asterisk/+/18550]

By: Friendly Automation (friendly-automation) 2022-05-19 10:44:26.110-0500

Change 18580 merged by Michael Bradeen:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18580|https://gerrit.asterisk.org/c/asterisk/+/18580]

By: Friendly Automation (friendly-automation) 2022-05-19 10:45:45.389-0500

Change 18559 merged by Michael Bradeen:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18559|https://gerrit.asterisk.org/c/asterisk/+/18559]

By: Friendly Automation (friendly-automation) 2022-05-19 10:46:08.942-0500

Change 18558 merged by Michael Bradeen:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/18558|https://gerrit.asterisk.org/c/asterisk/+/18558]

By: Friendly Automation (friendly-automation) 2023-01-03 08:30:25.045-0600

Change 19751 merged by Friendly Automation:
res_pjsip_transport_websocket: Also set the remote name.

[https://gerrit.asterisk.org/c/asterisk/+/19751|https://gerrit.asterisk.org/c/asterisk/+/19751]