[Home]

Summary:ASTERISK-26756: res_pjsip_mwi: Asterisk does not terminate MWI subscription
Reporter:Carl Fortin (phonefxg)Labels:
Date Opened:2017-01-26 10:47:31.000-0600Date Closed:2017-02-16 07:49:01.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_mwi
Versions:14.2.1 Frequency of
Occurrence
Related
Issues:
is related toASTERISK-26696 pjsip_pubsub: PJSIP Subscription Persistence in AstDB Does not update on subscription refresh
Environment:Asterisk Realtime 14.1 PJSIP Driver mysql 5.1.73 unixODBC 2.2.14 pjproject 2.5.5 spandsp 0.0.6 jansson 2.7 CentOS 6.6 64 bits on Vmware Phones : Cisco SPA514G FW: 7.5.7 ATA : Audiocodes MP124 T1 : Mediatrix 3532 ISDN CPU : Quadcore Intel(R) Xeon(R) CPU E5-2650 RAM : 8 GB HDD : 35 GB Average concurent calls: 25 Average calls/day: 2000Attachments:( 0) Aastra_481.pcapng
( 1) astdb_U_8374.txt
( 2) asterisk_conf_files.zip
( 3) debug_log_26756.txt
( 4) Pjsip_logger.txt
( 5) pjsip_show_aor_U_8374.txt
( 6) pjsip_show_auth_U_8374.txt
( 7) Pjsip_Show_Endpoint_U_8374.txt
( 8) Polycom_481.pcapng
Description:I have run some tests by subscribing to voicemail with 2 phones (Polycom and Aastra). In both cases asterisk do not terminate voicemail subscription when it receives the 481 code from the phone.Since the phone subscribe to voicemail after each reboot, subscription are piling up in astdb and asterisk keep sending multiple notify to the phones.
My pcap from both phones proves it. Am I missing something ? I understand that subscription persist but why is asterisk keep sending multiple notify even after receiving 481 from the phone? I have checked in astdb and subscription are never deleted either.


Comments:By: Asterisk Team (asteriskteam) 2017-01-26 10:47:32.996-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].

By: Rusty Newton (rnewton) 2017-01-29 15:14:17.401-0600

We require additional debug to continue with triage of your issue. Please follow the instructions on the wiki [1] for how to collect debugging information from Asterisk. For expediency, where possible, attach the debug with a '.txt' file extension so that the debug will be usable for further analysis.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information



By: Rusty Newton (rnewton) 2017-01-29 15:15:14.640-0600

See the previous comment and link to documentation. Grab an Asterisk log that includes the PJSIP logger output, along with warning,error,notice,verbose,debug log levels. Make sure that verbose and debug log levels are both turned up to a verbosity of 5.

By: Rusty Newton (rnewton) 2017-01-29 15:15:56.713-0600

In addition please include the PJSIP configuration (.conf or database dump, or CLI output) for each endpoint.

By: Carl Fortin (phonefxg) 2017-01-30 06:40:11.792-0600

This is what I have collected when calling the endpoint twice and leaving 2 messages in voicemail. You can clearly see that asterisk is sending 2 notify even after receiving a 481 from the first time I have left a message.

Debug and verbose set to 5 as well as logger on.

I have also included all my conf files and endpoint configuration.

By: Friendly Automation (friendly-automation) 2017-02-16 07:49:02.167-0600

Change 4916 merged by zuul:
res_pjsip_pubsub:  Correctly implement persisted subscriptions

[https://gerrit.asterisk.org/4916|https://gerrit.asterisk.org/4916]

By: Friendly Automation (friendly-automation) 2017-02-16 07:49:08.954-0600

Change 4917 merged by zuul:
res_pjsip_pubsub:  Correctly implement persisted subscriptions

[https://gerrit.asterisk.org/4917|https://gerrit.asterisk.org/4917]

By: Friendly Automation (friendly-automation) 2017-02-16 09:49:52.565-0600

Change 4918 merged by Joshua Colp:
res_pjsip_pubsub:  Correctly implement persisted subscriptions

[https://gerrit.asterisk.org/4918|https://gerrit.asterisk.org/4918]