[Home]

Summary:ASTERISK-28228: res_pjsip: pjsip show contacts prints double entries
Reporter:Ian Jones (pmlco)Labels:pjsip
Date Opened:2019-01-02 06:43:34.000-0600Date Closed:2019-08-05 07:03:49
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:13.24.1 Frequency of
Occurrence
Constant
Related
Issues:
is duplicated byASTERISK-28308 Double line at pjsip show contacts
is duplicated byASTERISK-28390 Duplicate contacts appear when running "asterisk -rx 'pjsip list contacts'"
is related toASTERISK-28397 ARI Push Configuration - duplicate entries
Environment:Debian 9Attachments:
Description:Contacts are reported twice. Issue appeared in 13.24.1.
cal*CLI> pjsip show contacts

 Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

 Contact:  40E/sip:40E@10.47.55.40:10204                  9596b71d55 Avail         7.934
 Contact:  40E/sip:40E@10.47.55.40:10204                  9596b71d55 Avail         7.934
 Contact:  41E/sip:41E@10.47.55.41:10204                  338bb8b7bc Avail        11.024
 Contact:  41E/sip:41E@10.47.55.41:10204                  338bb8b7bc Avail        11.024
 Contact:  ATT40%4n0D4AtPiR/sip:ATT40%4n0D4AtPiR@10.47.55 1ea8516086 Avail        11.206
 Contact:  ATT40%4n0D4AtPiR/sip:ATT40%4n0D4AtPiR@10.47.55 1ea8516086 Avail        11.206
 Contact:  ATT41%3gNkIk8PXp/sip:ATT41%3gNkIk8PXp@10.47.55 c23cb4511c Avail         7.214
 Contact:  ATT41%3gNkIk8PXp/sip:ATT41%3gNkIk8PXp@10.47.55 c23cb4511c Avail         7.214
 Contact:  LON40%eUycVd4y1s/sip:LON40%eUycVd4y1s@10.47.55 e25593ef2e Avail        11.980
 Contact:  LON40%eUycVd4y1s/sip:LON40%eUycVd4y1s@10.47.55 e25593ef2e Avail        11.980
 Contact:  LON41%eUJcV54y1s/sip:LON41%eUJcV54y1s@10.47.55 aa7796ddfb Avail        14.312
 Contact:  LON41%eUJcV54y1s/sip:LON41%eUJcV54y1s@10.47.55 aa7796ddfb Avail        14.312

Objects found: 12
Comments:By: Asterisk Team (asteriskteam) 2019-01-02 06:43:35.929-0600

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

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.

By: Joshua C. Colp (jcolp) 2019-01-02 07:06:22.165-0600

I've confirmed that this happens with inbound registrations. For static contacts it does not.

By: Sean Bright (seanbright) 2019-01-02 10:15:25.318-0600

The most obvious potential cause is [{{Id0ad65d14952a02fb213273a90f3f680a8149618}}|https://gerrit.asterisk.org/#/q/Id0ad65d14952a02fb213273a90f3f680a8149618]

By: Ciggy (Ciggy) 2019-02-23 09:44:22.844-0600

Also seeing this on Asterisk 16.2.0 with inbound registrations

By: Luke Escude (lukeescude) 2019-05-20 21:35:21.126-0500

Seeing this in Asterisk 16.3 as well.

By: Juan Martin (jmartin) 2019-06-28 03:24:26.180-0500

Still present in 16.4.0 too.

By: Juan Martin (jmartin) 2019-06-28 04:46:52.333-0500

I don't know if it has relation with this issue but ringing notifications are also duplicated (v16.4.0)

   -- Executing [start@sub-internal-call:6] Dial("PJSIP/201-00000027", "PJSIP/203,59") in new stack
   -- Called PJSIP/203
   {{-- PJSIP/203-00000028 is ringing}}
   {{-- PJSIP/203-00000028 is ringing}}

Both messages appear at the same time and seems duplicated.
I tested them with multiple aors and happens the same 2 ringing notifications per contact.

By: Joshua C. Colp (jcolp) 2019-06-28 05:23:52.856-0500

That is not the same thing, shoudn't cause a problem, and may be as a result of SIP responses from the endpoint.

By: Juan Martin (jmartin) 2019-07-01 07:09:04.857-0500

Ok, then it should be another not related issue and I agree that should not cause a problem.

I discard that the problem is the SIP response from the endpoint, because:

* In the sip trace I only see 1 ringing notification (180 Ringing) from each endpoint
* I have the same behaviour from 3 brands (Alcatel, GrandStream and Snom)
* The same endpoints in Asterisk v1.8.32 only shows one ringing message in the asterisk CLI.

By: Joshua C. Colp (jcolp) 2019-07-01 07:18:53.744-0500

[~jmartin] If this presents a problem then I'd suggest filing another issue.

By: Friendly Automation (friendly-automation) 2019-08-05 07:03:51.490-0500

Change 11664 merged by Friendly Automation:
res_pjsip: Fix multiple of the same contact in "pjsip show contacts".

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

By: Friendly Automation (friendly-automation) 2019-08-05 07:04:51.441-0500

Change 11662 merged by Friendly Automation:
res_pjsip: Fix multiple of the same contact in "pjsip show contacts".

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

By: Friendly Automation (friendly-automation) 2019-08-05 07:10:56.559-0500

Change 11665 merged by Friendly Automation:
res_pjsip: Fix multiple of the same contact in "pjsip show contacts".

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

By: Friendly Automation (friendly-automation) 2019-08-05 07:11:11.006-0500

Change 11666 merged by Friendly Automation:
res_pjsip: Fix multiple of the same contact in "pjsip show contacts".

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

By: Friendly Automation (friendly-automation) 2019-08-05 07:24:47.699-0500

Change 11663 merged by George Joseph:
res_pjsip: Fix multiple of the same contact in "pjsip show contacts".

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