[Home]

Summary:ASTERISK-28015: pjsip: bad file descriptor when passing pjsip qualify endpoint to standard out
Reporter:Kirsty Tyerman (ktyerman)Labels:pjsip
Date Opened:2018-08-19 19:14:24Date Closed:2018-08-23 09:46:12
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:15.3.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When performing `asterisk -x "pjsip qualify 20000"` (where 20000 is a configured pjsip endpoint) on the command line, asterisk will not return the output of that command to standard out.

Instead the following error can be seen on the Asterisk CLI:
ERROR[8359]: utils.c:1441 ast_carefulwrite: write() returned error: Bad file descriptor

When the command `pjsip qualify 20000` is executed on the Asterisk CLI, the following output is recieved "Sending qualify to endpoint 20000". This is what I am expecting standard out to recieve when using -x to execute the command.
Comments:By: Asterisk Team (asteriskteam) 2018-08-19 19:14:27.116-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.

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].

By: Benjamin Keith Ford (bford) 2018-08-20 12:34:47.158-0500

[~ktyerman] can you try this on current 15? I can replicate on 15.3, but appears to have been fixed since then.

By: Kirsty Tyerman (ktyerman) 2018-08-22 18:53:46.383-0500

Tested on asterisk 15.5.0 and no longer having issue.