[asterisk-bugs] [JIRA] (ASTERISK-28881) Optional to reduce log verbosity by selectively disabling missing/invalid subscriptions

Mark Murawski (JIRA) noreply at issues.asterisk.org
Sun May 10 15:37:25 CDT 2020


Mark Murawski created ASTERISK-28881:
----------------------------------------

             Summary: Optional to reduce log verbosity by selectively disabling missing/invalid subscriptions
                 Key: ASTERISK-28881
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28881
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: pjproject/pjsip
    Affects Versions: 17.4.0, 16.10.0
         Environment: On large, especially multi-tenant systems where endpoints may not be completely under the control of the server, there exists the possibility for massive amounts of 'log noise' coming from endpoints subscribing to targets that don't exist.

When one wishes to keep logging verbosity on, but wants to avoid logging things that our beyond the influence of the server, it would be quite useful to be able to quash certain messages.
            Reporter: Mark Murawski
            Severity: Minor


The attached patch adds the endpoint option: log_subscription_error to pjsip.

To maintain default expected behavior and backwards compatibility, the default is 'yes'.

[2020-05-10 16:31:16.266] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5504' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:16.777] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5515' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:17.777] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '3020' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:22.777] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5509' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:23.780] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5515' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:24.265] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5505' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:29.777] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5509' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:30.266] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5504' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:31.265] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5505' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:31.780] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '3020' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:37.265] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5504' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:37.776] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5515' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:38.776] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '3020' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:43.780] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5509' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:44.777] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5515' does not exist in context 'blf' or has no associated hint
[2020-05-10 16:31:45.265] NOTICE[29869]: res_pjsip_exten_state.c:419 new_subscribe: Endpoint '1010' state subscription failed: Extension '5505' does not exist in context 'blf' or has no associated hint

After applying log_subscription_error=no to the default pjsip wizard, none of the above messages would be logged.





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



More information about the asterisk-bugs mailing list