[Home]

Summary:ASTERISK-27788: pjsip does not write log file entries when an endpoint becomes (un)reachable/lagged
Reporter:Gregory Massel (gmza)Labels:pjsip
Date Opened:2018-04-03 13:43:41Date Closed:2018-04-04 04:53:13
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:13.20.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Ubuntu 16.04.4 LTS, x86_64, Asterisk 13.20.0.Attachments:
Description:chan_sip (with qualify=yes) writes log entries such as:

[Mar  6 10:02:21] NOTICE[19683] chan_sip.c: Peer 'xxx' is now Lagged. (3552ms / 3000ms)
[Mar 29 18:40:09] NOTICE[19683] chan_sip.c: Peer 'xxx' is now UNREACHABLE!  Last qualify: 9
[Mar 29 18:40:20] NOTICE[19683] chan_sip.c: Peer 'xxx' is now Reachable. (1286ms / 3000ms)

However, chan_pjsip does NOT write similar log entries.

With pjsip, if an endpoint or aor has qualify=yes, it will monitor it, however, no log entry is written when it becomes unreachable and subsequently becomes reachable again.

This would typically also need to log upon inbound registration.

This is a feature parity issue.
Comments:By: Asterisk Team (asteriskteam) 2018-04-03 13:43:42.329-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: cloos (cloos) 2018-04-03 17:41:53.033-0500

He reported this against pjsip, not against chan_sip.

Your regex needs work.

By: Joshua C. Colp (jcolp) 2018-04-03 17:48:44.142-0500

It was the mention of chan_sip itself. It's hard to make one that works perfectly, because people generally don't set things correctly.

By: Joshua C. Colp (jcolp) 2018-04-04 04:53:06.723-0500

Features requests without patches are not accepted through the issue tracker. Features requests are openly discussed on the mailing lists, forums, and IRC [1]. Please see the Asterisk Issue Guidelines [2] for more information on feature request and patch submission.

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