[asterisk-bugs] [JIRA] (ASTERISK-29525) PJSIP remove_existing unavailable contacts

Joe (JIRA) noreply at issues.asterisk.org
Tue Jul 20 15:09:33 CDT 2021


Joe created ASTERISK-29525:
------------------------------

             Summary: PJSIP remove_existing unavailable contacts
                 Key: ASTERISK-29525
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29525
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: pjproject/pjsip
    Affects Versions: 18.5.0, 16.19.0
            Reporter: Joe


The current behavior of remove_existing is:
1. If enabled, the contact that will expire soonest will be removed
2. If disabled, no contacts will be removed.

This doesn't take into account contacts that have gone offline and are now unavailable.  There doesn't seem to be any use case for maintaining unavailable contacts.  Perhaps, a more intelligent process would work like this instead:
1. If enabled, first remove unavailable contacts, and if there aren't any, remove expiring soonest
2. If disabled, remove only unavailable contacts.

If changing the behavior of 'no' is unwanted, then add a 3rd option of:
remove_existing=unavailable
to create the behavior of 2 above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list