<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">chan_sip uses registrar "SIP".  I feel like this should be "PJSIP" (or maybe just AST_MODULE would be better).</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I thought about this, but when the extension is added for regcontext in 'ast_sip_persistent_endpoint_update_state' the registrar is "SIP", so I set it to this to be consistent with that.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But I'm fine with changing it. If I change it to "PJSIP" or AST_MODULE should I go ahead and alter the one at add time too? </p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">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?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Good catch! Not sure I didn't test that actually. It certainly can't hurt. I'll add and test.</p><p><a href="https://gerrit.asterisk.org/10879">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10879">change 10879</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10879"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I0f36cf4ab0a93ff4b1cc5548d617ecfd45e09265 </div>
<div style="display:none"> Gerrit-Change-Number: 10879 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 16 Jan 2019 18:44:29 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>