[asterisk-bugs] [JIRA] (ASTERISK-25217) res_pjsip_outbound_publish.c needs a similar treatment for module unloading as res_pjsip_outbound_registration.c

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Jun 30 16:36:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226731#comment-226731 ] 

Asterisk Team commented on ASTERISK-25217:
------------------------------------------

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

> res_pjsip_outbound_publish.c needs a similar treatment for module unloading as res_pjsip_outbound_registration.c
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25217
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25217
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_outbound_publish
>    Affects Versions: 13.4.0
>            Reporter: Richard Mudgett
>
> ASTERISK-24907 fixed a crash on module unloading for {{res_pjsip_outbound_registration}}.  A similar treatment needs to be performed to {{res_pjsip_outbound_publish}} to make it safer to unload.
> # The module needs to use {{ast_sorcery_object_unregister()}}.
> # The module needs to use its own serializers so it can do a group shutdown on them.  {{ast_serializer_shutdown_group_join()}}  The {{struct unloading_data}} method used in the module is not reliable as the threads may not get out of the module before it gets unloaded.  See the ASTERISK-24514 fix {{664067e3189b29bd00276725d2293363c9b9ebe1}}.
> # There is a bug in the module's {{unload_module()}} dealing with the return value of {{ast_cond_timedwait()}}.  The attached patch is an attempted fix.



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



More information about the asterisk-bugs mailing list