[Home]

Summary:ASTERISK-29999: pjsip: Get information from 200 OK INVITE reply headers
Reporter:José Lopes (josemslopes)Labels:patch
Date Opened:2022-03-31 06:31:27Date Closed:2022-04-14 12:00:00
Priority:MinorRegression?
Status:Closed/CompleteComponents:Channels/chan_pjsip
Versions:18.8.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) nfon_res_pjsip_reply_header_funcs.patch
Description:There are some scenarios where we need to get information from 200 OK INVITE reply, like User-Agent and other X-*/P-* headers that can be provided.

When we execute the Dial on dialplan, we want to get the reply header information from the pre-connect sub (U option on Dial).

I created a patch with PJSIP_REPLY_HEADER function, based on PJSIP_HEADER function code, to allow to read the reply headers.

This is working for me right now. I will be happy to improve this code if you provide me with some guidance.
Comments:By: Asterisk Team (asteriskteam) 2022-03-31 06:31:28.115-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-03-31 06:36:01.661-0500

Contributions require the signing of a license agreement which is done by clicking "Sign a License Agreement" at the top of the page and filling out the form. These are manually reviewed and once done you will be able to upload a patch. To have it be included in Asterisk the fastest option is to also put it up for code review after this, by following the instructions on the linked wiki page provided in the automatic comment on the issue.

By: José Lopes (josemslopes) 2022-03-31 06:46:13.706-0500

I already signed the License Agreement, I will wait for that to be reviewed and then I will follow those recommendations.
Thanks for the feedback.

By: Asterisk Team (asteriskteam) 2022-04-14 12:00:00.574-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

By: Friendly Automation (friendly-automation) 2022-07-06 14:45:57.648-0500

Change 18738 merged by Friendly Automation:
res_pjsip_header_funcs: Add functions PJSIP_RESPONSE_HEADER and PJSIP_RESPONSE_HEADERS

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

By: Friendly Automation (friendly-automation) 2022-07-06 15:07:21.539-0500

Change 18736 merged by Kevin Harwell:
res_pjsip_header_funcs: Add functions PJSIP_RESPONSE_HEADER and PJSIP_RESPONSE_HEADERS

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

By: Friendly Automation (friendly-automation) 2022-07-06 15:07:53.477-0500

Change 18737 merged by Kevin Harwell:
res_pjsip_header_funcs: Add functions PJSIP_RESPONSE_HEADER and PJSIP_RESPONSE_HEADERS

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

By: Friendly Automation (friendly-automation) 2022-07-06 15:08:29.840-0500

Change 18367 merged by Kevin Harwell:
res_pjsip_header_funcs: Add functions PJSIP_RESPONSE_HEADER and PJSIP_RESPONSE_HEADERS

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