[Home]

Summary:ASTERISK-29086: Option "send_pai=yes" is not working?
Reporter:Stanislav Abramenkov (silentindark)Labels:
Date Opened:2020-09-17 13:15:22Date Closed:2020-09-21 05:11:04
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:13.36.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) extensions_test.conf
( 1) pjsip_show_endpoint_5000.txt
Description:The SIP packet does not contain PAI (P-Asserted-Identity) information, when option (send_pai=yes) is enabled in configuration.

According to wiki -> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip
Option "send_pai" - Send the P-Asserted-Identity header

Test setup is following:
[5000]
type=aor
max_contacts=3
qualify_frequency=4

[auth5000]
type=auth
auth_type=userpass
password=5000
username=5000

[5000]
type=endpoint
context=default
aors=5000
auth=auth5000
direct_media=no
disallow=all
allow=alaw
send_pai=yes
Comments:By: Asterisk Team (asteriskteam) 2020-09-17 13:15:23.650-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: Sean Bright (seanbright) 2020-09-17 14:14:11.475-0500

Is the {{res_pjsip_caller_id.so}} module loaded?

By: Stanislav Abramenkov (silentindark) 2020-09-17 14:20:01.018-0500

Yes, module is loaded:
Module                         Description                              Use Count  Status      Support Level
res_pjsip_caller_id.so         PJSIP Caller ID Support                  1          Running              core

By: George Joseph (gjoseph) 2020-09-18 08:00:05.399-0500

I've just tested this and it seems to be working fine.  Can you attach more information please?  
* A pcap of a test call showing both legs of the test call
* A simple dialplan fragment that I can use to reproduce the issue
* The output of {{pjsip show endpoint 5000}}



By: Stanislav Abramenkov (silentindark) 2020-09-21 03:20:03.786-0500

pjsip show endpont 5000

By: Stanislav Abramenkov (silentindark) 2020-09-21 03:33:16.898-0500

call trace

By: Stanislav Abramenkov (silentindark) 2020-09-21 03:48:11.515-0500

Hi, I attached additional information. Is it possible, that problem is in softphone?
I use PhonerLite for tests under Windows
http://www.phonerlite.de/index_en.htm

By: Joshua C. Colp (jcolp) 2020-09-21 04:54:26.083-0500

If you are expecting P-Asserted-Identity to be present in the INVITE from the endpoint, this is not something Asterisk controls. The "send_pai" option configures whether Asterisk itself places the P-Asserted-Identity header in the INVITE requests that go to an endpoint.

By: Stanislav Abramenkov (silentindark) 2020-09-21 04:55:20.357-0500

Also attached trace from another softphone - Linphone

By: Joshua C. Colp (jcolp) 2020-09-21 04:58:58.465-0500

Like I said in my previous comment, this isn't something Asterisk controls. We can't force an endpoint to send us the header. It is completely up to it.

By: Stanislav Abramenkov (silentindark) 2020-09-21 05:03:32.234-0500

>>>The "send_pai" option configures whether Asterisk itself places the P-Asserted-Identity header in the INVITE requests that go to an endpoint.
Thank you for your response. Now, is clear for me. I think we can close this task.