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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon May 11 04:14:26 CDT 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on ASTERISK-28881 started by Mark Murawski.

> res_pjsip_pubsub: Option 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: Resources/res_pjsip_pubsub
>    Affects Versions: 16.10.0, 17.4.0
>            Reporter: Mark Murawski
>            Assignee: Mark Murawski
>            Severity: Minor
>              Labels: patch
>         Attachments: master-6b2d9451741cadb080637190af65d40f692d67ed-pjsip-log_subscription_error.patch
>
>
> 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.
> 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