diff options
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5214973b5..c90a00802 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16971,6 +16971,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str peer->chanvars = NULL; /* XXX should unregister ? */ } + + /* If we have realm authentication information, remove them (reload) */ + clear_realm_authentication(peer->auth); + peer->auth = NULL; + for (; v || ((v = alt) && !(alt=NULL)); v = v->next) { if (handle_common_options(&peerflags[0], &mask[0], v)) continue; |