[Asterisk-code-review] pjsip/config global: regcontext context not created (asterisk[13])

Corey Farrell asteriskteam at digium.com
Wed Jan 16 10:57:36 CST 2019


Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/10879 )

Change subject: pjsip/config_global: regcontext context not created
......................................................................


Patch Set 2: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/#/c/10879/2/res/res_pjsip/config_global.c
File res/res_pjsip/config_global.c:

https://gerrit.asterisk.org/#/c/10879/2/res/res_pjsip/config_global.c@159
PS2, Line 159: 			!ast_context_find_or_create(NULL, NULL, cfg->regcontext, "SIP")) {
chan_sip uses registrar "SIP".  I feel like this should be "PJSIP" (or maybe just AST_MODULE would be better).

Do we need an ast_context_destroy_by_name anywhere to balance this?  Probably not a crash risk if we don't since we never run 'dlclose' on res_pjsip.so but I still feel like asking.  Have you tested what happens if someone changes the regcontext then reloads?



-- 
To view, visit https://gerrit.asterisk.org/10879
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I0f36cf4ab0a93ff4b1cc5548d617ecfd45e09265
Gerrit-Change-Number: 10879
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Friendly Automation (1000185)
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Wed, 16 Jan 2019 16:57:36 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190116/4a1465c6/attachment-0001.html>


More information about the asterisk-code-review mailing list